Update 2024-02-16 07:42 OpenBSD/amd64-x13
This commit is contained in:
parent
dfa69f99e6
commit
2891c1be6e
@ -14,6 +14,9 @@ GAP=$(( RESH / 12 ))
|
|||||||
H=$(( RESH - 2 * GAP ))
|
H=$(( RESH - 2 * GAP ))
|
||||||
V=$(( RESV - 2 * GAP ))
|
V=$(( RESV - 2 * GAP ))
|
||||||
|
|
||||||
|
COLUMNS=144
|
||||||
|
ROWS=29
|
||||||
|
|
||||||
# set the quirk in .config/spectrwm/spectrwm.conf
|
# set the quirk in .config/spectrwm/spectrwm.conf
|
||||||
# quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
|
# quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
|
||||||
|
|
||||||
@ -23,7 +26,7 @@ WID=$(wmctrl -x -l scratchpad | fgrep '.scratchpad' | cut -d" " -f1)
|
|||||||
if [ -z "$WID" ]
|
if [ -z "$WID" ]
|
||||||
then
|
then
|
||||||
# start terminal (sterm is st.suckless.org)
|
# 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
|
# XXX we cannot resize with wmctrl here, because the window is not
|
||||||
# mapped yet. Adding a sleep here and resize then is visually
|
# mapped yet. Adding a sleep here and resize then is visually
|
||||||
# unpleasant. Therefore st is started with hardcoded dimensions
|
# unpleasant. Therefore st is started with hardcoded dimensions
|
||||||
|
Loading…
Reference in New Issue
Block a user