mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-14 20:58:34 +10:00
Adding xmobar support for herbstluftwm.
This commit is contained in:
7
.config/herbstluftwm/xmobar
Executable file
7
.config/herbstluftwm/xmobar
Executable 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..."
|
||||
22
.config/herbstluftwm/xmobar-tags
Executable file
22
.config/herbstluftwm/xmobar-tags
Executable 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
|
||||
Reference in New Issue
Block a user