Skip to content

Andrmist/dwm-polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwm-polybar

dwm-polybar - a minimal golang script that works as a module for polybar without the need to recompile the entire polybar ./screenshot.png

Features

  • basic tag module with the same design as in dwm bar

Install

To install you will need to install Go on your computer Use go install:

go install github.com/Andrmist/dwm-polybar@latest

Usage

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

Known bugs

  • renewing dwm breaks module

About

Polybar script in Go without recompiling entire polybar

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages