mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-11 02:21:14 +10:00
Adding xmobar support for herbstluftwm.
This commit is contained in:
Executable
+7
@@ -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..."
|
||||||
Executable
+22
@@ -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
|
||||||
Reference in New Issue
Block a user