Add a script to print lasts notifications

This commit is contained in:
Antoine Vaure 2025-02-02 19:19:45 +01:00
parent 25b79783f9
commit 6f8d41a1b8
2 changed files with 74 additions and 0 deletions

View file

@ -44,6 +44,8 @@
${config.programs.rofi.package}/bin/rofi -matching normal -sort -show run
'';
".bin/notifications".source = bin/notifications;
".bin/window_dir".source = pkgs.writers.writeBash "window_dir" ''
PID=$(${pkgs.hyprland}/bin/hyprctl activewindow | grep pid | cut -d' ' -f 2)
PID=$(echo $(ps --ppid $PID -o pid | tail -n1))