From d223e323bf28ad66de79b3b03a81f3777bfdbc14 Mon Sep 17 00:00:00 2001 From: Alex Stan <90788596+Ultra980@users.noreply.github.com> Date: Mon, 5 Jun 2023 18:37:12 +0300 Subject: [PATCH] some more stuff Signed-off-by: Alex Stan --- users/ultra/configs/eww/eww.yuck | 4 ++++ users/ultra/home.nix | 1 + 2 files changed, 5 insertions(+) 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 ]; };