From 2891c1be6e656d57bd7d998a3749b07ae61ab3e9 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Fri, 16 Feb 2024 07:42:49 +0100 Subject: [PATCH] Update 2024-02-16 07:42 OpenBSD/amd64-x13 --- .bin/scratchpad | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bin/scratchpad b/.bin/scratchpad index 29a74ed..cbd67cb 100755 --- a/.bin/scratchpad +++ b/.bin/scratchpad @@ -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