From b99292ce2890e7fd8a1e8b283c0fb310a8c8af98 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Sun, 22 Mar 2020 09:36:45 +0100 Subject: [PATCH] Add scripts to send window to back and undo --- bin/back | 4 ++++ bin/front | 5 +++++ 2 files changed, 9 insertions(+) create mode 100755 bin/back create mode 100755 bin/front diff --git a/bin/back b/bin/back new file mode 100755 index 0000000..07448a6 --- /dev/null +++ b/bin/back @@ -0,0 +1,4 @@ +win_id=$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}') + +xprop -id $win_id -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0" +wmctrl -i -r $win_id -b add,below diff --git a/bin/front b/bin/front new file mode 100755 index 0000000..a70c41b --- /dev/null +++ b/bin/front @@ -0,0 +1,5 @@ +win_id=$(xwininfo | awk 'match($0, /Window id: (0x[0-9a-f]+)/, cap){print cap[1]}') + +xprop -id $win_id -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x1, 0x0, 0x0" +wmctrl -i -r $win_id -b remove,below +wmctrl -i -a $win_id