✨ feat(hypr): added repos keybinding
This commit is contained in:
parent
08960ee60f
commit
dc7f605c8f
3 changed files with 11 additions and 1 deletions
|
@ -3,7 +3,7 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new
|
||||||
|
|
||||||
if test -n "$selected_dir"
|
if test -n "$selected_dir"
|
||||||
set tab_title (basename "$selected_dir")
|
set tab_title (basename "$selected_dir")
|
||||||
set new_tab_cmd "kitty @ launch --type=tab --tab-title \"$tab_title\" ~/Repos/$selected_category/$selected_dir"
|
set new_tab_cmd "kitty @ launch --type=tab --tab-title \"$tab_title\" ~/Repos/$selected_dir"
|
||||||
eval $new_tab_cmd
|
eval $new_tab_cmd
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo
|
||||||
bind=SUPER,RETURN,exec,kitty
|
bind=SUPER,RETURN,exec,kitty
|
||||||
bind=SUPERSHIFT,RETURN,exec,~/.config/hypr/scripts/custom_app_launch kitty
|
bind=SUPERSHIFT,RETURN,exec,~/.config/hypr/scripts/custom_app_launch kitty
|
||||||
bind=SUPER,BackSpace,exec,~/.config/hypr/scripts/custom_app_launch nvim
|
bind=SUPER,BackSpace,exec,~/.config/hypr/scripts/custom_app_launch nvim
|
||||||
|
bind=SUPERSHIFT,BackSpace,exec,~/.config/hypr/scripts/custom_app_launch repos
|
||||||
|
|
||||||
# Launchers
|
# Launchers
|
||||||
bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab
|
bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab
|
||||||
|
|
|
@ -61,6 +61,15 @@ case $app in
|
||||||
kitty nvim
|
kitty nvim
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
"repos")
|
||||||
|
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
|
||||||
|
hyprctl dispatch exec "[workspace 2] kitty fish -c repos"
|
||||||
|
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
|
||||||
|
hyprctl dispatch exec "[workspace 12] kitty fish -c repos"
|
||||||
|
else
|
||||||
|
kitty fish -c repos
|
||||||
|
fi
|
||||||
|
;;
|
||||||
"librewolf")
|
"librewolf")
|
||||||
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
|
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
|
||||||
hyprctl dispatch workspace 1 && librewolf # Had to to this because it didnt work the other way
|
hyprctl dispatch workspace 1 && librewolf # Had to to this because it didnt work the other way
|
||||||
|
|
Loading…
Add table
Reference in a new issue