feat(hypr): added bindings and workspace rules for kitty and nvim

This commit is contained in:
Sergio Laín 2023-11-12 13:57:04 +01:00
parent 938f6bbb7e
commit ca7d199d57
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 26 additions and 1 deletions

View file

@ -13,11 +13,12 @@ bind=SUPER,Z,exec,pypr zoom
## Applications ## Applications
bind=SUPER,W,exec,~/.config/hypr/scripts/custom_app_launch librewolf bind=SUPER,W,exec,~/.config/hypr/scripts/custom_app_launch librewolf
bind=SUPERSHIFT,C,exec,code
bind=SUPER,O,exec,~/.config/hypr/scripts/custom_app_launch obsidian bind=SUPER,O,exec,~/.config/hypr/scripts/custom_app_launch obsidian
bind=SUPERSHIFT,O,exec,~/.config/hypr/scripts/custom_app_launch office bind=SUPERSHIFT,O,exec,~/.config/hypr/scripts/custom_app_launch office
bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo 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=SUPER,BackSpace,exec,~/.config/hypr/scripts/custom_app_launch nvim
# 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

View file

@ -24,6 +24,8 @@ case $app in
hyprctl dispatch exec [workspace 10] obsidian hyprctl dispatch exec [workspace 10] obsidian
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 20] obsidian hyprctl dispatch exec [workspace 20] obsidian
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec [workspace 30] obsidian
else else
obsidian obsidian
fi fi
@ -33,10 +35,32 @@ case $app in
hyprctl dispatch exec [workspace 10] libreoffice hyprctl dispatch exec [workspace 10] libreoffice
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 20] libreoffice hyprctl dispatch exec [workspace 20] libreoffice
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec [workspace 30] libreoffice
else else
libreoffice libreoffice
fi fi
;; ;;
"kitty")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 3] kitty
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 13] kitty
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec "[workspace 24] kitty --class center-float"
else
kitty
fi
;;
"nvim")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 2] kitty nvim
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 12] kitty nvim
else
kitty nvim
fi
;;
# I DONT KNOW WHY LIBREWOLF IS NOT WORKING ._. # I DONT KNOW WHY LIBREWOLF IS NOT WORKING ._.
"librewolf") "librewolf")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then