diff options
-rw-r--r-- | hosts/myrtle/configuration.nix | 11 | ||||
-rw-r--r-- | services/default.nix | 2 | ||||
-rw-r--r-- | services/sxhkd.nix | 8 |
3 files changed, 14 insertions, 7 deletions
diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 20855e2..7986e9c 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix | |||
@@ -88,7 +88,7 @@ | |||
88 | pulseaudio = { | 88 | pulseaudio = { |
89 | enable = true; | 89 | enable = true; |
90 | package = pkgs.pulseaudioFull; | 90 | package = pkgs.pulseaudioFull; |
91 | extraConfig = "load-module module-bluetooth-policy auto_switch=2"; | 91 | # extraConfig = "load-module module-bluetooth-policy auto_switch=2"; |
92 | }; | 92 | }; |
93 | # opengl.enable = true; | 93 | # opengl.enable = true; |
94 | bluetooth = { | 94 | bluetooth = { |
@@ -117,9 +117,14 @@ | |||
117 | enable = true; | 117 | enable = true; |
118 | enableUserService = true; | 118 | enableUserService = true; |
119 | }; | 119 | }; |
120 | services.supergfxd.enable = false; | 120 | services.supergfxd.enable = true; |
121 | 121 | ||
122 | powerManagement.powertop.enable = true; | 122 | services.logind.extraConfig = '' |
123 | HandlePowerKey=suspend-then-hibernate | ||
124 | HandlePowerKeyLongPress=poweroff | ||
125 | ''; | ||
126 | |||
127 | powerManagement.powertop.enable = false; | ||
123 | 128 | ||
124 | users.users.np = { | 129 | users.users.np = { |
125 | isNormalUser = true; | 130 | isNormalUser = true; |
diff --git a/services/default.nix b/services/default.nix index 83955bf..dda2992 100644 --- a/services/default.nix +++ b/services/default.nix | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | imports = [ | 9 | imports = [ |
10 | ./dunst.nix | 10 | ./dunst.nix |
11 | ./picom.nix | 11 | # ./picom.nix |
12 | ./redshift.nix | 12 | ./redshift.nix |
13 | ./sxhkd.nix | 13 | ./sxhkd.nix |
14 | ./mbsync.nix | 14 | ./mbsync.nix |
diff --git a/services/sxhkd.nix b/services/sxhkd.nix index debe1b5..fe54cbf 100644 --- a/services/sxhkd.nix +++ b/services/sxhkd.nix | |||
@@ -11,9 +11,11 @@ in | |||
11 | services.sxhkd = { | 11 | services.sxhkd = { |
12 | enable = true; | 12 | enable = true; |
13 | keybindings = { | 13 | keybindings = { |
14 | "XF86Audio{Lower,Raise}Volume" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%{-,+}"; | 14 | "super + slash" = "${pkgs.light}/bin/light -A 5"; |
15 | "XF86AudioMute" = "${pkgs.alsaUtils}/bin/amixer sset Master toggle"; | 15 | "super + shift + slash" = "${pkgs.light}/bin/light -U 5"; |
16 | "XF86MonBrightness{Down,Up}" = "${pkgs.light}/bin/light -{U,A} 5"; | 16 | |
17 | "super + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%+"; | ||
18 | "super + shift + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%-"; | ||
17 | 19 | ||
18 | # jump to firefox | 20 | # jump to firefox |
19 | "super + alt + shift + ctrl + f" = jumpTo "Mozilla Firefox"; | 21 | "super + alt + shift + ctrl + f" = jumpTo "Mozilla Firefox"; |