Draws desktop of BSPWM in a conky panel.
A vertical conky, scale = 80
An horizontal conky, scale = 40
TIMTOWTDI, but for example :
cd
mkdir -p .config/conky/lua
cd .config/conky/lua
git clone https://github.com/drasill/conky-bspwm-desktops.git bspwm-desktops
You'll need the dkjson
lua package :
sudo luarocks install dkjson
In your conky settings, simply add lua_load
with the full path of
bspwm-desktops
, and a call to the bspwm-desktops
function.
conky.config = {
-- ...
lua_load = '~/.config/conky/lua/bspwm-desktops/bspwm-desktops.lua',
-- ...
}
conky.text = [[
...
...
${desktop_name}
${lua bspwm_desktops 10 20 80}
...
...
...
]]
Arguments to bspwm-desktops
are as follow :
bspwm-desktops x y scale
with :
x
,y
: top-left position of the widgetscale
: desktop representation scale
For exemple, if your desktop have a 1920x1080
size, a scale
of 80
will
display your desktops as 24x13
pixels rectangles.
Using conky's $desktop_name
seems to be working, and is a nice addition.
The script displays the desktops from left to right, then top to bottom, depending on the conky panel's width.
... are very welcome !
But the code is really quick'n dirty, even if simple.