diff options
| author | 2014-05-13 21:40:58 +0200 | |
|---|---|---|
| committer | 2014-05-13 21:40:58 +0200 | |
| commit | f228e2ad2aaac15ae522565661698decc84ccbca (patch) | |
| tree | 054a0d825f4adc3d2c08305ac5f6c379bca6238a /.config/herbstluftwm | |
| parent | ee6e6844167b7877c0d046cf4b61e6777ed3cf32 (diff) | |
| download | dotfiles-f228e2ad2aaac15ae522565661698decc84ccbca.tar.gz dotfiles-f228e2ad2aaac15ae522565661698decc84ccbca.tar.bz2 dotfiles-f228e2ad2aaac15ae522565661698decc84ccbca.zip | |
added Xresources and tweeked herbstluft configs
Diffstat (limited to '.config/herbstluftwm')
| -rwxr-xr-x | .config/herbstluftwm/autostart | 8 | ||||
| -rwxr-xr-x | .config/herbstluftwm/panel.sh | 18 |
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 | |||
| 32 | hc keybind $Mod-Shift-q quit | 32 | hc keybind $Mod-Shift-q quit |
| 33 | hc keybind $Mod-Shift-r reload | 33 | hc keybind $Mod-Shift-r reload |
| 34 | hc keybind $Mod-Shift-c close | 34 | hc keybind $Mod-Shift-c close |
| 35 | hc keybind $Mod-Return spawn xfce4-terminal | 35 | hc keybind $Mod-Return spawn xterm |
| 36 | hc keybind $Mod-grave spawn dmenu_run -h $PANEL_HEIGHT -p "Run:" -nb $DARK -nf $LIGHT -sb $ACCENT -sf $DARK | 36 | hc 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 |
| 173 | start_panel() { | 173 | start_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 | |||
| 200 | else | 199 | else |
| 201 | start_compton | 200 | start_compton |
| 202 | fi | 201 | fi |
| 202 | |||
| 203 | #Load .Xresources | ||
| 204 | xrdb -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 |
