How come all of the configs of bar have a config.h, but when I look in https://github.com/lemonboy/bar it does not use a config.h?
It used to, it was changed some time ago.
]]>$ echo "abc" | bar -p
if bar crashes, then something in its config is wrong.
iirc, even if the font is missing, bar will fallback to fixed.
if that works then probably something in your "startwm" script is wrong
according to the result I guess it's better to reply in
either the bar topic, or the monsterwm topic
the original bar config contain the terminus font right method.
Yes I know, I have tryed to recompile it with the original config.h, but it still not working.
]]>I have little Problem here:
I want to set up a `bar`. My regular font is ohsnap, but I want a bar with terminus-font. So I defined terminus in bars config.h and here is the Point. Bar says, that terminus is illigal and X crashes. I have no Idea why this happened.
Can anybody help me, please?
the original bar config contain the terminus font right method.
]]>I want to set up a `bar`. My regular font is ohsnap, but I want a bar with terminus-font. So I defined terminus in bars config.h and here is the Point. Bar says, that terminus is illigal and X crashes. I have no Idea why this happened.
Can anybody help me, please?
Can anyone give me example how to get that colored underline under title, e.g. that yellow underline under www in above screenshot?
Thanks.
This is how I get the titles underlined in my bar. Hope it helps.
# desktop status
for desk; do
d="${desk%%:*}" desk="${desk#*:}" # desktop id
w="${desk%%:*}" desk="${desk#*:}" # window count
l="${desk%%:*}" desk="${desk#*:}" # layout mode
c="${desk%%:*}" desk="${desk#*:}" # is current desktop
u="$desk" # has urgent hint
# desktop id
case "$d" in
0) d="null" ;; 1) d="web" ;;
2) d="dev" ;; 3) d="misc" ;;
*) d=""
esac
# current desktop on active monitor
if [ $c -ne 0 ]
then bg="\b2" un="\u2" fg="\f1"
case "$l" in
0) s="T" ;; 1) s="M" ;; 2) s="B" ;;
3) s="G" ;; 4) s="F" ;;
esac && s="\u0\u0$s\br\ur"
fi
# This underlines desktops with open windows
[ $w -ne 0 ] && un="\u1"
# or urgent hints
[ $u -ne 0 ] && un="\u4"
mr="$mr$bg$fg$un $d \ur\br\fr"
unset bg fg un
done
#!/usr/bin/env bash
wm=monsterwm
ff="/tmp/$RANDOM.monsterwm.fifo"
tags=('www' 'dev' 'irc' 'media')
layouts=('[T]' '[M]' '[B]' '[G]' '[F]')
[[ -p $ff ]] || mkfifo -m 600 "$ff"
function statusbar {
function clock() {
time="$(date "+%R")"
echo $time
}
function ssid() {
AP=$(iwconfig wlp2s0 | grep 'ESSID:' | awk '{print $4}' | sed 's/ESSID://g' | sed 's/"//g')
echo $AP
}
function mem(){
mem="$(awk '/^-/ {print $3}' <(free -m))"
echo $mem
}
echo "\c $(clock) \r\f6\Mem:\fr\ $(mem) MB \f7\*\fr\ \f6\WiFi:\fr\ $(ssid) "
}
while read -t 1 -r wmout || true; do
if [[ $wmout =~ ^(([[:digit:]]+:)+[[:digit:]]+ ?)+$ ]]; then
read -ra desktops <<< "$wmout"
tmp=
for desktop in "${desktops[@]}"; do
IFS=':' read -r d w m c u <<< "$desktop"
# Tags labels
label=${tags[$d]}
# Current desktop color and enclosing char (yes/no)
((c)) && fg="4" bg="2" lc="\u4 " rc=" \ur" && layout=${layouts[$m]} || fg="1" bg="0" lc=" " rc=" "
# Has windows ?
((w)) && ((! c)) && fg="6" lc="\u6 " rc=" \ur"
# Urgent windows ?
((u)) && fg="9" bg="3" lc="\u4 " rc=" \ur"
tmp+="\f$fg\b$bg$lc$label$rc\fr\br"
done
# Merge the clients indications and the tile mode
tmp+=" $layout"
fi
echo "$tmp $(statusbar)"
done < "$ff" | bar &
#while :; do "$wm" || break; done | tee -a "$ff"
$wm > "$ff"
rm $ff
Can anyone give me example how to get that colored underline under title
Take a look at Bar
But I'am intressted too, 'cause I have tryed to create a Bar, but it still not work, so I swichted back to dzen2.
]]>