Moved into new system
This commit is contained in:
parent
3577109db9
commit
15ca3c9160
24 changed files with 318 additions and 5 deletions
15
.scripts/wlsunset.sh
Executable file
15
.scripts/wlsunset.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
# Script to disable for an hour or immediately continue wlsunset. 'Toggle'
|
||||
|
||||
# Check if wlsunset is still running
|
||||
pid=$(pgrep wlsunset)
|
||||
|
||||
if [[ -z ${pid} ]] ; then
|
||||
# Start wlsunset right away.
|
||||
wlsunset -l 50 -L 4 -t 2500 &
|
||||
else
|
||||
# Currently stop wlsunset but restart in an hour.
|
||||
kill ${pid}
|
||||
notify-send 'Stopping sunset, restarting in an hour'
|
||||
at now +1 hours -f ~/.scripts/wlsunset.sh
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue