diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-02-26 19:34:25 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-02-26 19:34:25 +0100 |
| commit | 4f1afdd2527e5def0ec49666e58d6270ad77a6d0 (patch) | |
| tree | b9292d81a4c4c2444a2ab8d1a62bee292e25f10c /accounts/gkleen@sif | |
| parent | 3b658e4ea09c672fa7a4ff0abc458d8b7c21f1de (diff) | |
| download | nixos-4f1afdd2527e5def0ec49666e58d6270ad77a6d0.tar nixos-4f1afdd2527e5def0ec49666e58d6270ad77a6d0.tar.gz nixos-4f1afdd2527e5def0ec49666e58d6270ad77a6d0.tar.bz2 nixos-4f1afdd2527e5def0ec49666e58d6270ad77a6d0.tar.xz nixos-4f1afdd2527e5def0ec49666e58d6270ad77a6d0.zip | |
...flakes
Diffstat (limited to 'accounts/gkleen@sif')
5 files changed, 22 insertions, 9 deletions
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 { | |||
| 933 | "Mod+D".action = with-urgent-window-action "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; | 933 | "Mod+D".action = with-urgent-window-action "{\"Action\":{\"FocusWindow\":{\"id\": .id}}}"; |
| 934 | "Mod+Shift+D".action = with-focused-window-action "{\"Action\":{\"UnsetUrgent\":{\"id\": .id}}}"; | 934 | "Mod+Shift+D".action = with-focused-window-action "{\"Action\":{\"UnsetUrgent\":{\"id\": .id}}}"; |
| 935 | 935 | ||
| 936 | "Mod+K".action = spawn (lib.getExe' pkgs.worktime "worktime-ui"); | 936 | "Mod+K".action = spawn (toString (pkgs.resholve.writeScript "worktime-ui" { |
| 937 | interpreter = pkgs.runtimeShell; | ||
| 938 | inputs = [ pkgs.worktime config.programs.quickshell.package ]; | ||
| 939 | execer = [ | ||
| 940 | "cannot:${lib.getExe' config.programs.quickshell.package "qs"}" | ||
| 941 | ]; | ||
| 942 | } '' | ||
| 943 | worktime-ui && qs ipc call Worktime refresh | ||
| 944 | '')); | ||
| 937 | "Mod+Shift+K".action = spawn (lib.getExe' pkgs.worktime "worktime-stop"); | 945 | "Mod+Shift+K".action = spawn (lib.getExe' pkgs.worktime "worktime-stop"); |
| 938 | })) | 946 | })) |
| 939 | (lib.mapAttrsToList (name: cfg: node name [(lib.removeAttrs cfg ["action"])] [cfg.action]) (let | 947 | (lib.mapAttrsToList (name: cfg: node name [(lib.removeAttrs cfg ["action"])] [cfg.action]) (let |
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml index 996fd41b..fc2e1f9f 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
| @@ -31,13 +31,6 @@ Scope { | |||
| 31 | } | 31 | } |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | IpcHandler { | ||
| 35 | target: "Lockscreen" | ||
| 36 | |||
| 37 | function setLocked(locked: bool): void { lock.locked = locked; } | ||
| 38 | function getLocked(): bool { return lock.locked; } | ||
| 39 | } | ||
| 40 | |||
| 41 | Connections { | 34 | Connections { |
| 42 | target: Custom.Systemd | 35 | target: Custom.Systemd |
| 43 | function onSleep(before: bool) { | 36 | function onSleep(before: bool) { |
diff --git a/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml b/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml index b58467b3..80cbba19 100644 --- a/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml +++ b/accounts/gkleen@sif/shell/quickshell/NotificationInhibitorWidget.qml | |||
| @@ -70,7 +70,7 @@ Item { | |||
| 70 | sourceComponent: PopupWindow { | 70 | sourceComponent: PopupWindow { |
| 71 | id: tooltip | 71 | id: tooltip |
| 72 | 72 | ||
| 73 | property bool nextVisible: NotificationManager.active && (widgetMouseArea.containsMouse || tooltipMouseArea.containsMouse) | 73 | property bool nextVisible: NotificationManager.active && NotificationManager.history.length > 0 && (widgetMouseArea.containsMouse || tooltipMouseArea.containsMouse) |
| 74 | 74 | ||
| 75 | anchor { | 75 | anchor { |
| 76 | item: widgetMouseArea | 76 | item: widgetMouseArea |
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml index 58201bd2..6dbff134 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | |||
| @@ -11,6 +11,7 @@ Singleton { | |||
| 11 | property var outputs: {} | 11 | property var outputs: {} |
| 12 | property var keyboardLayouts: {} | 12 | property var keyboardLayouts: {} |
| 13 | property var windows: [] | 13 | property var windows: [] |
| 14 | property var casts: [] | ||
| 14 | readonly property string socketPath: Quickshell.env("NIRI_SOCKET") | 15 | readonly property string socketPath: Quickshell.env("NIRI_SOCKET") |
| 15 | 16 | ||
| 16 | function refreshOutputs() { | 17 | function refreshOutputs() { |
| @@ -71,6 +72,8 @@ Singleton { | |||
| 71 | eventWindowLayoutsChanged(event.WindowLayoutsChanged); | 72 | eventWindowLayoutsChanged(event.WindowLayoutsChanged); |
| 72 | else if (event.WindowFocusTimestampChanged) | 73 | else if (event.WindowFocusTimestampChanged) |
| 73 | eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); | 74 | eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); |
| 75 | else if (event.CastsChanged) | ||
| 76 | root.casts = event.CastsChanged.casts | ||
| 74 | else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } | 77 | else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } |
| 75 | else if (event.OverviewOpenedOrClosed) {} | 78 | else if (event.OverviewOpenedOrClosed) {} |
| 76 | else if (event.ConfigLoaded) {} | 79 | else if (event.ConfigLoaded) {} |
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml b/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml index fdb45aa0..d98378f1 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/Worktime.qml | |||
| @@ -20,6 +20,15 @@ Singleton { | |||
| 20 | command: "today" | 20 | command: "today" |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | IpcHandler { | ||
| 24 | target: "Worktime" | ||
| 25 | |||
| 26 | function refresh(): void { | ||
| 27 | time.running = true; | ||
| 28 | today.running = true; | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 23 | component CommandState : Scope { | 32 | component CommandState : Scope { |
| 24 | id: commandState | 33 | id: commandState |
| 25 | 34 | ||
