From 453b0acde1e8c4c7a1786ed5740d05f0330b5176 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 31 Aug 2015 21:33:48 +0200 Subject: Fixed duplicate panel --- herbstluftwm/.config/herbstluftwm/populate_panel.sh | 2 ++ herbstluftwm/.config/herbstluftwm/start_panel.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'herbstluftwm') diff --git a/herbstluftwm/.config/herbstluftwm/populate_panel.sh b/herbstluftwm/.config/herbstluftwm/populate_panel.sh index f7ada8a..7afa0c3 100755 --- a/herbstluftwm/.config/herbstluftwm/populate_panel.sh +++ b/herbstluftwm/.config/herbstluftwm/populate_panel.sh @@ -3,6 +3,8 @@ source "$HLWM_CONF_DIR/themes/current" source "$HLWM_CONF_DIR/panel_indicators.sh" +monitor=$1 + if awk -Wv 2>/dev/null | head -1 | grep -q '^mawk'; then # mawk needs "-W interactive" to line-buffer stdout correctly # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593504 diff --git a/herbstluftwm/.config/herbstluftwm/start_panel.sh b/herbstluftwm/.config/herbstluftwm/start_panel.sh index 9f637da..e573a53 100755 --- a/herbstluftwm/.config/herbstluftwm/start_panel.sh +++ b/herbstluftwm/.config/herbstluftwm/start_panel.sh @@ -27,7 +27,7 @@ panel_width=$(echo "${geometry[2]} - (2 * $window_p)" | bc) hc pad $monitor $(echo "$panel_h + $window_p" | bc) # Start the panel -$HLWM_CONF_DIR/populate_panel.sh | +$HLWM_CONF_DIR/populate_panel.sh $monitor | lemonbar -g ${panel_width}x${panel_h}+${x}+${y} -f "$font" -f "$icon_font" -u2 -B$acolor_bg -F$acolor_fg | $HLWM_CONF_DIR/panel_handler.sh -- cgit v1.2.3