dustbowl: make swayidle a systemd service + run nixpkgs-fmt
This commit is contained in:
parent
989e4f9555
commit
9757bf7ff6
9 changed files with 41 additions and 31 deletions
14
sway/config
14
sway/config
|
|
@ -22,20 +22,6 @@ set $term env XCURSOR_THEME=Adwaita footclient
|
|||
# on the original workspace that the command was run on.
|
||||
# set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
# 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. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
### Start foot server
|
||||
|
||||
exec foot --server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue