dotfiles/nixos/user-xsession.nix

72 lines
1.9 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 16:09:41 +01:00
workspaceLayout = "stacked";
2019-07-14 12:42:23 +01:00
bars = [];
gaps = {
2019-07-14 15:16:49 +01:00
inner = 8;
2019-07-14 12:42:23 +01:00
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}+Shift+e" = "exec i3-msg exit";
2019-07-14 16:09:41 +01:00
"${mod}+Shift+c" = "reload";
2019-07-14 14:45:41 +01:00
"${mod}+Shift+r" = "restart";
2019-07-14 16:09:41 +01:00
"${mod}+r" = "exec ${pkgs.rofi}/bin/rofi -show combi -combi-modi window#run#ssh -modi combi";
"${mod}+q" = "kill";
"${mod}+f" = "fullscreen toggle";
"${mod}+h" = "focus left";
"${mod}+j" = "focus down";
"${mod}+k" = "focus up";
"${mod}+l" = "focus right";
2019-07-14 09:35:06 +01:00
};
};
};
2019-07-14 12:42:23 +01:00
};
2019-07-14 14:45:41 +01:00
2019-07-14 15:16:49 +01:00
programs.autorandr = {
enable = true;
profiles = {
"foureighty-alone" = {
fingerprint = {
eDP1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
};
config = {
eDP1 = {
enable = true;
primary = true;
position = "0x0";
mode = "2560x1440";
rate = "60.00";
scale = { x=1.25; y=1.25; };
};
};
};
};
};
2019-07-14 14:45:41 +01:00
imports = [
./polybar.nix
];
2019-07-14 12:42:23 +01:00
}