add hlwm color vars

This commit is contained in:
alex 2021-10-16 13:01:38 -04:00
parent 7e65c031ca
commit 51a0052864
4 changed files with 14 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.swp

View File

@ -21,6 +21,8 @@ font:
x: 0 x: 0
y: 5 y: 5
background_opacity: 0.5
colors: colors:
# Default colors # Default colors
primary: primary:

View File

@ -2,6 +2,8 @@
# this is a simple config for herbstluftwm # this is a simple config for herbstluftwm
. ./colors.sh
hc() { hc() {
herbstclient "$@" herbstclient "$@"
} }
@ -134,8 +136,8 @@ hc attr theme.title_font 'Dejavu Sans:pixelsize=12' # example using Xft
# hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*' # hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
hc attr theme.padding_top 2 # space below the title's baseline (i.e. text depth) hc attr theme.padding_top 2 # space below the title's baseline (i.e. text depth)
# hc attr theme.active.color '#9fbc00' # hc attr theme.active.color '#9fbc00'
hc attr theme.active.color '#a8f0b4' hc attr theme.active.color $HLWM_Color_Active
hc attr theme.normal.color '#6a73a3' hc attr theme.normal.color $HLWM_Color_Normal
hc attr theme.urgent.color orange hc attr theme.urgent.color orange
hc attr theme.inner_width 1 hc attr theme.inner_width 1
hc attr theme.inner_color black hc attr theme.inner_color black

7
herbstluftwm/colors.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
export HLWM_Color_Active='#5ab548'
export HLWM_Color_Normal='#6a73a3'
echo $HLWM_Color_Active
echo $HLWM_Color_Normal