From 54bf50e343e9e1634f12c5999fda65fc9b5feccb Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 23 Sep 2023 13:11:59 +0530 Subject: dunst colors and keybinds --- services/dunst.nix | 11 +++++++---- services/sxhkd.nix | 16 +++------------- 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; ignore_newline = "no"; geometry = "300x8-20+20"; shrink = "yes"; - frame_width = 0; + frame_width = 4; transparency = "0"; idle_threshold = "120"; monitor = "0"; follow = "mouse"; sticky_history = "yes"; history_length = "20"; - icon_folders = "/usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/"; + icon_position = "off"; show_indicators = "yes"; line_height = "0"; separator_height = "0"; @@ -46,18 +46,21 @@ with theme; urgency_normal = { background = base00; foreground = base05; + frame_color = base01; timeout = 10; }; urgency_low = { background = base00; foreground = base05; + frame_color = base00; timeout = 2; }; urgency_critical = { - background = base00; - foreground = base05; + background = base0C; + foreground = base00; + frame_color = base00; timeout = 0; }; }; 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 @@ , ... }: -let - jumpTo = app: "${pkgs.xdotool}/bin/xdotool search \"${app}\" windowactivate"; -in { services.sxhkd = { enable = true; keybindings = { "super + slash" = "${pkgs.light}/bin/light -A 5"; "super + shift + slash" = "${pkgs.light}/bin/light -U 5"; - "super + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%+"; "super + shift + semicolon" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%-"; - - # jump to firefox - "super + alt + shift + ctrl + f" = jumpTo "Mozilla Firefox"; - - # jump to st - "super + alt + shift + ctrl + s" = jumpTo "st"; - - # jump to zathura - "super + alt + shift + ctrl + z" = jumpTo "zathura"; + "super + space" = "${pkgs.dunst}/bin/dunstctl close"; + "super + ctrl + space" = "${pkgs.dunst}/bin/dunstctl close-all"; + "super + shift + space" = "${pkgs.dunst}/bin/dunstctl history-pop"; }; }; } -- cgit v1.2.3