Update 2024-02-14 07:51 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-02-14 07:54:31 +01:00
parent b55e6a3616
commit 9624895938
373 changed files with 19074 additions and 3045 deletions

26
.bin/OLD/xcons Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
# set the following quirk in .config/spectrwm/spectrwm.conf
# quirk[XConsole] = FLOAT + ANYWHERE
# get XConsole window id
WID=$(wmctrl -x -l XConsole | fgrep '.XConsole' | cut -d" " -f1)
if [ -z "$WID" ]
then
xconsole &
else
# check if window is iconfified or on another WS (or both)
if xwininfo -id $WID | fgrep -q IsUnMapped
then
# move window to current workspace
wmctrl -i -r $WID -t $(xprop -root _NET_CURRENT_DESKTOP | cut -d'=' -f2)
#wmctrl -i -r $WID -t $_SWM_WS
# remove hidden flag
wmctrl -i -r $WID -b remove,hidden
else
wmctrl -i -r $WID -t 11
# window is visible => hide
wmctrl -i -r $WID -b add,hidden
fi
fi