aboutsummaryrefslogtreecommitdiff
path: root/Panel
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2017-04-19 21:39:12 +0200
committerVasil Zlatanov <v@skozl.com>2017-04-19 21:39:12 +0200
commit38535167b49fe25764471554dcedefde5cc94b83 (patch)
tree85994b04bc53a4fdab9af3593ce7a2e232178aef /Panel
parent599356ac95e5188bc16470a3d12b64af8811f9f8 (diff)
downloaddotfiles-38535167b49fe25764471554dcedefde5cc94b83.tar.gz
dotfiles-38535167b49fe25764471554dcedefde5cc94b83.tar.bz2
dotfiles-38535167b49fe25764471554dcedefde5cc94b83.zip
massive new latpop updates
Diffstat (limited to 'Panel')
-rwxr-xr-xPanel/lemonbar/batterymon19
-rwxr-xr-xPanel/lemonbar/music2
-rwxr-xr-xPanel/lemonbar/panel_bar2
-rwxr-xr-xPanel/lemonbar/profile2
-rwxr-xr-xPanel/lemonbar/windows2
5 files changed, 13 insertions, 14 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
diff --git a/Panel/lemonbar/music b/Panel/lemonbar/music
index d9e1d45..0ee2611 100755
--- a/Panel/lemonbar/music
+++ b/Panel/lemonbar/music
@@ -15,6 +15,6 @@ echo "K`mpc volume -h 127.0.0.1 | perl -pe 's/^volume://' | perl -pe 's/%$//' |
mpc -h 127.0.0.1 idle > /dev/null
if [ $? -ne 0 ];then
echo 'mpd not alive';
-sleep 30;
+sleep 300;
fi
done
diff --git a/Panel/lemonbar/panel_bar b/Panel/lemonbar/panel_bar
index 5d36a88..64eed1d 100755
--- a/Panel/lemonbar/panel_bar
+++ b/Panel/lemonbar/panel_bar
@@ -1,7 +1,5 @@
#! /bin/sh
-num_mon=$(bspc query -M | wc -l)
-
. ./panel_colors
. ./icons
while read -r line ; do
diff --git a/Panel/lemonbar/profile b/Panel/lemonbar/profile
index 5c34dd7..fe9d7b1 100755
--- a/Panel/lemonbar/profile
+++ b/Panel/lemonbar/profile
@@ -1,6 +1,6 @@
#!/bin/sh
PANEL_FIFO=/tmp/panel-fifo
-PANEL_HEIGHT=48
+PANEL_HEIGHT=40
FONT_FONT="DejaVuSans-10"
ICON_FONT="FontAwesome-10"
diff --git a/Panel/lemonbar/windows b/Panel/lemonbar/windows
index 108eeac..4af5a5c 100755
--- a/Panel/lemonbar/windows
+++ b/Panel/lemonbar/windows
@@ -1,3 +1,3 @@
#!/bin/sh
echo 'Wclear' > /tmp/panel-fifo
-ratpoison -c 'windows %s%n %t' | while read line;do echo "${line}" | cut -c -25 > /tmp/panel-fifo && sleep 0.004;done
+ratpoison -c 'windows %s%n %t' | cut -c -25 > /tmp/panel-fifo