refactor: new system basics
This commit is contained in:
21
polybar/scripts/alternaDormir.sh
Executable file
21
polybar/scripts/alternaDormir.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Author by : Daniel Heras
|
||||
# Mail : dani.heras@hotmail.com
|
||||
|
||||
# Posible enmascarando targets de systemd, pero mejor con caffeine
|
||||
# Ejecutar con caffeine
|
||||
|
||||
if [ -f "/tmp/sleepStopped" ]; then
|
||||
touch /tmp/sleep
|
||||
rm /tmp/sleepStopped
|
||||
else
|
||||
touch /tmp/sleepStopped
|
||||
for (( ; ; )); do
|
||||
if [ -f "/tmp/sleep" ]; then
|
||||
rm /tmp/sleep
|
||||
exit 123
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user