Adding xmobar support for herbstluftwm.

This commit is contained in:
Derek Taylor
2019-03-18 10:57:14 -05:00
parent ec78aa9745
commit ca8a327a15
2 changed files with 29 additions and 0 deletions

7
.config/herbstluftwm/xmobar Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
$HOME/.config/herbstluftwm/xmobar-tags | xmobar -x 0 -B "#292d3e" -F "#ffffff" ~/.config/xmobar/xmobarrc2 &
$HOME/.config/herbstluftwm/xmobar-tags | xmobar -x 1 -B "#292d3e" -F "#ffffff" ~/.config/xmobar/xmobarrc1 &
$HOME/.config/herbstluftwm/xmobar-tags | xmobar -x 2 -B "#292d3e" -F "#ffffff" ~/.config/xmobar/xmobarrc0 &
echo "Bars launched..."

View File

@@ -0,0 +1,22 @@
#!/bin/bash
## HLWM Xmobar Tag Status ######
# Version 0.1 by Scott Garrett #
# Wintervenom [(at)] gmail.com #
################################
hc () {
herbstclient "$@"
}
tags () {
printf '[%s] ' $(hc tag_status)
echo
}
set -f
IFS=$'\t'
tags
hc -i tag_changed |
while read hook tag mon; do
tags
done