diff options
| -rw-r--r-- | .Xresources | 41 | ||||
| -rwxr-xr-x | .config/herbstluftwm/autostart | 8 | ||||
| -rwxr-xr-x | .config/herbstluftwm/panel.sh | 18 | ||||
| -rw-r--r-- | Makefile | 9 |
4 files changed, 62 insertions, 14 deletions
diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..3bbf083 --- /dev/null +++ b/.Xresources | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | ! Font and Fontsize | ||
| 2 | *faceName: Droid Sans Mono | ||
| 3 | *faceSize: 11 | ||
| 4 | |||
| 5 | ! Colors | ||
| 6 | *background: #2d2d2d | ||
| 7 | *foreground: #f9f9f9 | ||
| 8 | |||
| 9 | ! Darks | ||
| 10 | *color0: #2d2d2d | ||
| 11 | *color8: #333333 | ||
| 12 | |||
| 13 | ! Reds | ||
| 14 | *color1: #690a03 | ||
| 15 | *color9: #d64937 | ||
| 16 | |||
| 17 | ! Greens | ||
| 18 | *color2: #13a43b | ||
| 19 | *color10: #6dfb2d | ||
| 20 | |||
| 21 | ! Yellows | ||
| 22 | *color3: #f5a711 | ||
| 23 | *color11: #ffdc00 | ||
| 24 | |||
| 25 | ! Blues | ||
| 26 | *color4: #0f6cc9 | ||
| 27 | *color12: #32abd8 | ||
| 28 | |||
| 29 | ! Magentas | ||
| 30 | *color5: #93116b | ||
| 31 | *color13: #c61f93 | ||
| 32 | |||
| 33 | ! Cyanes | ||
| 34 | *color6: #3cb691 | ||
| 35 | *color14: #53b4bd | ||
| 36 | |||
| 37 | !Whites | ||
| 38 | *color7: #d9d9d9 | ||
| 39 | *color15: #f9f9f9 | ||
| 40 | |||
| 41 | XTerm*selectToClipboard: true | ||
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 |
| @@ -2,10 +2,12 @@ NUMIX = .local/share/themes/numix-no-title | |||
| 2 | BASHRC = .bashrc | 2 | BASHRC = .bashrc |
| 3 | VIMRC = .vimrc | 3 | VIMRC = .vimrc |
| 4 | HERBSTLUFT = .config/herbstluftwm | 4 | HERBSTLUFT = .config/herbstluftwm |
| 5 | XRESOURCES = .Xresources | ||
| 6 | |||
| 5 | 7 | ||
| 6 | install: all | 8 | install: all |
| 7 | 9 | ||
| 8 | all: bash vim numix-no-title herbstluftwm | 10 | all: bash vim xresources numix-no-title herbstluftwm |
| 9 | 11 | ||
| 10 | numix-no-title: | 12 | numix-no-title: |
| 11 | #create wm theme dir if not exist | 13 | #create wm theme dir if not exist |
| @@ -35,9 +37,14 @@ vim: | |||
| 35 | #copy vimrc to home | 37 | #copy vimrc to home |
| 36 | cp -f $(VIMRC) ~ | 38 | cp -f $(VIMRC) ~ |
| 37 | 39 | ||
| 40 | xresources: | ||
| 41 | #copy Xresources to home | ||
| 42 | cp -f $(XRESOURCES) ~ | ||
| 43 | |||
| 38 | uninstall: | 44 | uninstall: |
| 39 | #remove all | 45 | #remove all |
| 40 | -rm -rf ~/$(WM-THEME-DIR) | 46 | -rm -rf ~/$(WM-THEME-DIR) |
| 41 | -rm -rf ~/$(HERBSTLUFT) | 47 | -rm -rf ~/$(HERBSTLUFT) |
| 42 | -rm -f ~/$(BASHRC) | 48 | -rm -f ~/$(BASHRC) |
| 43 | -rm -f ~/$(VIMRC) | 49 | -rm -f ~/$(VIMRC) |
| 50 | -rm -f ~/$(XRESOURCES) | ||
