dotfiles/nixos/i3/i3.nix

104 lines
3.9 KiB
Nix
Raw Normal View History

2019-08-24 09:55:51 +01:00
{ config, pkgs, ... }:
let
mod = "Mod4";
in
{
2020-04-18 13:02:19 +01:00
home.packages = with pkgs; [
font-awesome-ttf
2021-05-16 13:06:22 +01:00
intel-gpu-tools
2020-04-18 13:02:19 +01:00
];
2019-08-24 09:55:51 +01:00
xsession.windowManager.i3 = {
enable = true;
config = {
startup = [
2019-09-07 08:45:45 +01:00
{ command = "exec hsetroot -solid '#002b36'"; always = true; notification = false; }
2019-08-24 09:55:51 +01:00
{ command = "exec setxkbmap -layout pl"; always = true; notification = false; }
2019-11-09 10:11:28 +00:00
{ command = "exec $HOME/dev/dotfiles/nixos/i3/lock.sh"; always = false; notification = false; }
2020-01-10 23:32:05 +00:00
{ command = "exec $HOME/dev/dotfiles/nixos/i3/battery-popup.sh"; always = false; notification = false; }
{ command = "exec xdg-mime default org.gnome.Evince.desktop application/pdf"; always = false; notification = false; }
2019-08-24 09:55:51 +01:00
];
2019-08-24 09:55:51 +01:00
window = {
hideEdgeBorders = "horizontal";
titlebar = false;
border = 0;
};
workspaceLayout = "tabbed";
2020-04-18 13:02:19 +01:00
bars = [
{
position = "top";
2021-06-03 19:57:29 +01:00
colors.background = "#001e26";
colors.statusline = "#708183";
2021-06-01 21:16:08 +01:00
fonts = {
names = [ "Fira Code Nerd Font" ];
size = 10.0;
};
2020-06-04 17:47:02 +01:00
trayOutput = "primary";
2020-04-18 13:02:19 +01:00
}
];
2019-08-24 09:55:51 +01:00
modifier = mod;
keybindings = {
"${mod}+Shift+e" = "exec i3-msg exit";
"${mod}+Shift+c" = "reload";
2020-04-19 13:48:51 +01:00
"${mod}+Shift+d" = "exec ${pkgs.grobi}/bin/grobi update";
2019-08-24 09:55:51 +01:00
"${mod}+Shift+r" = "restart";
"${mod}+Shift+l" = "exec physlock -d";
"${mod}+Return" = "exec i3-sensible-terminal";
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle";
"XF86MonBrightnessUp" = "exec light -s sysfs/backlight/intel_backlight -A 5";
"XF86MonBrightnessDown" = "exec light -s sysfs/backlight/intel_backlight -U 5";
2019-10-31 12:40:09 +00:00
"Print" = "exec ${pkgs.gnome3.gnome-screenshot}/bin/gnome-screenshot -i";
2020-11-08 18:48:43 +00:00
"${mod}+r" = "exec ${pkgs.rofi}/bin/rofi -show combi -combi-modi window#run#ssh -modi combi";
2019-08-24 09:55:51 +01:00
"${mod}+c" = "exec ${pkgs.clipmenu}/bin/clipmenu";
"${mod}+q" = "kill";
"${mod}+f" = "fullscreen toggle";
"${mod}+h" = "focus left";
"${mod}+j" = "focus down";
"${mod}+k" = "focus up";
"${mod}+l" = "focus right";
2019-08-24 11:56:02 +01:00
"${mod}+1" = "workspace 1";
"${mod}+2" = "workspace 2";
"${mod}+3" = "workspace 3";
"${mod}+4" = "workspace 4";
"${mod}+5" = "workspace 5";
"${mod}+6" = "workspace 6";
"${mod}+7" = "workspace 7";
"${mod}+8" = "workspace 8";
"${mod}+9" = "workspace 9";
"${mod}+0" = "workspace 10";
2019-12-30 18:18:31 +00:00
2019-08-24 15:40:57 +01:00
"${mod}+Shift+1" = "move container to workspace 1";
"${mod}+Shift+2" = "move container to workspace 2";
"${mod}+Shift+3" = "move container to workspace 3";
"${mod}+Shift+4" = "move container to workspace 4";
"${mod}+Shift+5" = "move container to workspace 5";
"${mod}+Shift+6" = "move container to workspace 6";
"${mod}+Shift+7" = "move container to workspace 7";
"${mod}+Shift+8" = "move container to workspace 8";
"${mod}+Shift+9" = "move container to workspace 9";
"${mod}+Shift+0" = "move container to workspace 10";
2019-12-30 18:18:31 +00:00
"${mod}+Ctrl+Left" = "move workspace to output left";
"${mod}+Ctrl+Right" = "move workspace to output right";
"${mod}+Ctrl+Up" = "move workspace to output up";
"${mod}+Ctrl+Down" = "move workspace to output down";
2019-08-24 09:55:51 +01:00
};
2019-08-24 09:55:51 +01:00
};
};
}