#!/bin/bash # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 tw=80 expandtab : # Copyright (C) 2012 Florian Bruhin # This file is part of panel2 # # panel2 is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # panel2 is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with panel2 If not, see . [[ $0 == /* ]] && script="$0" || script="${PWD}/${0#./}" panelfolder=${script%/*} trap 'herbstclient emit_hook quit_panel' TERM herbstclient pad 0 24 cat | dzen2 -h 1 -x 24 -bg '#afdf87' & pids+=($!) "$panelfolder/tray.sh" & pids+=($!) "$panelfolder/tags.sh" & pids+=($!) conky -c "$panelfolder/conkyrc" & pids+=($!) herbstclient --wait '^(quit_panel|reload).*' kill -TERM "${pids[@]}" >/dev/null 2>&1 exit 0