aboutsummaryrefslogtreecommitdiffstats
path: root/config/herbstluftwm/theme.sh
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-02-22 17:15:39 +0100
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-02-22 17:15:39 +0100
commitd0ecb2a9d770b1987e3be7cdc549d46880b89c5e (patch)
treed493b4afd8268adb3e1f374cd73e5db662f260d6 /config/herbstluftwm/theme.sh
parentb86e22c339276441f344d61ad104a7cebd3b5858 (diff)
downloaddotfiles-d0ecb2a9d770b1987e3be7cdc549d46880b89c5e.tar.gz
dotfiles-d0ecb2a9d770b1987e3be7cdc549d46880b89c5e.tar.bz2
dotfiles-d0ecb2a9d770b1987e3be7cdc549d46880b89c5e.zip
Moved from stow to dotfiles for dotfile management
Diffstat (limited to 'config/herbstluftwm/theme.sh')
-rw-r--r--config/herbstluftwm/theme.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/config/herbstluftwm/theme.sh b/config/herbstluftwm/theme.sh
new file mode 100644
index 0000000..c40f94a
--- /dev/null
+++ b/config/herbstluftwm/theme.sh
@@ -0,0 +1,33 @@
1# Get color from ~/.Xresources
2get_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
9add_alpha_channel(){
10 echo "$1" | \
11 sed "s/.*#\([0-9a-fA-F]*\).*/#ff\1/"
12}
13
14# Wallpaper
15wallpaper="/home/tom/Pictures/Wallpapers/snake.jpg"
16
17# Padding
18window_p=20
19
20# Panel
21panel_h=24
22font="-*-fixed-medium-*-*-*-14-*-*-*-*-*-*-*"
23font_sec="-*-stlarch-medium-*-*-*-10-*-*-*-*-*-*-*"
24
25# Colors
26color_fg=$(get_x_color 15)
27color_accent=$(get_x_color 10)
28color_bg=$(get_x_color 0)
29
30# Alpha Colors for use with bar
31acolor_fg=$(add_alpha_channel $color_fg)
32acolor_accent=$(add_alpha_channel $color_accent)
33acolor_bg=$(add_alpha_channel $color_bg)