From 5b132bf1244a008ad3ce67688030a7678831f77d Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Fri, 23 Oct 2015 03:14:36 -0300 Subject: Initial commit --- herbstluftwm/restartpanels.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 herbstluftwm/restartpanels.sh (limited to 'herbstluftwm/restartpanels.sh') diff --git a/herbstluftwm/restartpanels.sh b/herbstluftwm/restartpanels.sh new file mode 100755 index 0000000..9d9110c --- /dev/null +++ b/herbstluftwm/restartpanels.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +installdir=/ + +XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +defaultpanel="$XDG_CONFIG_HOME/herbstluftwm/panel.sh" + +[ -x "$defaultpanel" ] || defaultpanel="$installdir/etc/xdg/herbstluftwm/panel.sh" + +panelcmd="${1:-$defaultpanel}" + +herbstclient emit_hook quit_panel + +for i in $(herbstclient list_monitors | cut -d':' -f1) ; do + "$panelcmd" $i & +done -- cgit v1.2.3-70-g09d2