This is a Python script for Polybar, which displays the available KDE virtual desktops, highlighting the current one.
The script uses D-Bus for monitoring desktop change events and only updates when needed.
Argument | Description |
---|---|
-n | Print desktop names instead of numbers |
-ac COLOR | Use another highlight color for active desktop. Color should be entered in hex(ex. #ff0000) |
-s SEPARATOR | Use another separator character |
prev | Switch to the previous desktop and terminate script |
next | Switch to the next desktop and terminate script |
[module/kde-desktops]
type = custom/script
exec = ~/.config/polybar/scripts/kde-desktops
scroll-up = ~/.config/polybar/scripts/kde-desktops prev &
scroll-down = ~/.config/polybar/scripts/kde-desktops next &
tail = true
label = %output%
This script was inspired by kaythomas0's kde-virtual-desktops-polybar.