From 4f1afdd2527e5def0ec49666e58d6270ad77a6d0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 26 Feb 2026 19:34:25 +0100 Subject: ... --- accounts/gkleen@sif/niri.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/niri.nix') diff --git a/accounts/gkleen@sif/niri.nix b/accounts/gkleen@sif/niri.nix index d676f613..3918efcb 100644 --- a/accounts/gkleen@sif/niri.nix +++ b/accounts/gkleen@sif/niri.nix @@ -933,7 +933,15 @@ in { "Mod+D".action = with-urgent-window-action "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; "Mod+Shift+D".action = with-focused-window-action "{\"Action\":{\"UnsetUrgent\":{\"id\": .id}}}"; - "Mod+K".action = spawn (lib.getExe' pkgs.worktime "worktime-ui"); + "Mod+K".action = spawn (toString (pkgs.resholve.writeScript "worktime-ui" { + interpreter = pkgs.runtimeShell; + inputs = [ pkgs.worktime config.programs.quickshell.package ]; + execer = [ + "cannot:${lib.getExe' config.programs.quickshell.package "qs"}" + ]; + } '' + worktime-ui && qs ipc call Worktime refresh + '')); "Mod+Shift+K".action = spawn (lib.getExe' pkgs.worktime "worktime-stop"); })) (lib.mapAttrsToList (name: cfg: node name [(lib.removeAttrs cfg ["action"])] [cfg.action]) (let -- cgit v1.2.3