From dc7f605c8fb35b3ffd979515190ba11d1d8a1098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 12 Nov 2023 20:24:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20added=20repos=20keybi?= =?UTF-8?q?nding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/functions/repos.fish | 2 +- .config/hypr/keybinds/binds.conf | 1 + .config/hypr/scripts/custom_app_launch | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/fish/functions/repos.fish b/.config/fish/functions/repos.fish index 945b4054..e8f2bc88 100644 --- a/.config/fish/functions/repos.fish +++ b/.config/fish/functions/repos.fish @@ -3,7 +3,7 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new if test -n "$selected_dir" set tab_title (basename "$selected_dir") - set new_tab_cmd "kitty @ launch --type=tab --tab-title \"$tab_title\" ~/Repos/$selected_category/$selected_dir" + set new_tab_cmd "kitty @ launch --type=tab --tab-title \"$tab_title\" ~/Repos/$selected_dir" eval $new_tab_cmd end diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 6209e913..4c33e438 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 repos # 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..88d255ff 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 ;; +"repos") + if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then + hyprctl dispatch exec "[workspace 2] kitty fish -c repos" + elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then + hyprctl dispatch exec "[workspace 12] kitty fish -c repos" + else + kitty fish -c repos + fi + ;; "librewolf") if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then hyprctl dispatch workspace 1 && librewolf # Had to to this because it didnt work the other way