switching over to yazi

This commit is contained in:
Emmet
2025-05-02 10:42:14 -05:00
parent d704ed1c49
commit 3e87bd1b9e
5 changed files with 16 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
brave.enable = true; brave.enable = true;
editor = "emacs"; editor = "emacs";
ranger.enable = true; ranger.enable = true;
yazi.enable = true;
git.enable = true; git.enable = true;
engineering.enable = true; engineering.enable = true;
art.enable = true; art.enable = true;

View File

@@ -13,6 +13,7 @@
# programs # programs
ranger.enable = true; ranger.enable = true;
yazi.enable = true;
git.enable = true; git.enable = true;
}; };

View File

@@ -16,6 +16,7 @@
browser = "brave"; browser = "brave";
editor = "kate"; editor = "kate";
ranger.enable = true; ranger.enable = true;
yazi.enable = true;
git.enable = true; git.enable = true;
art.enable = true; art.enable = true;
flatpak.enable = false; flatpak.enable = false;

View File

@@ -16,6 +16,7 @@
brave.enable = true; brave.enable = true;
editor = "emacs"; editor = "emacs";
ranger.enable = true; ranger.enable = true;
yazi.enable = true;
git.enable = true; git.enable = true;
engineering.enable = true; engineering.enable = true;
art.enable = true; art.enable = true;

View File

@@ -65,7 +65,7 @@ in
"sleep 5 && libinput-gestures" "sleep 5 && libinput-gestures"
"obs-notification-mute-daemon" "obs-notification-mute-daemon"
"alacritty --class scratch_term" "alacritty --class scratch_term"
"kitty --class scratch_ranger -e ranger" "kitty --class scratch_yazi -e yazi"
"alacritty --class scratch_numbat -e numbat" "alacritty --class scratch_numbat -e numbat"
"kitty --class scratch_music -e ncmpcpp" "kitty --class scratch_music -e ncmpcpp"
"alacritty --class scratch_btm -e btm" "alacritty --class scratch_btm -e btm"
@@ -240,15 +240,15 @@ in
"SUPERSHIFT,9,movetoworkspace,9" "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,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,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,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_ranger" "SUPER,F,togglespecialworkspace,scratch_yazi"
''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,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,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,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,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,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,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,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}')"'' ''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)$" "center,class:^(scratch_term)$"
"float,class:^(float_term)$" "float,class:^(float_term)$"
"center,class:^(float_term)$" "center,class:^(float_term)$"
"float,class:^(scratch_ranger)$" "float,class:^(scratch_yazi)$"
"size 80% 85%,class:^(scratch_ranger)$" "size 80% 85%,class:^(scratch_yazi)$"
"workspace special:scratch_ranger silent,class:^(scratch_ranger)$" "workspace special:scratch_yazi silent,class:^(scratch_yazi)$"
"center,class:^(scratch_ranger)$" "center,class:^(scratch_yazi)$"
"float,class:^(scratch_numbat)$" "float,class:^(scratch_numbat)$"
"size 80% 85%,class:^(scratch_numbat)$" "size 80% 85%,class:^(scratch_numbat)$"
"workspace special:scratch_numbat silent,class:^(scratch_numbat)$" "workspace special:scratch_numbat silent,class:^(scratch_numbat)$"
@@ -477,13 +477,13 @@ in
file="''${*:2}" file="''${*:2}"
file=''${file// /\\ } file=''${file// /\\ }
echo $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 if [ -z "''${workspace}" ]; then
hyprctl dispatch exec -- "$command"; hyprctl dispatch exec -- "$command";
else else
hyprctl dispatch exec "[workspace $workspace]" -- "$command" "$file"; hyprctl dispatch exec "[workspace $workspace]" -- "$command" "$file";
fi fi
hyprctl dispatch togglespecialworkspace scratch_ranger hyprctl dispatch togglespecialworkspace scratch_yazi
'') '')
(pkgs.writeScriptBin "sct" '' (pkgs.writeScriptBin "sct" ''
#!/bin/sh #!/bin/sh