From 51a0052864b1956934c405a79052010d576f9f62 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 16 Oct 2021 13:01:38 -0400 Subject: [PATCH] add hlwm color vars --- .gitignore | 1 + alacritty/alacritty.yml | 2 ++ herbstluftwm/autostart | 6 ++++-- herbstluftwm/colors.sh | 7 +++++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100755 herbstluftwm/colors.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index d1f637d..930e40e 100644 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -21,6 +21,8 @@ font: x: 0 y: 5 +background_opacity: 0.5 + colors: # Default colors primary: diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 7fa12f8..a6fcad1 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -2,6 +2,8 @@ # this is a simple config for herbstluftwm +. ./colors.sh + hc() { 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.padding_top 2 # space below the title's baseline (i.e. text depth) # hc attr theme.active.color '#9fbc00' -hc attr theme.active.color '#a8f0b4' -hc attr theme.normal.color '#6a73a3' +hc attr theme.active.color $HLWM_Color_Active +hc attr theme.normal.color $HLWM_Color_Normal hc attr theme.urgent.color orange hc attr theme.inner_width 1 hc attr theme.inner_color black diff --git a/herbstluftwm/colors.sh b/herbstluftwm/colors.sh new file mode 100755 index 0000000..c2534be --- /dev/null +++ b/herbstluftwm/colors.sh @@ -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