diff options
Diffstat (limited to 'scripts/desktop/i3status-wrapper')
-rwxr-xr-x | scripts/desktop/i3status-wrapper | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/desktop/i3status-wrapper b/scripts/desktop/i3status-wrapper index 5c4a25c8..af487b0c 100755 --- a/scripts/desktop/i3status-wrapper +++ b/scripts/desktop/i3status-wrapper @@ -78,7 +78,7 @@ unless (fork // die "couldn't fork()!") { my $caffeinated_id; open my $events, "-|", - $wmipc, "-t", "subscribe", "-m", '[ "window" ]'; + $wmipc, "-t", "subscribe", "-m", '[ "window", "workspace" ]'; while (my $event = decode_json <$events>) { if ($event->{change} eq "mark") { @@ -91,5 +91,7 @@ while (my $event = decode_json <$events>) { undef $caffeinated_id, undef $info{caffeinated_name}; kill USR1 => $i3status; } + } elsif ($event->{change} eq "init" or $event->{change} eq "empty") { + compact_workspaces; } } |