diff options
Diffstat (limited to '.config')
| -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 |
