Fix screenlocker
This commit is contained in:
parent
d8d1f022c0
commit
bada3caea1
2 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)'
|
timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)'
|
||||||
timeout 300 ~/.config/swaylock/lock.sh
|
timeout 300 '/usr/share/river/scripts/lock.sh'
|
||||||
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
|
timeout 600 'wlopm --off \*' resume 'wlopm --on \*'
|
||||||
before-sleep 'playerctl pause'
|
before-sleep 'playerctl pause'
|
||||||
before-sleep ~/.config/swaylock/lock.sh
|
before-sleep '/usr/share/river/scripts/lock.sh && sleep 2'
|
||||||
lock ~/.config/swaylock/lock.sh
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
USER_SCRIPT="$HOME/.config/swaylock/lock.sh"
|
USER_SCRIPT="$HOME/.config/swaylock/lock.sh"
|
||||||
GLOB_SCRIPT="/usr/share/sway/scripts/swaylock.sh"
|
GLOB_SCRIPT="/usr/share/river/scripts/swaylock.sh"
|
||||||
|
|
||||||
if [[ -x "$USER_SCRIPT" ]]; then
|
if [[ -x "$USER_SCRIPT" ]]; then
|
||||||
"$USER_SCRIPT"
|
"$USER_SCRIPT"
|
||||||
|
|
Loading…
Add table
Reference in a new issue