aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Meißelbach <arbelzapf@gmail.com>2019-12-17 14:18:45 +0100
committerMoritz Meißelbach <arbelzapf@gmail.com>2019-12-17 14:18:45 +0100
commitd475d7403383470a260f465dc5d55582fc905b05 (patch)
tree1a1f6a38916c8484d31d9846b683e226828ebd89
parente45f50830062ec5dcfd1325c511051b039eea634 (diff)
parentc20c0f471d9ec397f612405482f672a3c7d2e36f (diff)
downloadsway-launcher-desktop-d475d7403383470a260f465dc5d55582fc905b05.tar.gz
sway-launcher-desktop-d475d7403383470a260f465dc5d55582fc905b05.zip
Merge branch 's-hamann-cmd-description'
-rwxr-xr-xsway-launcher-desktop.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index 59cce1b..0e1cfb3 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -59,7 +59,7 @@ function describe-desktop() {
function describe-command() {
readarray arr < <(whatis -l "$1" 2>/dev/null)
description="${arr[0]}"
- description="${description%*-}"
+ description="${description#* - }"
echo -e "\033[33m${1}\033[0m"
echo "${description:-No description}"
}