Skip to content

druskus20/eww-niri-workspaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eww-niri-workspaces

A rust binary that outputs workspace information from niri-ipc to be consumed by eww.

image

Example widget

(defwidget workspaces [monitor]
  (box :orientation "h" 
       :class "workspaces"
       :space-evenly false
    (for wsp in {"${workspaces.outputs[monitor].workspaces}"}
      (eventbox :cursor "pointer"
        (button :onclick "niri msg action focus-workspace ${wsp.index}"
          (box :class "workspace ${wsp.is_active ? 'active' : ''} ${arraylength(wsp.columns) == 0 ? 'empty' : ''}"
            (for col in "${wsp.columns}"
              (box :halign "center" :class "column ${col.has_focused_window ? 'focused' : ''}"
                (label :text "")))))))))

About

A rust binary that outputs workspace information from niri-ipc to be consumed by eww

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages