diff --git a/hosts/duskfall/home.nix b/hosts/duskfall/home.nix index 4a71c25f..c848eff9 100644 --- a/hosts/duskfall/home.nix +++ b/hosts/duskfall/home.nix @@ -17,6 +17,7 @@ brave.enable = true; editor = "emacs"; ranger.enable = true; + yazi.enable = true; git.enable = true; engineering.enable = true; art.enable = true; diff --git a/hosts/ori/home.nix b/hosts/ori/home.nix index d1cc1dbb..b4a01ac8 100644 --- a/hosts/ori/home.nix +++ b/hosts/ori/home.nix @@ -13,6 +13,7 @@ # programs ranger.enable = true; + yazi.enable = true; git.enable = true; }; diff --git a/hosts/stardust/home.nix b/hosts/stardust/home.nix index e882522b..055dc963 100644 --- a/hosts/stardust/home.nix +++ b/hosts/stardust/home.nix @@ -16,6 +16,7 @@ browser = "brave"; editor = "kate"; ranger.enable = true; + yazi.enable = true; git.enable = true; art.enable = true; flatpak.enable = false; diff --git a/hosts/zenith/home.nix b/hosts/zenith/home.nix index 6af81187..f4dffd95 100644 --- a/hosts/zenith/home.nix +++ b/hosts/zenith/home.nix @@ -16,6 +16,7 @@ brave.enable = true; editor = "emacs"; ranger.enable = true; + yazi.enable = true; git.enable = true; engineering.enable = true; art.enable = true; diff --git a/modules/user/hyprland/default.nix b/modules/user/hyprland/default.nix index e501c1fc..7d8a17a6 100644 --- a/modules/user/hyprland/default.nix +++ b/modules/user/hyprland/default.nix @@ -65,7 +65,7 @@ in "sleep 5 && libinput-gestures" "obs-notification-mute-daemon" "alacritty --class scratch_term" - "kitty --class scratch_ranger -e ranger" + "kitty --class scratch_yazi -e yazi" "alacritty --class scratch_numbat -e numbat" "kitty --class scratch_music -e ncmpcpp" "alacritty --class scratch_btm -e btm" @@ -240,15 +240,15 @@ in "SUPERSHIFT,9,movetoworkspace,9" ''SUPER,Z,exec,if hyprctl clients | grep scratch_term; then echo "scratch_term respawn not needed"; else alacritty --class scratch_term; fi'' "SUPER,Z,togglespecialworkspace,scratch_term" - ''SUPER,F,exec,if hyprctl clients | grep scratch_ranger; then echo "scratch_ranger respawn not needed"; else kitty --class scratch_ranger -e ranger; fi'' - "SUPER,F,togglespecialworkspace,scratch_ranger" - ''SUPER,N,exec,if hyprctl clients | grep scratch_numbat; then echo "scratch_ranger respawn not needed"; else alacritty --class scratch_numbat -e numbat; fi'' + ''SUPER,F,exec,if hyprctl clients | grep scratch_yazi; then echo "scratch_yazi respawn not needed"; else kitty --class scratch_yazi -e yazi; fi'' + "SUPER,F,togglespecialworkspace,scratch_yazi" + ''SUPER,N,exec,if hyprctl clients | grep scratch_numbat; then echo "scratch_numbat respawn not needed"; else alacritty --class scratch_numbat -e numbat; fi'' "SUPER,N,togglespecialworkspace,scratch_numbat" ''SUPER,M,exec,if hyprctl clients | grep scratch_music; then echo "scratch_music respawn not needed"; else kitty --class scratch_music -e ncmpcpp; fi'' "SUPER,M,togglespecialworkspace,scratch_music" - ''SUPER,B,exec,if hyprctl clients | grep scratch_btm; then echo "scratch_ranger respawn not needed"; else alacritty --class scratch_btm -e btm; fi'' + ''SUPER,B,exec,if hyprctl clients | grep scratch_btm; then echo "scratch_yazi respawn not needed"; else alacritty --class scratch_btm -e btm; fi'' "SUPER,B,togglespecialworkspace,scratch_btm" - ''SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_ranger respawn not needed"; else element-desktop; fi'' + ''SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_yazi respawn not needed"; else element-desktop; fi'' "SUPER,D,togglespecialworkspace,scratch_element" ''SUPER,equal, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 + 0.5}')"'' ''SUPER,minus, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 - 0.5}')"'' @@ -274,10 +274,10 @@ in "center,class:^(scratch_term)$" "float,class:^(float_term)$" "center,class:^(float_term)$" - "float,class:^(scratch_ranger)$" - "size 80% 85%,class:^(scratch_ranger)$" - "workspace special:scratch_ranger silent,class:^(scratch_ranger)$" - "center,class:^(scratch_ranger)$" + "float,class:^(scratch_yazi)$" + "size 80% 85%,class:^(scratch_yazi)$" + "workspace special:scratch_yazi silent,class:^(scratch_yazi)$" + "center,class:^(scratch_yazi)$" "float,class:^(scratch_numbat)$" "size 80% 85%,class:^(scratch_numbat)$" "workspace special:scratch_numbat silent,class:^(scratch_numbat)$" @@ -477,13 +477,13 @@ in file="''${*:2}" file=''${file// /\\ } echo $file - workspace=$(hyprctl monitors -j | jq ".[] | select(.specialWorkspace.name == \"special:scratch_ranger\") | .activeWorkspace.id") + workspace=$(hyprctl monitors -j | jq ".[] | select(.specialWorkspace.name == \"special:scratch_yazi\") | .activeWorkspace.id") if [ -z "''${workspace}" ]; then hyprctl dispatch exec -- "$command"; else hyprctl dispatch exec "[workspace $workspace]" -- "$command" "$file"; fi - hyprctl dispatch togglespecialworkspace scratch_ranger + hyprctl dispatch togglespecialworkspace scratch_yazi '') (pkgs.writeScriptBin "sct" '' #!/bin/sh