Update decor scripts to detect foreground window

This commit is contained in:
Talia 2022-05-05 13:56:08 +02:00
parent d132831efd
commit 56f9b3da7f
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ -z "$1" ]
then win_id=$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}')
then win_id=$(xdotool getwindowfocus) #$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}')
else win_id=$1
fi

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ -z "$1" ]
then win_id=$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}')
then win_id=$(xdotool getwindowfocus) #$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}')
else win_id=$1
fi