Hello, everyone. First post here.
I’ve been using the Qtile edition since a few days and I wanted to bind the Rofi powermenu script that
is located at ~/.config/rofi/powermenu.sh
to a certain key (this is the same script that runs when you click the powermenu widget on the bar, nothing changed on it and it works when clicked or called through the terminal). I thought adding something like
Key([mod], "q", lazy.spawn("~/.config/rofi/powermenu.sh"), desc="powermenu")
to ~/.config/qtile/modules/keys.py
would be enough but it doesn’t work. I tried a couple of other things like putting the full path /home/user/.config/rofi/powermenu.sh
instead of just ~
but that also didn’t work. Calling
rofi -show drun -modi drun
(which is usually how Rofi menus are called) before giving the path the script also doesn’t work, so I don’t know how to do it.
I asked the same thing on Reddit but had no answer there. I have also a couple of personal Rofi scripts I would want to bind, so this is important.
Thanks in advance!