Introduction
Introduction Statistics Contact Development Disclaimer Help
dwmstatus.sh - dotfiles - These are my dotfiles. There are many like it, but th…
git clone git://jay.scot/dotfiles
Log
Files
Refs
README
---
dwmstatus.sh (406B)
---
1 #!/bin/sh
2
3 get_volume() {
4 pactl list sinks | awk '/Volume:/ {print $5; exit}'
5 }
6
7 get_vpn_status() {
8 mullvad status
9 }
10
11 while true; do
12 localtime=$(date +"%T")
13
14 vol=$(get_volume)
15 [ -z "$vol" ] && vol="N/A"
16
17 vstatus=$(get_vpn_status)
18 [ "$vstatus" != "Disconnected" ] && vstatus="On" || vstatus="Off"
19
20 xsetroot -name " VPN: $vstatus | VOL: $vol | $localtime "
21
22 sleep 10
23 done
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.