home/i3status-rs: update refresh script for swayidle

This commit is contained in:
Asmir A 2025-03-24 10:30:36 +01:00
parent 95da63a217
commit 79289167b1
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -257,6 +257,9 @@ in
${pkgs.coreutils}/bin/shred "$TMP_FILE"
${pkgs.coreutils}/bin/rm "$TMP_FILE"
'';
refresh_i3status = pkgs.writeShellScriptBin "refresh_i3status" ''
${pkgs.coreutils}/bin/sleep 1 && ${pkgs.procps}/bin/pkill -USR1 i3status-rs
'';
in
{
enable = true;
@ -271,7 +274,7 @@ in
}
{
event = "after-resume";
command = "${pkgs.procps}/bin/pkill -USR2 i3status-rs";
command = "${refresh_i3status}/bin/refresh_i3status";
}
];
timeouts = [