Skip to content

Commit

Permalink
add spawn-at-startup watch thing to view status of xdp and related
Browse files Browse the repository at this point in the history
this is the beautiful little watch window i mentioned in
sodiboo/niri-flake#509
  • Loading branch information
sodiboo committed Sep 17, 2024
1 parent ad6245c commit 77d300d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions niri.mod.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 77d300d

Please sign in to comment.