Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
12
.bin/OLD/scratchpad.tabbed
Executable file
12
.bin/OLD/scratchpad.tabbed
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ ! -f /tmp/scratchpad ] && echo invalid > /tmp/scratchpad
|
||||
|
||||
WID="$(cat /tmp/scratchpad | sed 's/0x//g')"
|
||||
if wmctrl -l | fgrep -q "${WID}";
|
||||
then
|
||||
wmctrl -i -R 0x${WID} -b toggle,hidden,above,sticky
|
||||
else
|
||||
WID=$(tabbed -c -d -n scratchpad -g 1280x768+300+120 -r 2 st -w '')
|
||||
echo ${WID} > /tmp/scratchpad
|
||||
fi
|
||||
Reference in New Issue
Block a user