From dd968b4c3db20518362fcf77d85eec688c7b305d Mon Sep 17 00:00:00 2001 From: joygnu Date: Sun, 11 Aug 2024 13:05:19 +0200 Subject: [PATCH] scrPath --- home/hyprland/default.nix | 17 +++++++++-------- home/hyprland/{ => scripts}/cmus.sh | 0 home/hyprland/{ => scripts}/gamemode.sh | 0 home/hyprland/{ => scripts}/screen.sh | 0 home/hyprland/{ => scripts}/vm.sh | 0 home/hyprland/{ => scripts}/volume.sh | 0 6 files changed, 9 insertions(+), 8 deletions(-) rename home/hyprland/{ => scripts}/cmus.sh (100%) rename home/hyprland/{ => scripts}/gamemode.sh (100%) rename home/hyprland/{ => scripts}/screen.sh (100%) rename home/hyprland/{ => scripts}/vm.sh (100%) rename home/hyprland/{ => scripts}/volume.sh (100%) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 13660cb..b697545 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -20,6 +20,7 @@ settings = { "$mod" = "SUPER"; + "$scrPath" = "~/nix/home/hyprland/scirpts/" dwindle = { pseudotile = true; @@ -72,9 +73,9 @@ "$mod, A, exec, rofi -show drun" "$mod, F, exec, freetube" "$mod, C, exec, hyprpicker -a" - "$mod+Shift, W, exec, sh ~/nix/home/hyprland/vm.sh" + "$mod+Shift, W, exec, sh $scrPath/vm.sh" "$mod+Shift, Z, exec, grim - | swappy -f -" - "$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh" + "$mod, Z, exec, sh $scrPath/screen.sh" "$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" # controles @@ -83,10 +84,10 @@ "$mod, R, togglesplit" "$mod+shift, S, exec, systemctl suspend" "$mod+shift, M, exit, hyprland" - "$mod, G, exec, sh ~/nix/home/hyprland/gamemode.sh" + "$mod, G, exec, sh $scrPath/gamemode.sh" # cmus - "$mod, D, exec, sh ~/nix/home/hyprland/cmus.sh" + "$mod, D, exec, sh $scrPath/cmus.sh" "$mod, P, exec, cmus-remote --pause" "$mod, comma, exec, cmus-remote --prev" "$mod, period, exec, cmus-remote --next" @@ -146,10 +147,10 @@ bindl = [ ", XF86MonBrightnessUp, exec, brightnessctl set +10%" ", XF86MonBrightnessDown, exec, brightnessctl set 10%-" - ", XF86AudioRaiseVolume, exec, sh ~/nix/home/hyprland/volume.sh -i" - ", XF86AudioLowerVolume, exec, sh ~/nix/home/hyprland/volume.sh -d" - ", XF86AudioMute, exec, sh ~/nix/home/hyprland/volume.sh -m" - ", XF86AudioMicMute, exec, sh ~/nix/home/hyprland/volume.sh -t" + ", XF86AudioRaiseVolume, exec, sh $scrPath/volume.sh -i" + ", XF86AudioLowerVolume, exec, sh $scrPath/volume.sh -d" + ", XF86AudioMute, exec, sh $scrPath/volume.sh -m" + ", XF86AudioMicMute, exec, sh $scrPath/volume.sh -t" ]; general = { diff --git a/home/hyprland/cmus.sh b/home/hyprland/scripts/cmus.sh similarity index 100% rename from home/hyprland/cmus.sh rename to home/hyprland/scripts/cmus.sh diff --git a/home/hyprland/gamemode.sh b/home/hyprland/scripts/gamemode.sh similarity index 100% rename from home/hyprland/gamemode.sh rename to home/hyprland/scripts/gamemode.sh diff --git a/home/hyprland/screen.sh b/home/hyprland/scripts/screen.sh similarity index 100% rename from home/hyprland/screen.sh rename to home/hyprland/scripts/screen.sh diff --git a/home/hyprland/vm.sh b/home/hyprland/scripts/vm.sh similarity index 100% rename from home/hyprland/vm.sh rename to home/hyprland/scripts/vm.sh diff --git a/home/hyprland/volume.sh b/home/hyprland/scripts/volume.sh similarity index 100% rename from home/hyprland/volume.sh rename to home/hyprland/scripts/volume.sh