diff --git a/users/ultra/configs/eww/eww.yuck b/users/ultra/configs/eww/eww.yuck index b250e8e..6e93550 100644 --- a/users/ultra/configs/eww/eww.yuck +++ b/users/ultra/configs/eww/eww.yuck @@ -30,6 +30,7 @@ (box :class "time" time)) + (defpoll time :interval "1s" `date +'%I %M @@ -49,3 +50,6 @@ (defwidget workspace [number] (box :class "workspace" (button :onclick "hyprctl dispatch workspace ${number}" number))) + +(defpoll curr_workspace :interval "0s" + `hyprctl activeworkspace -j | jq '.id'`) diff --git a/users/ultra/home.nix b/users/ultra/home.nix index ab1ad82..ecc3544 100644 --- a/users/ultra/home.nix +++ b/users/ultra/home.nix @@ -115,6 +115,7 @@ in { notify-desktop libnotify xdg-desktop-portal-hyprland + jq ]; };