Skip to content

Commit

Permalink
MAINT: Switch over to using sway-session target
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Nov 10, 2024
1 parent fc389d0 commit 40224a4
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions dot_config/sway/config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,8 @@ smart_gaps on
gaps outer 0
gaps inner 5

### Idle configuration
#
# Example configuration:
#
# Lock after 300 seconds, turn off after 150 seconds, then after 7 minutes of
# inactivity use /etc/systemd/logind.conf to execute
exec_always swayidle -w \
timeout 300 'swaylock -f --clock --image ~/Pictures/Walls/lockscreen.png --daemonize' \
timeout 450 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'playerctl pause' \
before-sleep 'swaylock -f --clock --image ~/Pictures/Walls/lockscreen.png --daemonize' \
idlehint 780
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. Also pauses media before locking.
# It will also lock your screen before your computer goes to sleep.
# Daemons
exec "systemctl --user import-environment; systemctl --user start sway-session.target"

### Input configuration
#
Expand Down

0 comments on commit 40224a4

Please sign in to comment.