feat(hypr): add hycov plugin to get an overview mode

This commit is contained in:
Sergio Laín 2024-01-10 01:27:50 +01:00
parent 32aecb4bab
commit 3a0ac31e10
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 40 additions and 7 deletions

View file

@ -126,11 +126,8 @@ bind = SUPERCTRL, H, workspace,m-1
bind = SUPERCTRL, L, workspace,m+1
# Group control
bind = SUPERSHIFT, 51, exec, pypr expose # Backslash
bind = SUPERSHIFT, 48, togglespecialworkspace, minimized # Single quote
bind = SUPER, 48, exec, pypr toggle_minimized # Single quote
bind = SUPER, G, togglegroup
bind = ALT, TAB, changegroupactive
bind = SUPERSHIFT, TAB, changegroupactive
# Submap for resizing windows
bind = SUPER, R, submap, resize
@ -146,7 +143,7 @@ binde = , H, resizeactive, -40 0
binde = , K, resizeactive, 0 -40
binde = , J, resizeactive, 0 40
bind = , escape, submap, reset
bind = , escape, submap, reset
submap = reset
@ -181,3 +178,16 @@ 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 = ALT, BACKSPACE, hycov:toggleoverview, forceall
bind = ALT, LEFT, hycov:movefocus, l
bind = ALT, RIGHT, hycov:movefocus, r
bind = ALT, UP, hycov:movefocus, u
bind = ALT, DOWN, hycov:movefocus, d
bind = ALT, H, hycov:movefocus, l
bind = ALT, L, hycov:movefocus, r
bind = ALT, K, hycov:movefocus, u
bind = ALT, J, hycov:movefocus, d

View file

@ -0,0 +1,22 @@
exec-once = hyprpm reload -n
plugin {
hycov {
overview_gappo = 60 # gaps width from screen edge
overview_gappi = 24 # gaps width from clients
hotarea_size = 10 # hotarea size in bottom left,10x10
enable_hotarea = 1 # enable mouse cursor hotarea
swipe_fingers = 4 # finger number of gesture,move any directory
move_focus_distance = 100 # distance for movefocus,only can use 3 finger to move
enable_gesture = 1 # enable gesture
disable_workspace_change = 0 # disable workspace change when in overview mode
disable_spawn = 0 # disable bind exec when in overview mode
auto_exit = 1 # enable auto exit when no client in overview
auto_fullscreen = 0 # auto make active window maximize after exit overview
only_active_workspace = 0 # only overview the active workspace
only_active_monitor = 1 # only overview the active monitor
enable_alt_release_exit = 0 # alt swith mode,see readme for detail
alt_toggle_auto_next = 0 # auto focus next window when toggle overview in alt swith mode
click_in_cursor = 1 # target windwo is find by cursor, not the current foucus window.
}
}

View file

@ -1,5 +1,6 @@
# Configs (change to whichever config you want to use)
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

View file

@ -57,7 +57,7 @@ windowrulev2 = size 70% 70%, $scratchpad
windowrulev2 = workspace special:scratchpad silent, $scratchpad
$sideScratchpad = class:^(.*pavucontrol.*)$|(.*blueman-manager.*)$ #|^(.*localsend.*)$
windowrulev2 = workspace special:sideScratchpad silent, $sideScratchpad
windowrulev2 = workspace special:scratchpad silent, $sideScratchpad
windowrulev2 = size 30% 90%, $sideScratchpad
windowrulev2 = float, $sideScratchpad
windowrulev2 = center 1, $sideScratchpad
@ -72,7 +72,7 @@ windowrulev2 = noinitialfocus, $videobridge
$zathura = class:^(.*zathura.*)$
windowrulev2 = float, $zathura
windowrulev2 = size 35% 90%, $zathura
windowrulev2 = size 35% 90%, $zathura
windowrulev2 = center 1, $zathura
$scrcpy = class:^(.*scrcpy.*)$