made a basic active window widget

This commit is contained in:
2025-03-05 21:20:08 +01:00
parent bf6adceda3
commit f56b59d459
3 changed files with 22 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
(include "./widgets/music.yuck")
(include "./widgets/lorem.yuck")
(include "./widgets/hypr_activewindow.yuck")
(defwindow topbar_0
:monitor 1
@@ -20,13 +21,13 @@
(center)
(right)))
(defwindow left []
(defwidget left []
(box :orientation 'h'
:class: 'left'
:space-evenly true
:spacing 5
:halign 'start'
(loremText :text "Workspaces")))
(active_window)))
(defwidget center []

View File

@@ -0,0 +1,7 @@
(deflisten activewindow :initial "..." "hyprman -f activewindow")
(defwidget active_window []
(box :class "activewindow"
:halign "center"
:valign "center"
{activewindow.data.window_class}))

View File

@@ -0,0 +1,12 @@
(deflisten events :initial ""
../scripts/hyprman)
(defvar workspaceIcons '{
"empty": "",
"full": "",
"focused": "󱓻"
}')
(defvar seperator " ")