diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2024-02-22 08:39:31 +0800 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2024-02-22 08:39:35 +0800 |
commit | 76f133220c9e14018bf32e31028e5a22e31147a9 (patch) | |
tree | 9259c171d0ca4fb33c3861253b4cd2010a3f20db | |
parent | 49043f849913d02f31730ee34916d2c91ed2b8fc (diff) | |
download | dotfiles-76f133220c9e14018bf32e31028e5a22e31147a9.tar.gz |
i3status-wrapper: minor simplification for readability
-rwxr-xr-x | scripts/desktop/i3status-wrapper | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/desktop/i3status-wrapper b/scripts/desktop/i3status-wrapper index 64db2da9..f80b3a32 100755 --- a/scripts/desktop/i3status-wrapper +++ b/scripts/desktop/i3status-wrapper @@ -310,8 +310,7 @@ unless (fork // warn "couldn't fork command pipe reader") { if ($cmd =~ /^(focus|move) (left|right)$/) { $mv->($2 eq "right" ? $i+1 : $i-1, $1 eq "move"); } elsif ($cmd =~ /^cols (incr|decr)$/) { - $info{paper_ws}{$info{focused_ws}}{ncols} - += $1 eq "incr" ? 1 : -1; + $ws->{ncols} += $1 eq "incr" ? 1 : -1; normalise_ws_cols(); kill USR1 => $i3status; } |