Add optional Window-ID argument to decoration scripts

This commit is contained in:
Talia 2021-02-19 11:13:46 +01:00
parent fc5c15dc63
commit 2cd635bd19
2 changed files with 16 additions and 2 deletions

View file

@ -1 +1,8 @@
xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x1, 0x0, 0x0"
#!/bin/sh
if [ -z "$1" ]
then win_id=$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}')
else win_id=$1
fi
xprop -id $win_id -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x1, 0x0, 0x0"

View file

@ -1 +1,8 @@
xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0"
#!/bin/sh
if [ -z "$1" ]
then win_id=$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}')
else win_id=$1
fi
xprop -id $win_id -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0"