From 77d300dca22fc3478b10e04b5daeda472459985f Mon Sep 17 00:00:00 2001 From: sodiboo Date: Tue, 17 Sep 2024 21:44:08 +0200 Subject: [PATCH] add spawn-at-startup watch thing to view status of xdp and related this is the beautiful little watch window i mentioned in https://github.com/sodiboo/niri-flake/issues/509 --- flake.lock | 12 ++++++------ niri.mod.nix | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 9ef3142..1fe061f 100644 --- a/flake.lock +++ b/flake.lock @@ -696,11 +696,11 @@ ] }, "locked": { - "lastModified": 1726440980, - "narHash": "sha256-ChhIrjtdu5d83W+YDRH+Ec5g1MmM0xk6hJnkz15Ot7M=", + "lastModified": 1726593622, + "narHash": "sha256-ZtPJLbeyqSXOeHTBzQJRAM7sFjOxsqTO+ozigqCxyj8=", "owner": "nix-community", "repo": "home-manager", - "rev": "a9c9cc6e50f7cbd2d58ccb1cd46a1e06e9e445ff", + "rev": "4a4a8b145463ccfef579bb0e26275c97bf0b5bf2", "type": "github" }, "original": { @@ -811,11 +811,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1726586848, - "narHash": "sha256-sW5pB0YTcvex8sjVMOffDZsOMp7rwco4MGuVrQk1HL0=", + "lastModified": 1726595793, + "narHash": "sha256-3TL/g2mCfe88ehUtoGh82HF9lKRgCpFHSIXli9yB+Sk=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "c62ad7457b38f4f14aa5e57e9299441976fcc662", + "rev": "318b1ef1b47bc30dddd0b14b0a8a2093039e275a", "type": "github" }, "original": { diff --git a/niri.mod.nix b/niri.mod.nix index 96ca228..22b8377 100644 --- a/niri.mod.nix +++ b/niri.mod.nix @@ -202,6 +202,20 @@ # {command = ["waybar"];} # {command = ["swww" "start"];} # ]; + spawn-at-startup = [ + { + command = let + units = [ + "niri" + "graphical-session.target" + "xdg-desktop-portal" + "xdg-desktop-portal-gnome" + "waybar" + ]; + commands = builtins.concatStringsSep ";" (map (unit: "systemctl --user status ${unit}") units); + in ["kitty" "--" "sh" "-c" "env SYSTEMD_COLORS=1 watch -n 1 -d --color '${commands}'"]; + } + ]; animations.shaders.window-resize = '' vec4 resize_color(vec3 coords_curr_geo, vec3 size_curr_geo) {