From 1686fac9d5f5fcf57c3773b98d36dc8372597ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 14 Dec 2023 00:16:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20perf(hypr):=20custom=20app=20lau?= =?UTF-8?q?nch=20script=20now=20executes=20the=20apps=20in=20the=20backgro?= =?UTF-8?q?und?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/scripts/custom_app_launch | 48 +++++++++++++------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.config/hypr/scripts/custom_app_launch b/.config/hypr/scripts/custom_app_launch index 0c427af7..046d0294 100755 --- a/.config/hypr/scripts/custom_app_launch +++ b/.config/hypr/scripts/custom_app_launch @@ -12,73 +12,73 @@ source ~/.config/hypr/scripts/monitors case $app in "nemo") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then - hyprctl dispatch exec [workspace 4] nemo + hyprctl dispatch exec [workspace 4] nemo & elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then - hyprctl dispatch exec [workspace 14] nemo + hyprctl dispatch exec [workspace 14] nemo & else - nemo + nemo & fi ;; "obsidian") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then - hyprctl dispatch exec [workspace 10] obsidian + hyprctl dispatch exec [workspace 10] obsidian & 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 + hyprctl dispatch exec [workspace 30] obsidian & else - obsidian + obsidian & fi ;; "office") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then - hyprctl dispatch exec [workspace 10] libreoffice + hyprctl dispatch exec [workspace 10] libreoffice & 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 + hyprctl dispatch exec [workspace 30] libreoffice & else - libreoffice + libreoffice & fi ;; "kitty") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then - hyprctl dispatch exec [workspace 3] kitty + hyprctl dispatch exec [workspace 3] kitty & elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then - hyprctl dispatch exec [workspace 13] kitty + hyprctl dispatch exec [workspace 13] kitty & elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then - hyprctl dispatch exec "[workspace 24] kitty --class center-float-large" + hyprctl dispatch exec "[workspace 24] kitty --class center-float-large" & else - kitty + kitty & fi ;; "nvim") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then - hyprctl dispatch exec [workspace 2] kitty nvim + hyprctl dispatch exec [workspace 2] kitty nvim & elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then - hyprctl dispatch exec [workspace 12] kitty nvim + hyprctl dispatch exec [workspace 12] kitty nvim & else - kitty nvim + kitty nvim & fi ;; "neovide") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then - hyprctl dispatch workspace 2 && neovide + hyprctl dispatch workspace 2 && neovide & elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then - hyprctl dispatch workspace 12 && neovide + 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 + hyprctl dispatch workspace 1 && librewolf & # Had to to this because it didnt work the other way elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then - hyprctl dispatch workspace 11 && librewolf + hyprctl dispatch workspace 11 && librewolf & elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then - hyprctl dispatch workspace 25 && librewolf + hyprctl dispatch workspace 25 && librewolf & else - librewolf + librewolf & fi ;; *) ;;