aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-05-13 21:40:58 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2014-05-13 21:40:58 +0200
commitf228e2ad2aaac15ae522565661698decc84ccbca (patch)
tree054a0d825f4adc3d2c08305ac5f6c379bca6238a
parentee6e6844167b7877c0d046cf4b61e6777ed3cf32 (diff)
downloaddotfiles-f228e2ad2aaac15ae522565661698decc84ccbca.tar.gz
dotfiles-f228e2ad2aaac15ae522565661698decc84ccbca.tar.bz2
dotfiles-f228e2ad2aaac15ae522565661698decc84ccbca.zip
added Xresources and tweeked herbstluft configs
-rw-r--r--.Xresources41
-rwxr-xr-x.config/herbstluftwm/autostart8
-rwxr-xr-x.config/herbstluftwm/panel.sh18
-rw-r--r--Makefile9
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
41XTerm*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
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
diff --git a/Makefile b/Makefile
index e233395..0e0dd70 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,12 @@ NUMIX = .local/share/themes/numix-no-title
2BASHRC = .bashrc 2BASHRC = .bashrc
3VIMRC = .vimrc 3VIMRC = .vimrc
4HERBSTLUFT = .config/herbstluftwm 4HERBSTLUFT = .config/herbstluftwm
5XRESOURCES = .Xresources
6
5 7
6install: all 8install: all
7 9
8all: bash vim numix-no-title herbstluftwm 10all: bash vim xresources numix-no-title herbstluftwm
9 11
10numix-no-title: 12numix-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
40xresources:
41 #copy Xresources to home
42 cp -f $(XRESOURCES) ~
43
38uninstall: 44uninstall:
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)