You are not logged in.

#1 2020-02-18 14:11:15

salonkommunist
Member
From: Germany
Registered: 2020-02-18
Posts: 37

bspwm rule is not applied

Hi,

I have this rule in my bspwmrc file:

bspc rule -a scratchpad-urxvt state=floating sticky=on center=true

However, when I call URxvt like so:

urxvt -geometry 100x30 -name scratchpad-urxvt

then 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
fi

Edit: Replaced the script with an updated version.

Last edited by salonkommunist (2020-02-18 15:52:41)

Offline

Board footer

Powered by FluxBB