♻️ refactor(hypr): implement each plugin in their own file instead of a global plugins file

this way there's more modularity, which I always like
This commit is contained in:
Sergio Laín 2024-01-10 21:30:46 +01:00
parent 8aeefedea8
commit 64a539dad9
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 19 additions and 18 deletions

View file

@ -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

View file

@ -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

View file

@ -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