From 467552d5876ca2535a270c506fbfbd54946fe348 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 21 Aug 2022 07:56:02 +0530 Subject: switch to iwd --- services/sxhkd.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'services/sxhkd.nix') diff --git a/services/sxhkd.nix b/services/sxhkd.nix index 8658875..debe1b5 100644 --- a/services/sxhkd.nix +++ b/services/sxhkd.nix @@ -4,6 +4,9 @@ , ... }: +let + jumpTo = app: "${pkgs.xdotool}/bin/xdotool search \"${app}\" windowactivate"; +in { services.sxhkd = { enable = true; @@ -11,7 +14,15 @@ "XF86Audio{Lower,Raise}Volume" = "${pkgs.alsaUtils}/bin/amixer sset Master 2%{-,+}"; "XF86AudioMute" = "${pkgs.alsaUtils}/bin/amixer sset Master toggle"; "XF86MonBrightness{Down,Up}" = "${pkgs.light}/bin/light -{U,A} 5"; - "super + Escape" = "pkill -USR1 -x sxhkd"; + + # 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"; }; }; } -- cgit v1.2.3