Initial
This commit is contained in:
commit
c8734e660a
392 changed files with 21043 additions and 0 deletions
18
.config/waybar/custom/kvm-monitor.sh
Normal file
18
.config/waybar/custom/kvm-monitor.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
IFS=$'\n'
|
||||
|
||||
vms=($(virsh --connect qemu:///system list | grep -e "[0-9]\+"))
|
||||
n="${#vms[@]}"
|
||||
|
||||
tooltip="Virtual Machines:"
|
||||
for vm in "${vms[@]}";
|
||||
do
|
||||
tooltip="$tooltip\n$vm"
|
||||
done
|
||||
|
||||
if [[ n -gt 0 ]]
|
||||
then
|
||||
echo "{\"class\": \"running\", \"text\": \"$n\", \"tooltip\": \"$tooltip\"}"
|
||||
exit
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue