From 4b1cbfdd0f1af139fe8bea88b61e2f1f4647a3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 12 Nov 2023 23:40:21 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20added=20neovide=20rul?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/keybinds/binds.conf | 1 + .config/hypr/scripts/custom_app_launch | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 6209e913..14b432f8 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -19,6 +19,7 @@ bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo 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 +bind=SUPERSHIFT,BackSpace,exec,~/.config/hypr/scripts/custom_app_launch neovide # Launchers bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab diff --git a/.config/hypr/scripts/custom_app_launch b/.config/hypr/scripts/custom_app_launch index b35c079c..56a2019e 100755 --- a/.config/hypr/scripts/custom_app_launch +++ b/.config/hypr/scripts/custom_app_launch @@ -61,6 +61,15 @@ case $app in kitty nvim fi ;; +"neovide") + if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then + hyprctl dispatch workspace 2 && neovide + elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then + hyprctl dispatch workspace 12 && neovide + else + neovide + fi + ;; "librewolf") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then hyprctl dispatch workspace 1 && librewolf # Had to to this because it didnt work the other way