dotfiles/nixos/user-xsession.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2019-07-14 09:35:06 +01:00
{ config, pkgs, ... }:
let
mod = "Mod4";
in
{
2019-07-14 12:22:18 +01:00
services = {
network-manager-applet.enable = true;
2019-07-14 12:42:23 +01:00
};
2019-07-14 12:22:18 +01:00
2019-07-14 12:42:23 +01:00
xsession = {
enable = true;
windowManager.i3 = {
2019-07-14 12:22:18 +01:00
enable = true;
2019-07-14 12:42:23 +01:00
package = pkgs.i3-gaps;
config = {
startup = [
{ command = "exec i3-sensible-terminal"; always = true; notification = false; }
];
2019-07-14 12:22:18 +01:00
2019-07-14 12:42:23 +01:00
bars = [];
gaps = {
inner = 12;
outer = 0;
smartGaps = true;
smartBorders = "on";
};
2019-07-14 12:22:18 +01:00
2019-07-14 12:42:23 +01:00
modifier = mod;
keybindings = {
"${mod}+Return" = "exec i3-sensible-terminal";
"${mod}+Shift+q" = "kill";
2019-07-14 14:45:41 +01:00
"${mod}+r" = "exec ${pkgs.rofi}/bin/rofi -show combi -combi-modi window#run#ssh -modi combi";
2019-07-14 12:42:23 +01:00
"${mod}+f" = "fullscreen toggle";
"${mod}+l" = "exec loginctl lock-session";
"${mod}+Shift+e" = "exec i3-msg exit";
2019-07-14 14:45:41 +01:00
"${mod}+Shift+r" = "restart";
2019-07-14 09:35:06 +01:00
};
};
};
2019-07-14 12:42:23 +01:00
};
2019-07-14 14:45:41 +01:00
imports = [
./polybar.nix
];
2019-07-14 12:42:23 +01:00
}