diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-29 00:19:40 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-29 00:19:40 +0100 |
commit | ad05553b307b348f7c1a1ce7b3500ed6118e0dc4 (patch) | |
tree | 899637237394d499b824764c5f9e4c0ebccaf376 /.config/hypr | |
parent | 430b60ad1fcedf6adecfad7b37aeaaf15c00f6a3 (diff) |
Hyprland: More macro goodness + shadows
Diffstat (limited to '.config/hypr')
-rw-r--r-- | .config/hypr/hyprland.conf.in | 46 | ||||
-rw-r--r-- | .config/hypr/macros.m4 | 12 |
2 files changed, 39 insertions, 19 deletions
diff --git a/.config/hypr/hyprland.conf.in b/.config/hypr/hyprland.conf.in index eee9d5e..950f3fe 100644 --- a/.config/hypr/hyprland.conf.in +++ b/.config/hypr/hyprland.conf.in @@ -43,6 +43,11 @@ decoration { dim_inactive = yes dim_strength = 0.1 rounding = 8 + + drop_shadow = true + shadow_offset = 3 3 + shadow_range = 20 + shadow_render_power = 4 } dwindle { @@ -79,21 +84,20 @@ bind = $modkey, Q, killactive bind = $modkey SHIFT, F, togglefloating # Global programs -bind = $modkey, M, exec, exec foot aerc 2>/dev/null -bind = $modkey, Return, exec, exec foot -bind = $modkey, Space, exec, exec fuzzel --log-level=warning --show-actions -bind = , Print, exec, exec scst 2>/dev/null -bind = SHIFT, Print, exec, exec scst -f 2>/dev/null +__bind(C, foot ec) +__bind(M, foot aerc) +__bind(W, firefox) +__bind(return, foot) +__bind(space, fuzzel --log-level=warning --show-actions) +__bind( , print, scst) +__bind(SHIFT, print, scst -f) # Prompt-/Dmenu-style programs __submap(prompt, P, [ - __subbind(C, foot ec) - __subbind(D, woman) - __subbind(E, emacsclient -c -a emacs) + __subbind(K, chkb) + __subbind(M, woman) __subbind(P, vlt get) __subbind(U, uni) - __subbind(W, firefox) - __subbind(X, chkb) ]) # Change focused window @@ -151,14 +155,20 @@ bind = $modkey CONTROL, 18, movetoworkspace, 9 bind = $modkey CONTROL, 19, movetoworkspace, 10 # Media keys -binde = , xf86audiomute, exec, amixer -q sset Master toggle -binde = , xf86audiolowervolume, exec, amixer -q sset Master 5%- -binde = , xf86audioraisevolume, exec, amixer -q sset Master 5%+ -binde = , xf86audiomedia, exec, foot -e nvim ~/.config/hypr/hyprland.conf -binde = , xf86monbrightnessup, exec, lux -I 5 -binde = , xf86monbrightnessdown, exec, lux -D 5 -bind = SHIFT, xf86monbrightnessup, exec, lux -S 50 -bind = SHIFT, xf86monbrightnessdown, exec, lux -s 0 +__binde(, xf86audiomute, amixer -q sset Master toggle) +__binde(, xf86audiolowervolume, amixer -q sset Master 5%-) +__binde(, xf86audioraisevolume, amixer -q sset Master 5%+) + +__binde(, xf86monbrightnessup, lux -I 5) +__bind(SHIFT, xf86monbrightnessup, lux -S 50) +__binde(, xf86monbrightnessdown, lux -D 5) +__bind(SHIFT, xf86monbrightnessdown, lux -s 0) + +# Settings key on Framework laptop +__binde(, + xf86audiomedia, + foot sh -c 'cd ~/.config/hypr && nvim hyprland.conf.in' +) # Scroll through existing workspaces with modkey + scroll bind = $modkey, mouse_down, workspace, e+1 diff --git a/.config/hypr/macros.m4 b/.config/hypr/macros.m4 index f466f63..db542df 100644 --- a/.config/hypr/macros.m4 +++ b/.config/hypr/macros.m4 @@ -8,7 +8,17 @@ define(__submap, [ submap = reset ]) +define(__bindX, [ + ifelse([$#], 4, [ + bind$1 = $2, $3, exec, exec $4 2>/dev/null >&2 + ], [ + bind$1 = $modkey, $2, exec, exec $3 2>/dev/null >&2 + ]) +]) + +define(__bind, [__bindX(, $@)]) +define(__binde, [__bindX(e,$@)]) define(__subbind, [ - bind = , $1, exec, exec $2 2>/dev/null + __bindX(,,$@) bind = , $1, submap, reset ]) |