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