small update

This commit is contained in:
2025-03-06 01:22:10 +01:00
parent f56b59d459
commit 3b000cf544

View File

@@ -1,7 +1,34 @@
(deflisten activewindow :initial "..." "hyprman -f activewindow")
(defvar windowIcons
`{
"generic": "",
"spotify": "",
"mpv": "",
"firefox": "",
"chromium": "",
"zen": "",
"Alacritty": "",
"steam": "󰓓",
"discord": "󰙯"
}`)
(defwidget windowIcon []
(image
:limit-width 10
:icon-size: 12
:icon {activewindow.data.window_class}))
(defwidget windowTitle []
(label
:class "windowIcon"
:limit-width 10
:text {activewindow.data.window_title}))
(defwidget active_window []
(box :class "activewindow"
:halign "center"
:valign "center"
{activewindow.data.window_class}))
(box
:class "activewindow"
:halign "center"
:valign "center"
:spacing 1
(windowIcon) (windowTitle)))