From 1bc543e5d2629403939b9cb1796f925487306020 Mon Sep 17 00:00:00 2001 From: Que Quotion Date: Mon, 6 Jan 2014 23:44:12 +0900 Subject: [PATCH] Window Color Inverter +lastfix: forgot to grep -w for window-id to avoid false-positves --- dbus-examples/inverter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus-examples/inverter.sh b/dbus-examples/inverter.sh index a60960f..3344ffd 100644 --- a/dbus-examples/inverter.sh +++ b/dbus-examples/inverter.sh @@ -45,7 +45,7 @@ elif [ "$1" = "focused" ]; then # Ensure we are tracking focus ${compton_dbus}opts_set string:track_focus boolean:true & window=$(${compton_dbus}find_win string:focused | $SED -n 's/^[[:space:]]*'${type_win}'[[:space:]]*\([[:digit:]]*\).*/\1/p') # Query compton for the active window -elif [ -n "$(${compton_dbus}list_win | grep "$1")" ]; then +elif [ -n "$(${compton_dbus}list_win | grep -w "$1")" ]; then window="$1" else echo "$0" "[ selected | focused | window-id ]"