personal dotfiles: my Hyprland config
Diffstat (limited to '.config/hypr/hyprland.conf')
| -rw-r--r-- | .config/hypr/hyprland.conf | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index d69bfe5..d731e40 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,17 +1,3 @@ - -######################################################################################## -AUTOGENERATED HYPR CONFIG. -PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, -OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. -######################################################################################## - -# -# Please note not all available settings / options are set here. -# For a full list, see the wiki -# - -autogenerated = 0 # remove this line to remove the warning - # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=,preferred,auto,auto monitor=DSI-1,preferred,auto,3 @@ -62,7 +48,7 @@ general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 5 - gaps_out = 5 + gaps_out = 20 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) @@ -126,6 +112,7 @@ gestures { workspace_swipe_invert = off workspace_swipe_forever = on #workspace_swipe_direction_lock = on + workspace_swipe_numbered = on } misc { @@ -151,7 +138,7 @@ windowrulev2 = nomaximizerequest, class:.* # You'll probably like this. $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Q, exec, $terminal +bind = $mainMod, Q, exec, $terminal $terminal_opts bind = $mainMod, C, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager @@ -202,24 +189,31 @@ bind = $mainMod, mouse_up, workspace, e-1 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow -#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 +bindi = , XF86AudioRaiseVolume, exec, $menu +#bindi = , XF86AudioRaiseVolume, exec, hyprctl dispatch submap menu; $menu; hyprctl dispatch submap reset +bindi = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl & pkill -SIGRTMIN suggpicker +# if someone killed the keyboard, restart it +bindi =, XF86AudioLowerVolume, execr, pgrep $keyboard || $keyboard $keyboard_args # 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?? +bindli = , XF86PowerOff, exec, hyprctl dispatch dpms $(hyprctl -j monitors | jq -r 'first|.dpmsStatus|if . then "off" else "on" end') +# disable input on screen off +bindli = , XF86PowerOff, exec, hyprctl keyword input:touchdevice:enabled $(hyprctl -j getoption input:touchdevice:enabled | jq '.int==0') +#bind = , XF86PowerOff, exec, $lock + # 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 +bindie=,XF86AudioRaiseVolume,exec,wtype -k up +bindie=, XF86AudioLowerVolume,exec,wtype -k down +bindi=,XF86PowerOff, exec, wtype -k return +# also close the submap when you push the button +bindi=,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 + +# "fullscreen" for mobile +bind = $mainMod, F, exec, hyprctl keyword general:gaps_out $(hyprctl -j getoption general:gaps_out 20 | jq 'if .int == 20 then 0 else 20 end') |