From 3a0ac31e10d9704ecdf04609979ae2b5b8c776b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 10 Jan 2024 01:27:50 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20add=20hycov=20plugin?= =?UTF-8?q?=20to=20get=20an=20overview=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/configs/binds.conf | 20 +++++++++++++++----- .config/hypr/configs/plugins.conf | 22 ++++++++++++++++++++++ .config/hypr/hyprland.conf | 1 + .config/hypr/themes/luna/rules.conf | 4 ++-- 4 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 .config/hypr/configs/plugins.conf diff --git a/.config/hypr/configs/binds.conf b/.config/hypr/configs/binds.conf index ecca1caf..bab601fd 100644 --- a/.config/hypr/configs/binds.conf +++ b/.config/hypr/configs/binds.conf @@ -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 diff --git a/.config/hypr/configs/plugins.conf b/.config/hypr/configs/plugins.conf new file mode 100644 index 00000000..f60dd7f2 --- /dev/null +++ b/.config/hypr/configs/plugins.conf @@ -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. + } +} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 158ed01d..8bb6692a 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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 diff --git a/.config/hypr/themes/luna/rules.conf b/.config/hypr/themes/luna/rules.conf index b1c20cba..1b3cc645 100644 --- a/.config/hypr/themes/luna/rules.conf +++ b/.config/hypr/themes/luna/rules.conf @@ -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.*)$