Update 2024-02-16 07:42 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-02-16 07:42:49 +01:00
parent dfa69f99e6
commit 2891c1be6e

View File

@ -14,6 +14,9 @@ GAP=$(( RESH / 12 ))
H=$(( RESH - 2 * GAP ))
V=$(( RESV - 2 * GAP ))
COLUMNS=144
ROWS=29
# set the quirk in .config/spectrwm/spectrwm.conf
# quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
@ -23,7 +26,7 @@ WID=$(wmctrl -x -l scratchpad | fgrep '.scratchpad' | cut -d" " -f1)
if [ -z "$WID" ]
then
# start terminal (sterm is st.suckless.org)
sterm -c scratchpad -g 159x42+$GAP+$GAP &
sterm -c scratchpad -g ${COLUMNS}x${ROWS}+${GAP}+${GAP} &
# XXX we cannot resize with wmctrl here, because the window is not
# mapped yet. Adding a sleep here and resize then is visually
# unpleasant. Therefore st is started with hardcoded dimensions