diff options
| author | 2014-05-15 17:56:49 +0200 | |
|---|---|---|
| committer | 2014-05-15 17:56:49 +0200 | |
| commit | b5cd01ab7232b660dcf272b4c22c3879a1d84d87 (patch) | |
| tree | b3b8de0c0352ef221e96941f22855fb47b5f6f45 | |
| parent | d577fdd8c5fbab4682c702eed7ecba95ab805487 (diff) | |
| download | dotfiles-b5cd01ab7232b660dcf272b4c22c3879a1d84d87.tar.gz dotfiles-b5cd01ab7232b660dcf272b4c22c3879a1d84d87.tar.bz2 dotfiles-b5cd01ab7232b660dcf272b4c22c3879a1d84d87.zip | |
HLWM will fetch colors from .Xresources
| -rwxr-xr-x | .config/herbstluftwm/autostart | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index cb59263..0fb9ea7 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart | |||
| @@ -2,15 +2,27 @@ | |||
| 2 | 2 | ||
| 3 | # this is a simple config for herbstluftwm | 3 | # this is a simple config for herbstluftwm |
| 4 | 4 | ||
| 5 | #get colors from .Xresources | ||
| 6 | get_xcolor(){ | ||
| 7 | xresources=$(\ | ||
| 8 | cat ~/.Xresources\ | ||
| 9 | ) | ||
| 10 | color=$(\ | ||
| 11 | echo $xresources | \ | ||
| 12 | sed "s/.*\*color$1: \(#[0-9A-Fa-f]*\).*/\1/"\ | ||
| 13 | ) | ||
| 14 | echo $color | ||
| 15 | } | ||
| 16 | |||
| 5 | #Wallpaper | 17 | #Wallpaper |
| 6 | WALLPAPER=/home/tom/Pictures/ThDLxEW.jpg | 18 | WALLPAPER=/home/tom/Pictures/ThDLxEW.jpg |
| 7 | 19 | ||
| 8 | #Numix color palette | 20 | #Numix color palette |
| 9 | LIGHT='#f9f9f9' | 21 | LIGHT=$(get_xcolor 15) |
| 10 | LLIGHT='#dedede' | 22 | LLIGHT=$(get_xcolor 7) |
| 11 | ACCENT='#d64937' | 23 | ACCENT=$(get_xcolor 9) |
| 12 | LDARK='#333333' | 24 | LDARK=$(get_xcolor 8) |
| 13 | DARK='#2d2d2d' | 25 | DARK=$(get_xcolor 0) |
| 14 | 26 | ||
| 15 | #Panel | 27 | #Panel |
| 16 | PANEL_HEIGHT=24 | 28 | PANEL_HEIGHT=24 |
