aboutsummaryrefslogtreecommitdiffstats
path: root/config/herbstluftwm/theme.sh
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-03-30 10:25:12 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-03-30 10:25:12 +0200
commit8eee1c45bef74aa6094f463f9888ac653958b3dc (patch)
tree0e2a066fd4da4afcf08f0bef348511b5c9ac48f7 /config/herbstluftwm/theme.sh
parentc7ebce541a9914d4e5a3b52e838e2ac66dd139a0 (diff)
downloaddotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.tar.gz
dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.tar.bz2
dotfiles-8eee1c45bef74aa6094f463f9888ac653958b3dc.zip
Moving back to stow for management
reasons: dotfiles.sh misbehaving on freebsd
Diffstat (limited to 'config/herbstluftwm/theme.sh')
-rw-r--r--config/herbstluftwm/theme.sh33
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
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/.config/herbstluftwm/poligons.png"
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 5)
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)