Make lemonbar POSIX compliant

This commit is contained in:
Riyyi
2019-05-01 23:33:05 +02:00
parent 939d4d7854
commit 613925527c
+1 -1
View File
@@ -6,7 +6,7 @@ PANEL="lemonbar_panel"
title() { title() {
# Grabs focused window's title # Grabs focused window's title
ID="$(printf "%s" "$1" | awk '{print $5}')" ID="$(printf "%s" "$1" | awk '{print $5}')"
if [ "$ID" == "0x0" ]; then if [ "$ID" = "0x0" ]; then
TITLE="" TITLE=""
else else
TITLE="$(xprop -id "$ID" WM_NAME \ TITLE="$(xprop -id "$ID" WM_NAME \