You are not logged in.
Pages: 1
Hi,
I have this rule in my bspwmrc file:
bspc rule -a scratchpad-urxvt state=floating sticky=on center=trueHowever, when I call URxvt like so:
urxvt -geometry 100x30 -name scratchpad-urxvtthen URxvt will open as a regular window, i.e. tiled and non-sticky. Please see below my complete scratchpad script which is supposed to toggle the scratchpad. Where is the mistake?
#!/bin/bash
if [ $(xdotool search --classname "scratchpad-urxvt" | wc -l) -eq 0 ]; then
urxvt -geometry 100x30 -name scratchpad-urxvt
elif [ $(wmctrl -lx | grep scratchpad-urxvt | wc -l) -eq 0 ]; then
xdotool search --classname "scratchpad-urxvt" windowmap
else
xdotool search --classname "scratchpad-urxvt" windowunmap
fiEdit: Replaced the script with an updated version.
Last edited by salonkommunist (2020-02-18 15:52:41)
Offline
Pages: 1