1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-18 13:55:36 -05:00

Window Color Inverter

+lastfix: forgot to grep -w for window-id to avoid false-positves
This commit is contained in:
Que Quotion 2014-01-06 23:44:12 +09:00
parent b74ca2b6aa
commit 1bc543e5d2

View file

@ -45,7 +45,7 @@ elif [ "$1" = "focused" ]; then
# Ensure we are tracking focus # Ensure we are tracking focus
${compton_dbus}opts_set string:track_focus boolean:true & ${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 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" window="$1"
else else
echo "$0" "[ selected | focused | window-id ]" echo "$0" "[ selected | focused | window-id ]"