aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm/.config/herbstluftwm/themes/purpur
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm/.config/herbstluftwm/themes/purpur')
-rw-r--r--herbstluftwm/.config/herbstluftwm/themes/purpur34
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
4get_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
11add_alpha_channel(){
12 echo "$1" | \
13 sed "s/.*#\([0-9a-fA-F]*\).*/#ff\1/"
14}
15
16# Wallpaper
17wallpaper="$HOME/.config/herbstluftwm/poligons.png"
18
19# Padding
20window_p=20
21
22# Panel
23panel_h=25
24font="DejaVu Sans Mono-10"
25
26# Colors
27color_fg=$(get_x_color 15)
28color_accent=$(get_x_color 5)
29color_bg=$(get_x_color 0)
30
31# Alpha Colors for use with bar
32acolor_fg=$(add_alpha_channel $color_fg)
33acolor_accent=$(add_alpha_channel $color_accent)
34acolor_bg=$(add_alpha_channel $color_bg)