diff options
author | Vasil Zlatanov <v@skozl.com> | 2019-04-03 00:56:11 +0100 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2019-04-03 00:56:11 +0100 |
commit | 2df2d13c153dbb69098053fa6aa3a5aaa7fed331 (patch) | |
tree | 87f65095a52e9b47f4b71e4768ef5a0bf03fd94e /Panel/lemonbar/batterymon | |
parent | b1dbf62ab9dcad03138a52a8596dccdf9286d958 (diff) | |
parent | 8ced63b35c8b011ff29a79856165cc748d430a11 (diff) | |
download | dotfiles-2df2d13c153dbb69098053fa6aa3a5aaa7fed331.tar.gz dotfiles-2df2d13c153dbb69098053fa6aa3a5aaa7fed331.tar.bz2 dotfiles-2df2d13c153dbb69098053fa6aa3a5aaa7fed331.zip |
Resolve conflicts
Diffstat (limited to 'Panel/lemonbar/batterymon')
-rwxr-xr-x | Panel/lemonbar/batterymon | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Panel/lemonbar/batterymon b/Panel/lemonbar/batterymon index 27ea7a6..9d8c74d 100755 --- a/Panel/lemonbar/batterymon +++ b/Panel/lemonbar/batterymon @@ -1,13 +1,14 @@ #!/bin/sh while true;do -if [ `battery -f '%i'` -lt 4 ] && ! [ -z ~/.dontshut ]; then -touch ~/.dontshut -zenity --question --title "Battery" --text "Battery if pretty fucking low, go to sleep?" -if [ $? -ne 1 ];then -pm-suspend -fi -else -rm ~/.dontshut -fi + if [ `battery -f '%i'` -lt 4 ] && ! [ -z ~/.dontshut ]; then + touch ~/.dontshut + zenity --question --title "Battery" --text "Battery if pretty fucking low, go to sleep?" + if [ $? -ne 1 ];then + pm-suspend + fi + else + if [ -z ~/.dontshut ] + rm ~/.dontshut + fi sleep 180; done |