diff options
Diffstat (limited to 'config/herbstluftwm/theme.sh')
| -rw-r--r-- | config/herbstluftwm/theme.sh | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/config/herbstluftwm/theme.sh b/config/herbstluftwm/theme.sh deleted file mode 100644 index 34e22a7..0000000 --- a/config/herbstluftwm/theme.sh +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | # Get color from ~/.Xresources | ||
| 2 | get_x_color() { | ||
| 3 | xresources=$(cat ~/.Xresources) | ||
| 4 | color=$(echo $xresources | sed "s/.*\*color$1: \(#[0-9A-Fa-f]*\).*/\1/") | ||
| 5 | echo $color | ||
| 6 | } | ||
| 7 | |||
| 8 | # Add alpha channel to a hexadecimal color | ||
| 9 | add_alpha_channel(){ | ||
| 10 | echo "$1" | \ | ||
| 11 | sed "s/.*#\([0-9a-fA-F]*\).*/#ff\1/" | ||
| 12 | } | ||
| 13 | |||
| 14 | # Wallpaper | ||
| 15 | wallpaper="$HOME/.config/herbstluftwm/poligons.png" | ||
| 16 | |||
| 17 | # Padding | ||
| 18 | window_p=20 | ||
| 19 | |||
| 20 | # Panel | ||
| 21 | panel_h=24 | ||
| 22 | font="-*-fixed-medium-*-*-*-14-*-*-*-*-*-*-*" | ||
| 23 | font_sec="-*-stlarch-medium-*-*-*-10-*-*-*-*-*-*-*" | ||
| 24 | |||
| 25 | # Colors | ||
| 26 | color_fg=$(get_x_color 15) | ||
| 27 | color_accent=$(get_x_color 5) | ||
| 28 | color_bg=$(get_x_color 0) | ||
| 29 | |||
| 30 | # Alpha Colors for use with bar | ||
| 31 | acolor_fg=$(add_alpha_channel $color_fg) | ||
| 32 | acolor_accent=$(add_alpha_channel $color_accent) | ||
| 33 | acolor_bg=$(add_alpha_channel $color_bg) | ||
