dwm-polybar - a minimal golang script that works as a module for polybar without the need to recompile the entire polybar
- basic tag module with the same design as in dwm bar
To install you will need to install Go on your computer
Use go install
:
go install github.com/Andrmist/dwm-polybar@latest
Usage: dwm-polybar [flags] dwm-polybar [command] Available Commands: completion Generate the autocompletion script for the specified shell help Help about any command monitors helper command to get information about monitors known by dwm Flags: --active-bg string set background color for active tags (default "005577") --active-fg string set foreground color for active tags (default "ffffff") -h, --help help for dwm-polybar --monitor int monitor num we want to process (see dwm-polybar monitors --help) --urgent-bg string set background color for urgent tags (default "005577") --urgent-fg string set foreground color for urgent tags (default "ffffff")
If you have more than 1 monitor, you have to run dwm-polybar monitors
to properly select your monitor:
$ dwm-polybar monitors Monitor 0 (current): Selected application name: *doom:vterm-popup:#1* – Doom Emacs
After that, add module to your polybar config:
[module/dwm]
type = custom/script
exec = dwm-polybar --monitor 1 # use your monitor number from previous command output
tail = true
- renewing dwm breaks module