Implement resize submap

This commit is contained in:
Salt 2025-02-27 01:05:00 -06:00
parent 90ef8c3271
commit 4efd4c3625
3 changed files with 28 additions and 2 deletions
hyprland/.config

@ -79,6 +79,19 @@ bind = $mainMod SHIFT, MINUS, movetoworkspace, 11
bind = $mainMod, Period, workspace, e+1
bind = $mainMod, Comma, workspace, e-1
# Resize
# Move windows around
bindm = $mainMod, mouse:272, movewindow
# Resize mouse binding and submap
bindm = $mainMod, mouse:273, resizewindow
bind = $mainMod SHIFT, R, submap, resize
submap = resize
$resizeFactor = 50
bind = , l, resizeactive, $resizeFactor 0
bind = , h, resizeactive, -$resizeFactor 0
bind = , k, resizeactive, 0 -$resizeFactor
bind = , j, resizeactive, 0 $resizeFactor
bind = , Return, submap, reset
bind = , Escape, submap, reset
bind = $mainMod SHIFT, R, submap, reset
submap = reset

@ -6,7 +6,7 @@
"margin-top": 16,
"margin-left": 16,
"margin-right": 16,
"modules-left": ["hyprland/workspaces", "hyprland/window", "sway/mode"],
"modules-left": ["hyprland/workspaces", "hyprland/window", "hyprland/submap", "sway/mode"],
"modules-right": ["tray"],
"hyprland/workspaces": {
"all-outputs": false,
@ -21,6 +21,9 @@
"separate-outputs": true,
"format": "{}"
},
"hyprland/submap": {
"on-click": "hyprctl dispatch submap reset"
},
"tray": {
"icon-size": 16,
"spacing": 10

@ -89,6 +89,16 @@ window#waybar.fullscreen #window {
color: rgba(40, 40, 40, 0.8);
background: #d3869b;
}
/* Submap display */
#submap {
color: rgba(235, 219, 178, 0.4);
padding: 0 1em;
border-radius: 8px;
}
#submap.resize {
color: rgba(40, 40, 40, 0.8);
background: #d3869b;
}
/* widgets */
#pulseaudio {