summaryrefslogtreecommitdiff
path: root/xmobars.sh
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-05-02 00:44:35 +0100
committerjao <jao@gnu.org>2022-05-02 00:44:52 +0100
commit5b619f106191d3fedfc3ba6bd3ee63eb715b3b83 (patch)
tree4ad34d39ef231276b6dfaf372f7e8ef0dfb2899d /xmobars.sh
parent7bce289a1919943d42a2521736d14f4d197fab65 (diff)
downloadxmonad-config-5b619f106191d3fedfc3ba6bd3ee63eb715b3b83.tar.gz
xmonad-config-5b619f106191d3fedfc3ba6bd3ee63eb715b3b83.tar.bz2
some simplifications
Diffstat (limited to 'xmobars.sh')
-rwxr-xr-xxmobars.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmobars.sh b/xmobars.sh
index e119eda..280d597 100755
--- a/xmobars.sh
+++ b/xmobars.sh
@@ -2,13 +2,19 @@
killall trayer
+if [[ $JAO_COLOR_SCHEME == dark ]]; then
+ alpha=255
+else
+ alpha=60
+fi
+
trayer --margin 2 --distancefrom left \
--distance 1 --edge top \
--align left --SetDockType true --SetPartialStrut false \
--widthtype request \
--height 21 --heighttype pixel \
--transparent true \
- --alpha 60 --padding 1 &
+ --alpha $alpha --padding 1 &
killall xmobar-exwm
xmobar-exwm $* &