diff options
| author | 2015-08-31 21:33:48 +0200 | |
|---|---|---|
| committer | 2015-08-31 21:33:48 +0200 | |
| commit | 453b0acde1e8c4c7a1786ed5740d05f0330b5176 (patch) | |
| tree | bb86c4a475005fb4c69d084c7c269a3428017189 /herbstluftwm/.config | |
| parent | 8560ce29a58ce21e27f8688c7f7dbf79013afd3e (diff) | |
| download | dotfiles-453b0acde1e8c4c7a1786ed5740d05f0330b5176.tar.gz dotfiles-453b0acde1e8c4c7a1786ed5740d05f0330b5176.tar.bz2 dotfiles-453b0acde1e8c4c7a1786ed5740d05f0330b5176.zip | |
Fixed duplicate panel
Diffstat (limited to 'herbstluftwm/.config')
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/populate_panel.sh | 2 | ||||
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/start_panel.sh | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ | |||
| 3 | source "$HLWM_CONF_DIR/themes/current" | 3 | source "$HLWM_CONF_DIR/themes/current" |
| 4 | source "$HLWM_CONF_DIR/panel_indicators.sh" | 4 | source "$HLWM_CONF_DIR/panel_indicators.sh" |
| 5 | 5 | ||
| 6 | monitor=$1 | ||
| 7 | |||
| 6 | if awk -Wv 2>/dev/null | head -1 | grep -q '^mawk'; then | 8 | if awk -Wv 2>/dev/null | head -1 | grep -q '^mawk'; then |
| 7 | # mawk needs "-W interactive" to line-buffer stdout correctly | 9 | # mawk needs "-W interactive" to line-buffer stdout correctly |
| 8 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593504 | 10 | # 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) | |||
| 27 | hc pad $monitor $(echo "$panel_h + $window_p" | bc) | 27 | hc pad $monitor $(echo "$panel_h + $window_p" | bc) |
| 28 | 28 | ||
| 29 | # Start the panel | 29 | # Start the panel |
| 30 | $HLWM_CONF_DIR/populate_panel.sh | | 30 | $HLWM_CONF_DIR/populate_panel.sh $monitor | |
| 31 | lemonbar -g ${panel_width}x${panel_h}+${x}+${y} -f "$font" -f "$icon_font" -u2 -B$acolor_bg -F$acolor_fg | | 31 | lemonbar -g ${panel_width}x${panel_h}+${x}+${y} -f "$font" -f "$icon_font" -u2 -B$acolor_bg -F$acolor_fg | |
| 32 | $HLWM_CONF_DIR/panel_handler.sh | 32 | $HLWM_CONF_DIR/panel_handler.sh |
| 33 | 33 | ||
