aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/dunst.nix11
-rw-r--r--services/sxhkd.nix16
2 files changed, 10 insertions, 17 deletions
diff --git a/services/dunst.nix b/services/dunst.nix
index c340c3e..485cb1a 100644
--- a/services/dunst.nix
+++ b/services/dunst.nix
@@ -22,14 +22,14 @@ with theme;
22 ignore_newline = "no"; 22 ignore_newline = "no";
23 geometry = "300x8-20+20"; 23 geometry = "300x8-20+20";
24 shrink = "yes"; 24 shrink = "yes";
25 frame_width = 0; 25 frame_width = 4;
26 transparency = "0"; 26 transparency = "0";
27 idle_threshold = "120"; 27 idle_threshold = "120";
28 monitor = "0"; 28 monitor = "0";
29 follow = "mouse"; 29 follow = "mouse";
30 sticky_history = "yes"; 30 sticky_history = "yes";
31 history_length = "20"; 31 history_length = "20";
32 icon_folders = "/usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/"; 32 icon_position = "off";
33 show_indicators = "yes"; 33 show_indicators = "yes";
34 line_height = "0"; 34 line_height = "0";
35 separator_height = "0"; 35 separator_height = "0";
@@ -46,18 +46,21 @@ with theme;
46 urgency_normal = { 46 urgency_normal = {
47 background = base00; 47 background = base00;
48 foreground = base05; 48 foreground = base05;
49 frame_color = base01;
49 timeout = 10; 50 timeout = 10;
50 }; 51 };
51 52
52 urgency_low = { 53 urgency_low = {
53 background = base00; 54 background = base00;
54 foreground = base05; 55 foreground = base05;
56 frame_color = base00;
55 timeout = 2; 57 timeout = 2;
56 }; 58 };
57 59
58 urgency_critical = { 60 urgency_critical = {
59 background = base00; 61 background = base0C;
60 foreground = base05; 62 foreground = base00;
63 frame_color = base00;
61 timeout = 0; 64 timeout = 0;
62 }; 65 };
63 }; 66 };
diff --git a/services/sxhkd.nix b/services/sxhkd.nix
index fe54cbf..19d6917 100644
--- a/services/sxhkd.nix
+++ b/services/sxhkd.nix
@@ -4,27 +4,17 @@
4, ... 4, ...
5}: 5}:
6 6
7let
8 jumpTo = app: "${pkgs.xdotool}/bin/xdotool search \"${app}\" windowactivate";
9in
10{ 7{
11 services.sxhkd = { 8 services.sxhkd = {
12 enable = true; 9 enable = true;
13 keybindings = { 10 keybindings = {
14 "super + slash" = "${pkgs.light}/bin/light -A 5"; 11 "super + slash" = "${pkgs.light}/bin/light -A 5";
15 "super + shift + slash" = "${pkgs.light}/bin/light -U 5"; 12 "super + shift + slash" = "${pkgs.light}/bin/light -U 5";
16
17 "super + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%+"; 13 "super + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%+";
18 "super + shift + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%-"; 14 "super + shift + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%-";
19 15 "super + space" = "${pkgs.dunst}/bin/dunstctl close";
20 # jump to firefox 16 "super + ctrl + space" = "${pkgs.dunst}/bin/dunstctl close-all";
21 "super + alt + shift + ctrl + f" = jumpTo "Mozilla Firefox"; 17 "super + shift + space" = "${pkgs.dunst}/bin/dunstctl history-pop";
22
23 # jump to st
24 "super + alt + shift + ctrl + s" = jumpTo "st";
25
26 # jump to zathura
27 "super + alt + shift + ctrl + z" = jumpTo "zathura";
28 }; 18 };
29 }; 19 };
30} 20}