Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
18
.bin/OLD/sp2
Executable file
18
.bin/OLD/sp2
Executable file
@@ -0,0 +1,18 @@
|
||||
#/bin/sh
|
||||
windowname="scratchpad-$1"
|
||||
desk=`wmctrl -d | grep '*' | cut -d ' ' -f '1'`
|
||||
scratch_desk=`wmctrl -l | grep $windowname | cut -d ' ' -f '3'`
|
||||
|
||||
xprop -name "$windowname"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ $desk -eq $scratch_desk ]; then
|
||||
wmctrl -r $windowname -t $desk
|
||||
wmctrl -r $windowname -b toggle,hidden
|
||||
else
|
||||
wmctrl -R $windowname
|
||||
wmctrl -r $windowname -b remove,hidden
|
||||
fi
|
||||
else
|
||||
st -c $windowname
|
||||
fi
|
||||
Reference in New Issue
Block a user