some more stuff

Signed-off-by: Alex Stan <stan.alexandru@ichb.ro>
This commit is contained in:
Alex Stan 2023-06-05 18:37:12 +03:00
parent 3bff77b17e
commit d223e323bf
2 changed files with 5 additions and 0 deletions

View file

@ -30,6 +30,7 @@
(box (box
:class "time" :class "time"
time)) time))
(defpoll time :interval "1s" (defpoll time :interval "1s"
`date +'%I `date +'%I
%M %M
@ -49,3 +50,6 @@
(defwidget workspace [number] (defwidget workspace [number]
(box :class "workspace" (box :class "workspace"
(button :onclick "hyprctl dispatch workspace ${number}" number))) (button :onclick "hyprctl dispatch workspace ${number}" number)))
(defpoll curr_workspace :interval "0s"
`hyprctl activeworkspace -j | jq '.id'`)

View file

@ -115,6 +115,7 @@ in {
notify-desktop notify-desktop
libnotify libnotify
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
jq
]; ];
}; };