feat(hypr): added office binding

This commit is contained in:
Sergio Laín 2023-11-08 23:57:43 +01:00
parent d866f1b11b
commit 2cd3609ebd
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 12 additions and 0 deletions

View file

@ -14,8 +14,10 @@ bind=SUPER,Z,exec,pypr zoom
## Applications ## Applications
bind=SUPER,W,exec,librewolf bind=SUPER,W,exec,librewolf
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,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,V,exec,easyeffects
# 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
@ -43,6 +45,7 @@ bind=SUPER,Insert,exec, ~/.config/hypr/scripts/color_picker
# Wallpaper # Wallpaper
bind=SUPERSHIFT,w,exec, ~/.config/hypr/scripts/wallpaper select bind=SUPERSHIFT,w,exec, ~/.config/hypr/scripts/wallpaper select
bind=SUPERCTRL,w,exec, ~/.config/hypr/scripts/wallpaper random
# Keybindings Cheatsheet # Keybindings Cheatsheet
bind=SUPER,i,exec, ~/.config/hypr/scripts/rofi/keybindings bind=SUPER,i,exec, ~/.config/hypr/scripts/rofi/keybindings

View file

@ -28,6 +28,15 @@ case $app in
obsidian obsidian
fi fi
;; ;;
"office")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 10] libreoffice
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 20] libreoffice
else
libreoffice
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