From d1b29f783953779d0b2e245aa6e122fc84dd430b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=B6hring?= Date: Tue, 10 Feb 2015 04:03:48 +0100 Subject: [PATCH] herbstluftwm config cleanup --- herbstluftwm/panel.sh | 29 ----------------------------- herbstluftwm/tag_status.sh | 1 + 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/herbstluftwm/panel.sh b/herbstluftwm/panel.sh index 63cd13f..3b11693 100755 --- a/herbstluftwm/panel.sh +++ b/herbstluftwm/panel.sh @@ -1,35 +1,6 @@ #!/bin/sh hc() { "${herbstclient_command[@]:-herbstclient}" "$@" ;} - -tags() { - output="" - - for tag in $(hc tag_status) - do - status=${tag:0:1} - tag_id=${tag:1:1} - case $status in - '#') - item="[$tag_id]" - ;; - ':') - item="[$tag_id]" - ;; - '.') - item="[$tag_id]" - ;; - '*') - item="[$tag_id]" - ;; - esac - action="$item" - output="$output$action" - done - - echo $output -} - panel_height=48 for monitor in $(hc list_monitors | cut -d: -f1) diff --git a/herbstluftwm/tag_status.sh b/herbstluftwm/tag_status.sh index 8d44aac..7a43bb5 100755 --- a/herbstluftwm/tag_status.sh +++ b/herbstluftwm/tag_status.sh @@ -8,6 +8,7 @@ tags() { case $status in '#') title=$(herbstclient attr clients.focus.title) + [ "$title" = "" ] && title="$tag_id" [ ${#title} -ge 30 ] && title="${title:0:29}…" item="[$title]" ;;