hypr: setup swaylock

This commit is contained in:
Smirnov Oleksandr 2024-01-15 13:12:41 +02:00
parent d0ed79ba00
commit 12789668aa
2 changed files with 55 additions and 1 deletions

View file

@ -14,7 +14,8 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = blueman-applet
exec-once = ~/.config/hypr/xdg-portal.sh
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = exec-once = swayidle timeout 120 "hyprctl dispatcher dpms off && swaylock"
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = swayidle -w timeout 120 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'
# }}}
## inputs {{{
input {
@ -134,6 +135,8 @@ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images
bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu
bind = $mod CTRL, l, exec, swaylock
bind = $mod, f, fullscreen
bind = $mod Ctrl, f, togglefloating
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy