Implemented better idle script
This commit is contained in:
parent
23f6a24a95
commit
1e94e7cde5
2 changed files with 21 additions and 13 deletions
17
scripts/idle.sh
Executable file
17
scripts/idle.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
# Configuratoin of swayidle
|
||||
# Just run the script
|
||||
|
||||
pkill swayidle
|
||||
|
||||
swayidle -w \
|
||||
timeout 300 \
|
||||
'brightnessctl -s set 15%' \
|
||||
resume 'brightnessctl -r' \
|
||||
timeout 600 \
|
||||
'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
timeout 1200 \
|
||||
'systemctl suspend' \
|
||||
before-sleep 'swaylock -f --screenshots --clock --indicator --effect-blur 5x5'
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue