refactor: inline swappy, grim, slurp instead of expecting in path

add playerctl priority with firefox last
This commit is contained in:
Youwen Wu 2024-10-06 13:23:35 -07:00
parent fe47f87909
commit 9845da230c
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -5,9 +5,6 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
wl-clipboard wl-clipboard
grim
slurp
swappy
swaybg swaybg
bibata-cursors bibata-cursors
@ -103,7 +100,7 @@
"$mod, Space, exec, pkill -x rofi || rofi -show drun" # Run rofi application launcher "$mod, Space, exec, pkill -x rofi || rofi -show drun" # Run rofi application launcher
"$mod, G, exec, pkill -x rofi || rofi -show window" # Run rofi window switcher "$mod, G, exec, pkill -x rofi || rofi -show window" # Run rofi window switcher
''$mod, P, exec, grim -g "$(slurp)" - | swappy -f -'' # Screenshot ''$mod, P, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.swappy}/bin/swappy -f -'' # Screenshot
"$mod, Backspace, exec, pkill -x wlogout || wlogout" # show logout menu "$mod, Backspace, exec, pkill -x wlogout || wlogout" # show logout menu