home/i3status-rs: update refresh script for swayidle
This commit is contained in:
parent
95da63a217
commit
79289167b1
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user