aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-10 18:46:30 -0300
committerEuAndreh <eu@euandre.org>2022-10-10 18:46:30 -0300
commitca61adaa797adbb82380cc8b3788243b597564d4 (patch)
tree39e65dc646a717df371e944268bfc3d018840f4b /bin
parentbin/ootb: Add working, very useful utility (diff)
downloaddotfiles-ca61adaa797adbb82380cc8b3788243b597564d4.tar.gz
dotfiles-ca61adaa797adbb82380cc8b3788243b597564d4.tar.xz
bin/status-bar: Include count of up VMs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/status-bar8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/status-bar b/bin/status-bar
index 65cef1c..31f9bd2 100755
--- a/bin/status-bar
+++ b/bin/status-bar
@@ -89,8 +89,14 @@ while (my ($statusline) = (<STDIN> =~ /^,?(.*)/)) {
my $mpris = `player current`;
chomp $mpris;
+ my $vms = `vm status | grep :up\$ | wc -l`;
+ chomp $vms;
+
@blocks = ({
- full_text => "$mpris",
+ full_text => $vms,
+ name => 'vms',
+ }, {
+ full_text => $mpris,
name => 'mpris',
}, @blocks);