From 9845da230c6e73bac0343ead4b6cb60a0e452f66 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 6 Oct 2024 13:23:35 -0700 Subject: [PATCH] refactor: inline swappy, grim, slurp instead of expecting in path add playerctl priority with firefox last --- users/youwen/linux/hyprland/common.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/users/youwen/linux/hyprland/common.nix b/users/youwen/linux/hyprland/common.nix index e125335..fe4970a 100644 --- a/users/youwen/linux/hyprland/common.nix +++ b/users/youwen/linux/hyprland/common.nix @@ -5,9 +5,6 @@ { home.packages = with pkgs; [ wl-clipboard - grim - slurp - swappy swaybg bibata-cursors @@ -103,7 +100,7 @@ "$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, 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