From 64a539dad975771f84b9f03bb19e754cd455b988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 10 Jan 2024 21:30:46 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(hypr):=20implemen?= =?UTF-8?q?t=20each=20plugin=20in=20their=20own=20file=20instead=20of=20a?= =?UTF-8?q?=20global=20plugins=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this way there's more modularity, which I always like --- .config/hypr/configs/binds.conf | 13 ------------- .config/hypr/hyprland.conf | 9 ++++++--- .../{configs/plugins.conf => plugins/hycov.conf} | 15 +++++++++++++-- 3 files changed, 19 insertions(+), 18 deletions(-) rename .config/hypr/{configs/plugins.conf => plugins/hycov.conf} (72%) diff --git a/.config/hypr/configs/binds.conf b/.config/hypr/configs/binds.conf index 016d1d69..df1f0eb7 100644 --- a/.config/hypr/configs/binds.conf +++ b/.config/hypr/configs/binds.conf @@ -178,16 +178,3 @@ bind = SUPER, F12, exec, ~/.config/hypr/scripts/performance # Open Wiki bind = SUPERSHIFT, F1, exec, xdg-open https://wiki.hyprland.org/ bind = SUPERCTRL, F1, exec, xdg-open https://github.com/Matt-FTW/dotfiles/wiki - -## Plugins -# Overview mode -bind = ALT, TAB, hycov:toggleoverview -bind = SUPERALT, BACKSPACE, hycov:toggleoverview, forceall -bind = SUPERALT, LEFT, hycov:movefocus, l -bind = SUPERALT, RIGHT, hycov:movefocus, r -bind = SUPERALT, UP, hycov:movefocus, u -bind = SUPERALT, DOWN, hycov:movefocus, d -bind = SUPERALT, H, hycov:movefocus, l -bind = SUPERALT, L, hycov:movefocus, r -bind = SUPERALT, K, hycov:movefocus, u -bind = SUPERALT, J, hycov:movefocus, d diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 8bb6692a..251ef1b1 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,6 +1,5 @@ -# Configs (change to whichever config you want to use) +# Configs source = ~/.config/hypr/configs/env.conf -source = ~/.config/hypr/configs/plugins.conf source = ~/.config/hypr/configs/binds.conf source = ~/.config/hypr/configs/monitors.conf source = ~/.config/hypr/configs/workspaces.conf @@ -9,6 +8,10 @@ source = ~/.config/hypr/configs/workspaces.conf exec-once = $HOME/.config/hypr/scripts/autostart/services exec-once = $HOME/.config/hypr/scripts/autostart/apps -# Theme (change to whichever theme you want to use) +# Theme source = ~/.config/hypr/themes/luna/theme.conf source = ~/.config/hypr/themes/luna/rules.conf + +# Plugins +exec-once = hyprpm reload -n +source = ~/.config/hypr/plugins/hycov.conf diff --git a/.config/hypr/configs/plugins.conf b/.config/hypr/plugins/hycov.conf similarity index 72% rename from .config/hypr/configs/plugins.conf rename to .config/hypr/plugins/hycov.conf index f60dd7f2..a3993523 100644 --- a/.config/hypr/configs/plugins.conf +++ b/.config/hypr/plugins/hycov.conf @@ -1,5 +1,4 @@ -exec-once = hyprpm reload -n - +# Conf plugin { hycov { overview_gappo = 60 # gaps width from screen edge @@ -20,3 +19,15 @@ plugin { click_in_cursor = 1 # target windwo is find by cursor, not the current foucus window. } } + +# Keybinds +bind = ALT, TAB, hycov:toggleoverview +bind = SUPERALT, BACKSPACE, hycov:toggleoverview, forceall +bind = SUPERALT, LEFT, hycov:movefocus, l +bind = SUPERALT, RIGHT, hycov:movefocus, r +bind = SUPERALT, UP, hycov:movefocus, u +bind = SUPERALT, DOWN, hycov:movefocus, d +bind = SUPERALT, H, hycov:movefocus, l +bind = SUPERALT, L, hycov:movefocus, r +bind = SUPERALT, K, hycov:movefocus, u +bind = SUPERALT, J, hycov:movefocus, d