aboutsummaryrefslogtreecommitdiff
path: root/Panel/lemonbar/batterymon
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2019-04-03 00:56:11 +0100
committerVasil Zlatanov <v@skozl.com>2019-04-03 00:56:11 +0100
commit2df2d13c153dbb69098053fa6aa3a5aaa7fed331 (patch)
tree87f65095a52e9b47f4b71e4768ef5a0bf03fd94e /Panel/lemonbar/batterymon
parentb1dbf62ab9dcad03138a52a8596dccdf9286d958 (diff)
parent8ced63b35c8b011ff29a79856165cc748d430a11 (diff)
downloaddotfiles-2df2d13c153dbb69098053fa6aa3a5aaa7fed331.tar.gz
dotfiles-2df2d13c153dbb69098053fa6aa3a5aaa7fed331.tar.bz2
dotfiles-2df2d13c153dbb69098053fa6aa3a5aaa7fed331.zip
Resolve conflicts
Diffstat (limited to 'Panel/lemonbar/batterymon')
-rwxr-xr-xPanel/lemonbar/batterymon19
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