#hyprland #title #window #active #eww #window-manager #monitor

app hyprland-activewindow

A multi-monitor aware Hyprland active window title outputer

2 stable releases

1.0.3 May 11, 2024
1.0.2 Apr 27, 2024
1.0.1 Mar 27, 2024
1.0.0 Mar 19, 2024
0.5.0 Jan 26, 2024

#198 in Command line utilities

Download history 6/week @ 2024-02-18 15/week @ 2024-02-25 1/week @ 2024-03-03 5/week @ 2024-03-10 174/week @ 2024-03-17 150/week @ 2024-03-24 65/week @ 2024-03-31 4/week @ 2024-04-07 112/week @ 2024-04-21 52/week @ 2024-04-28 125/week @ 2024-05-05 17/week @ 2024-05-12 13/week @ 2024-05-19

319 downloads per month

MIT and GPL-3.0-or-later

153 lines


A multi-monitor aware Hyprland active window title outputer. Follows the specified monitor and outputs the current active window title. Designed to be used with Eww, but may function with other bars.

Installation Instructions



Arch Linux

Arch users can install from AUR using your favourite package manager.

  pikaur -S hyprland-activewindow


NixOS users can use the unstable channel to try or install the package.

nix-shell -p hyprland-activewindow


It can be installed directly from crates.io with cargo.

  cargo install hyprland-activewindow

Building from source

git clone https://github.com/FieldofClay/hyprland-activewindow.git
cd hyprland-activewindow
cargo build --release


Basic Mode

Pass the name of the monitor to follow as the only argument. It will then follow that monitor and output the active window title to stdout.

./hyprland-activewindow eDP-1

You can get the names of your monitors by running:

hyprctl monitors -j

It can be used as a title widget in Eww with config similar to below.

(deflisten window0 "hyprland-activewindow eDP-1")
(defwidget title0 []
    (label :text "${window0}"))

(deflisten window1 "hyprland-activewindow DP-1")
(defwidget title1 []
    (label :text "${window1}"))

(defwidget bar0 []

(defwidget bar1 []

Advanced Mode

Pass the wildcard "_" as the only argument and it will follow all monitors and output active window title information in json to stdout.

./hyprland-activewindow _

The output will be a json array of each monitors name and the active window's title & initial title.

[{"initial_title":"Alacritty","name":"eDP-1","title":"~/hyprland-activewindow"},{"initial_title":"VSCodium","name":"DP-1","title":"main.rs - hyprland-activewindow (Workspace) - VSCodium"}]

This allows simplified Eww config similar to this:

(deflisten windows "hyprland-activewindow _")

(defwidget window [monitor]
    (label :text "${windows['${monitor}'].title}")

(defwidget bar0 []
    (window :monitor 0)

(defwidget bar1 []
    (window :monitor 1)


~273K SLoC