aboutsummaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/herbstluftwm/autostart8
-rwxr-xr-x.config/herbstluftwm/panel.sh18
2 files changed, 13 insertions, 13 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index 51dcd9d..e9cf3ee 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -32,7 +32,7 @@ Mod=Mod4 # Use the super key as the main modifier
32hc keybind $Mod-Shift-q quit 32hc keybind $Mod-Shift-q quit
33hc keybind $Mod-Shift-r reload 33hc keybind $Mod-Shift-r reload
34hc keybind $Mod-Shift-c close 34hc keybind $Mod-Shift-c close
35hc keybind $Mod-Return spawn xfce4-terminal 35hc keybind $Mod-Return spawn xterm
36hc keybind $Mod-grave spawn dmenu_run -h $PANEL_HEIGHT -p "Run:" -nb $DARK -nf $LIGHT -sb $ACCENT -sf $DARK 36hc keybind $Mod-grave spawn dmenu_run -h $PANEL_HEIGHT -p "Run:" -nb $DARK -nf $LIGHT -sb $ACCENT -sf $DARK
37 37
38# basic movement 38# basic movement
@@ -172,8 +172,7 @@ herbstclient set tree_style '╾│ ├└╼─┐'
172#Start panel in all monitors 172#Start panel in all monitors
173start_panel() { 173start_panel() {
174 for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do 174 for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do
175 "$1" $monitor $PANEL_HEIGHT $LIGHT $LLIGHT $ACCENT $LDARK $DARK 175 "$1" $monitor $PANEL_HEIGHT $LIGHT $LLIGHT $ACCENT $LDARK $DARK $2&
176 $2&
177 done 176 done
178} 177}
179 178
@@ -200,3 +199,6 @@ then
200else 199else
201 start_compton 200 start_compton
202fi 201fi
202
203#Load .Xresources
204xrdb -load ~/.Xresources
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index ec3b546..3448e62 100755
--- a/.config/herbstluftwm/panel.sh
+++ b/.config/herbstluftwm/panel.sh
@@ -77,16 +77,14 @@ hc pad $monitor $panel_height
77 77
78 while true ; do 78 while true ; do
79 # Network 79 # Network
80 IFS=' ' read -a wlaninfo <<< $(iwconfig wlp3s0) 80 iwconfig=$(iwconfig wlp3s0)
81 for item in ${wlaninfo[@]} ; do 81 ssid_regex=".*ESSID:\"\(.*\)\".*"
82 case $item in 82 quality_regex=".*Link Quality=\([0-9]*\)\/\([0-9]*\).*"
83 ESSID*) 83 ssid=$(echo $iwconfig | sed "s/$ssid_regex/\1/")
84 ssid=$(echo $item | cut -d '"' -f2) ;; 84 IFS=',' read -a quality_info <<< $(echo $iwconfig | sed "s/$quality_regex/\1,\2/")
85 Quality*) 85 cur_qual=${quality_info[0]}
86 quality=$(echo $item | cut -d '=' -f2) ;; 86 max_qual=${quality_info[1]}
87 esac 87 quality_p=$(echo "$cur_qual*100/$max_qual" | bc)
88 done
89 quality_p=$(echo "$(echo $quality | cut -d '/' -f1) * 100 / $(echo $quality | cut -d '/' -f2)" | bc)
90 echo -e "wireless\t^fg($normal_txt)Wlan: $quality_p% ^fg($inactive_txt)($ssid)" 88 echo -e "wireless\t^fg($normal_txt)Wlan: $quality_p% ^fg($inactive_txt)($ssid)"
91 89
92 # Battery 90 # Battery