hlwm: simplify panel
This commit is contained in:
parent
82b8e95d7e
commit
83255497ac
2 changed files with 43 additions and 42 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# env
|
||||
# Written in 2019 by Lucas
|
||||
# Written in 2019-2020 by Lucas
|
||||
# CC0 1.0 Universal/Public domain - No rights reserved
|
||||
#
|
||||
# To the extent possible under law, the author(s) have dedicated all
|
||||
|
@ -166,16 +166,6 @@ hc unlock
|
|||
|
||||
hc detect_monitors
|
||||
|
||||
if [ -f ~/.config/herbstluftwm/herbstpanel.sh ]; then
|
||||
bar_height=$(($hlwm_font_height))
|
||||
for m in $(hc list_monitors | cut -d : -f 1); do
|
||||
hc monitor_rect "$m" | {
|
||||
read -r x y w h
|
||||
# `lemonbar -b` is relative from the bottom, so no need
|
||||
# to do arithmetic in here
|
||||
#y=$(($y + $h - $bar_height))
|
||||
printf "%s\t%u\t%u\t%u\t%u\n" \
|
||||
"$m" "$x" "$y" "$w" $bar_height
|
||||
}
|
||||
done | sh ~/.config/herbstluftwm/herbstpanel.sh &
|
||||
fi
|
||||
for m in $(hc list_monitors | cut -d : -f 1); do
|
||||
sh ~/.config/herbstluftwm/herbstpanel.sh "$m" &
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue