From c8b9cf7c3fc89ba4b50989adb3e040915dcab728 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Wed, 13 Dec 2023 03:06:29 +0100 Subject: [PATCH] hyprland: update config --- hypr/.config/hypr/hyprland.conf | 177 ++++++++++++++++----------- hypr/.config/hypr/scripts/daemons.sh | 3 + 2 files changed, 111 insertions(+), 69 deletions(-) diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf index 7403a84b..4cc464de 100644 --- a/hypr/.config/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -61,8 +61,10 @@ general { gaps_in = 10 gaps_out = 20 border_size = 2 - col.active_border = rgba(ff6347ee) rgba(ff4500ee) 45deg - col.inactive_border = rgba(595959aa) + col.active_border = rgba(ffa347ee) rgba(ff6347ee) 45deg + col.inactive_border = rgba(adc9e6ee) rgba(595959ee) 45deg + col.nogroup_border = rgba(732673ee) rgba(4c2673ee) 45deg + col.nogroup_border_active = rgba(993399ee) rgba(663399ee) 45deg layout = dwindle @@ -98,13 +100,14 @@ animations { # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + bezier = overshot, 0.05, 0.9, 0.1, 1.1 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default - animation = workspaces, 1, 6, default + animation = workspaces, 1, 6, default, slidefade 30% } dwindle { @@ -134,9 +137,21 @@ device:epic-mouse-v1 { sensitivity = -0.5 } -group.groupbar { - font_family LiterationMono Nerd Font - font_size 16 +group { + insert_after_current = false + col.border_active = rgba(ffd700ee) rgba(bfff00ee) 45deg + col.border_inactive = rgba(bfa100ee) rgba(8ebd00ee) 45deg + col.border_locked_active = rgba(2e8b57ee) rgba(2e8a73ee) 45deg + col.border_locked_inactive = rgba(226841ee) rgba(226856ee) 45deg + groupbar { + font_family = LiterationMono Nerd Font + font_size = 11 + gradients = true + col.active = 0x88ffd700 + col.inactive = 0x66b39800 + col.locked_active = 0x772e8b57 + col.locked_inactive = 0x55194d40 + } } # Example windowrule v1 @@ -165,83 +180,107 @@ windowrule = float, ^(org.kde.*)$ # windowrule = float, ^(org.kde.skanlite)$ # See https://wiki.hyprland.org/Configuring/Keywords/ for more -$sureMod = SUPER ALT CTRL -$mainMod = SUPER +$suremod = SUPER ALT CTRL +$mainmod = SUPER # binds that don't want to get fat-fingered -bind = $sureMod, Q, killactive, -bind = $sureMod, M, exit, -bind = $sureMod, F, fullscreen,0 -bind = $sureMod, Return, exec, konsole +bind = $suremod, Q, killactive, +bind = $suremod, M, exit, +bind = $suremod, F, fullscreen,0 +bind = $suremod, Return, exec, konsole +bind = $suremod, D, denywindowfromgroup, toggle +bind = $suremod, V, togglefloating, # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Return, exec, foot -L /usr/bin/fish -bind = $mainMod Shift, Return, exec, foot -a popup -L /usr/bin/fish -bind = $mainMod, E, exec, dolphin -bind = $mainMod, F, fullscreen,1 -bind = $mainMod, V, togglefloating, -bind = $mainMod, D, exec, wofi --term=foot --show drun -bind = $mainMod, R, exec, wofi --term=foot --show run -bind = $mainMod, P, pseudo, # dwindle -bind = $mainMod, S, togglesplit, # dwindle -bind = $sureMod, G, togglegroup -bind = $mainMod, G, moveintogroup -bind = $mainMod SHIFT, G, moveoutofgroup +bind = $mainmod, Return, exec, foot -L /usr/bin/fish +bind = $mainmod Shift, Return, exec, foot -w 1280x800 -a popup -L /usr/bin/fish +bind = $mainmod, E, exec, dolphin +bind = $mainmod, F, fullscreen,1 +bind = $mainmod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy +bind = $mainmod, D, exec, wofi --term=foot --show drun +bind = $mainmod, R, exec, wofi --term=foot --show run +bind = $mainmod, P, pseudo, # dwindle +bind = $mainmod, S, togglesplit, # dwindle bind = ALT SHIFT, F12, exec, ~/.config/hypr/scripts/gamemode.sh +bind = $mainmod, G, togglegroup +bind = $mainmod SHIFT, G, lockactivegroup, toggle +bind = $mainmod, TAB, focuscurrentorlast # Move focus with mainMod + arrow keys -bind = $mainMod, left, movefocus, l -bind = $mainMod, right, movefocus, r -bind = $mainMod, up, movefocus, u -bind = $mainMod, down, movefocus, d -bind = $mainMod, H, movefocus, l -bind = $mainMod, L, movefocus, r -bind = $mainMod, K, movefocus, u -bind = $mainMod, J, movefocus, d -bind = $mainMod ALT, H, changegroupactive, b -bind = $mainMod ALT, L, changegroupactive, f +bind = $mainmod, left, movefocus, l +bind = $mainmod, right, movefocus, r +bind = $mainmod, up, movefocus, u +bind = $mainmod, down, movefocus, d +bind = $mainmod, H, movefocus, l +bind = $mainmod, L, movefocus, r +bind = $mainmod, K, movefocus, u +bind = $mainmod, J, movefocus, d # Move windows or groups with mainMod + Shift + arrow keys -bind = $mainMod SHIFT, left, movewindow, l -bind = $mainMod SHIFT, right, movewindow, r -bind = $mainMod SHIFT, up, movewindow, u -bind = $mainMod SHIFT, down, movewindow, d -bind = $mainMod SHIFT, H, movewindow, l -bind = $mainMod SHIFT, L, movewindow, r -bind = $mainMod SHIFT, K, movewindow, u -bind = $mainMod SHIFT, J, movewindow, d +bind = $mainmod SHIFT, left, movewindoworgroup, l +bind = $mainmod SHIFT, right, movewindoworgroup, r +bind = $mainmod SHIFT, up, movewindoworgroup, u +bind = $mainmod SHIFT, down, movewindoworgroup, d +bind = $mainmod SHIFT, H, movewindoworgroup, l +bind = $mainmod SHIFT, L, movewindoworgroup, r +bind = $mainmod SHIFT, K, movewindoworgroup, u +bind = $mainmod SHIFT, J, movewindoworgroup, d + +# Move windows into groups +bind = $mainmod ALT, left, moveintogroup, l +bind = $mainmod ALT, right, moveintogroup, r +bind = $mainmod ALT, up, moveintogroup, u +bind = $mainmod ALT, down, moveintogroup, d +bind = $mainmod ALT, H, moveintogroup, l +bind = $mainmod ALT, L, moveintogroup, r +bind = $mainmod ALT, K, moveintogroup, u +bind = $mainmod ALT, J, moveintogroup, d + +# Move windows out of groups +bind = $mainmod SHIFT ALT, left, moveoutofgroup, l +bind = $mainmod SHIFT ALT, right, moveoutofgroup, r +bind = $mainmod SHIFT ALT, up, moveoutofgroup, u +bind = $mainmod SHIFT ALT, down, moveoutofgroup, d +bind = $mainmod SHIFT ALT, H, moveoutofgroup, l +bind = $mainmod SHIFT ALT, L, moveoutofgroup, r +bind = $mainmod SHIFT ALT, K, moveoutofgroup, u +bind = $mainmod SHIFT ALT, J, moveoutofgroup, d + +# Switch through group windows +bind = $mainmod, O, changegroupactive, f +bind = $mainmod, U, changegroupactive, b # Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 +bind = $mainmod, 1, workspace, 1 +bind = $mainmod, 2, workspace, 2 +bind = $mainmod, 3, workspace, 3 +bind = $mainmod, 4, workspace, 4 +bind = $mainmod, 5, workspace, 5 +bind = $mainmod, 6, workspace, 6 +bind = $mainmod, 7, workspace, 7 +bind = $mainmod, 8, workspace, 8 +bind = $mainmod, 9, workspace, 9 +bind = $mainmod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 +bind = $mainmod SHIFT, 1, movetoworkspace, 1 +bind = $mainmod SHIFT, 2, movetoworkspace, 2 +bind = $mainmod SHIFT, 3, movetoworkspace, 3 +bind = $mainmod SHIFT, 4, movetoworkspace, 4 +bind = $mainmod SHIFT, 5, movetoworkspace, 5 +bind = $mainmod SHIFT, 6, movetoworkspace, 6 +bind = $mainmod SHIFT, 7, movetoworkspace, 7 +bind = $mainmod SHIFT, 8, movetoworkspace, 8 +bind = $mainmod SHIFT, 9, movetoworkspace, 9 +bind = $mainmod SHIFT, 0, movetoworkspace, 10 # Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 +bind = $mainmod, mouse_down, workspace, e+1 +bind = $mainmod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow +bindm = $mainmod, mouse:272, movewindow +bindm = $mainmod, mouse:273, resizewindow # media keys bind = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ @@ -253,8 +292,8 @@ bind = , XF86AudioPrev, exec, playerctl previous bind = , XF86audiostop, exec, playerctl stop # printscr -bind = $mainMod, Print, exec, grim -g "$(slurp)" - | swappy -f - +bind = $mainmod, Print, exec, grim -g "$(slurp)" - | swappy -f - # 'scratchpad -bind = $mainMod, O, togglespecialworkspace, overlay -bind = $mainMod SHIFT, O, movetoworkspace, special:overlay +bind = $mainmod, I, togglespecialworkspace, overlay +bind = $mainmod SHIFT, I, movetoworkspace, special:overlay diff --git a/hypr/.config/hypr/scripts/daemons.sh b/hypr/.config/hypr/scripts/daemons.sh index c1de6917..8ae5f5bf 100755 --- a/hypr/.config/hypr/scripts/daemons.sh +++ b/hypr/.config/hypr/scripts/daemons.sh @@ -17,4 +17,7 @@ fi openrgb -p simple.orp & kak -d -s default & +wl-paste --type text --watch cliphist store & +wl-paste --type image --watch cliphist store & + sleep 2 && logger 'userland daemons startup begin' && logger '==============================' -- 2.51.2