From 2cd3609ebd2e13cbe5e716b83220fdcde5f18a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 8 Nov 2023 23:57:43 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20added=20office=20bind?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/keybinds/binds.conf | 3 +++ .config/hypr/scripts/custom_app_launch | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 8844eb4b..1b443c66 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -14,8 +14,10 @@ bind=SUPER,Z,exec,pypr zoom ## Applications bind=SUPER,W,exec,librewolf 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=SUPER,RETURN,exec,kitty +bind=SUPERSHIFT,V,exec,easyeffects # Launchers 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 bind=SUPERSHIFT,w,exec, ~/.config/hypr/scripts/wallpaper select +bind=SUPERCTRL,w,exec, ~/.config/hypr/scripts/wallpaper random # Keybindings Cheatsheet bind=SUPER,i,exec, ~/.config/hypr/scripts/rofi/keybindings diff --git a/.config/hypr/scripts/custom_app_launch b/.config/hypr/scripts/custom_app_launch index b7eb1918..6522093e 100755 --- a/.config/hypr/scripts/custom_app_launch +++ b/.config/hypr/scripts/custom_app_launch @@ -28,6 +28,15 @@ case $app in obsidian 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 ._. # "librewolf") # if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then