Skip to content

Polybar module for listing KDE virtual desktops

License

Notifications You must be signed in to change notification settings

OrkenWhite/polybar-kde-desktops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

polybar-kde-desktops

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.

Arguments

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

Example Polybar configuration

[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%

Credits

This script was inspired by kaythomas0's kde-virtual-desktops-polybar.

About

Polybar module for listing KDE virtual desktops

Topics

Resources

License

Stars

Watchers

Forks

Languages