I am a big fan of this nifty Electron application called Pennywise. From the README, it is described as:
Pennywise opens any website or media in a small floating window that remains on top of all other applications. Pennywise windows stays up all the time. No need to keep struggling with alt + tab, use Pennywise for easy multitasking.
Pennywise is great for multi-tasking when you want to open a separate, floating browser window, say to watch a coding tutorial, but at the same time, you don’t want it to take the whole space of your desktop. It can stay on top in a little window, but you can resize it however you like.
Since moving my primary development platform from Windows to Arch Linux, I’ve been adapting some of the applications that I used in Windows. In the case of Electron-based applications, it’s quite easy since most of them are usually built with the cross platform in mind. Pennywise is fortunately available in AUR as pennywise-bin
so installation is easy, all I need to do is to run:
|
|
I switch workspaces a lot in bspwm, but by default, the Pennywise window will stay on the current workspace it’s on even though I switch to another workspace. It’s not ideal, but nothing that can’t be fixed with a little tweak to the bspwmrc
config. You’ll first need to find out the WM_CLASS
value of Pennywise when it’s running. To do so, run xprop
in your terminal, then click on the Pennywise window.
You should get an output similar to this:
|
|
You’ll need the second string on the WM_CLASS
line, in this case, it is Pennywise
. Then it’s just a matter of adding another rule in the bspwm config to make it persistent.
In your bspwmrc
, add this line
bspc rule -a Pennywise state=floating sticky
I also add state=floating
so that it’s run as a floating window by default. Reload your bspwm
, and it should be persistent when you’re switching to other workspaces. That’s it!