Compare commits

...

5 Commits

3 changed files with 19 additions and 1 deletions

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 -USR1 i3status-rs";
command = "${refresh_i3status}/bin/refresh_i3status";
}
];
timeouts = [

View File

@ -50,6 +50,7 @@ in
[
anydesk
appimage-run
ark
arp-scan
birdtray
blackmagic

View File

@ -12,6 +12,10 @@
};
blocks = [
{
block = "keyboard_layout";
driver = "sway";
}
{
block = "battery";
interval = 10;
@ -36,20 +40,30 @@
{
block = "net";
device = "wlan0";
if_command = "ip link show wlan0";
interval = 2;
}
{
block = "net";
device = "enp5s0";
if_command = "ip link show enp5s0";
interval = 2;
}
{
block = "net";
device = "enp7s0f3u1u1";
if_command = "ip link show enp7s0f3u1u1";
interval = 2;
}
{
block = "net";
device = "enp7s0f4u1u1";
if_command = "ip link show enp7s0f4u1u1";
interval = 2;
}
{
block = "net";
if_command = "ip link show eno1";
device = "eno1";
interval = 2;
}