fix: swayidle poopy

This commit is contained in:
2025-07-23 14:12:19 +03:00
parent e3f723ae00
commit bc7169488a
2 changed files with 6 additions and 5 deletions

View File

@@ -23,11 +23,11 @@ bindsym $mod+Shift+tab workspace prev_on_output
# Lockscreen configuration # Lockscreen configuration
set $screenlock 'swaylock -f -c 282828' set $screenlock 'swaylock -f -c 282828'
# Idle configuration # Idle configuration
exec swayidle -w \ # exec swayidle -w \
timeout 300 $screenlock \ # timeout 300 $screenlock \
timeout 600 'swaymsg "output * dpms off"' \ # timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ # resume 'swaymsg "output * dpms on"' \
before-sleep $screenlock # before-sleep $screenlock
bindsym --to-code { bindsym --to-code {
$mod+b splith $mod+b splith

View File

@@ -84,6 +84,7 @@ bindsym $mod+$alt+v exec --no-startup-id clipcat-menu
bindsym $mod+shift+s exec grimshot savecopy anything bindsym $mod+shift+s exec grimshot savecopy anything
# Yuh # Yuh
exec systemctl --user import-environment
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \ exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway