personal dotfiles: my Hyprland config
Diffstat (limited to '.config/hypr/hyprland.conf')
| -rw-r--r-- | .config/hypr/hyprland.conf | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 5d16c42..d69bfe5 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -119,7 +119,13 @@ master { gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more - workspace_swipe = off + workspace_swipe = on + workspace_swipe_cancel_ratio = 0.5 + workspace_swipe_min_speed_to_force = 5 + workspace_swipe_touch = 1 + workspace_swipe_invert = off + workspace_swipe_forever = on + #workspace_swipe_direction_lock = on } misc { @@ -196,10 +202,24 @@ bind = $mainMod, mouse_up, workspace, e-1 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow -bind = , XF86AudioRaiseVolume, exec, $menu -#bind = , XF86AudioLowerVolume, exec, 'sh -c "pkill -f $keyboard || $keyboard $keyboard_args"' -#bind = , XF86AudioLowerVolume, exec, pkill -f wvkbd-mobintl \|\| wvkbd-mobintl -H 160 -O | swipeB -#bind = , XF86AudioLowerVolume, exec, pkill -f $keyboard -bind = , XF86AudioLowerVolume, exec, kill -SIGRTMIN $(pgrep wvkbd-mobintl) +#bind = , XF86AudioRaiseVolume, exec, $menu +bind = , XF86AudioRaiseVolume, exec, hyprctl dispatch submap menu; $menu; hyprctl dispatch submap reset +bind = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl & pkill -SIGRTMIN suggpicker #bind = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl && pkill -SIGRTMIN -f suggpicker +# toggle screen on/off +bind = , XF86PowerOff, exec, hyprctl -i 0 dispatch dpms $(hyprctl -j -i 0 monitors | jq -r 'first|.dpmsStatus|if . then "off" else "on" end') +# TODO: disable input on screen off?? +# TODO: lock screen on screen off? + +# menu submap +submap=menu +binde=,XF86AudioRaiseVolume,exec,wtype -k up +binde=, XF86AudioLowerVolume,exec,wtype -k down +bind=,XF86PowerOff, exec, wtype -k return +# fallback:reset the submap when you release the power button +bindr=,XF86PowerOff,submap,reset +# use shift+escs to go back to the global submap +bind=SHIFT,escape,submap,reset +# will reset the submap, meaning end the current one and return to the global one +submap=reset |