···11-output * bg /home/j3s/Pictures/whale.jpg fill
11+output * bg /home/j3s/Pictures/flowers.jpg tile
2233# This will lock your screen after 300 seconds of inactivity, then turn off
44# your displays after another 300 seconds, and turn your screens back on when
···1313for_window [class="Chromium"] inhibit_idle fullscreen
14141515bindsym $mod+Shift+i exec jira-fuzzel
1616+bindsym $mod+Prior exec vpn
1717+bindsym $mod+Next exec vpn kill
16181719# Laptop outputs are managed automatically using kanshi
1818-exec_always pkill kanshi; exec kanshi
2020+# see https://github.com/emersion/kanshi/issues/43
2121+exec_always pkill kanshi; exec kanshi &> /tmp/kanshi.debug
+14-5
bin/zora/statusbar
···2233while true
44do
55- battery="🐟 $(cat /sys/class/power_supply/BAT0/capacity)%"
66- wifi="🐡 $(nmcli ge status | grep -v STATE | awk '{print $1}')"
55+ vpn="disconnected"
66+ if ip link ls tun0 > /dev/null 2>&1; then
77+ vpn="connected"
88+ fi
99+ wifi="disconnected (0%)"
1010+ if nmcli dev show wlp0s20f3 | grep GENERAL.STATE | grep -q connected; then
1111+ wifiname="$(nmcli dev show wlp0s20f3 | awk '/GENERAL.CONNECTION/ {print $2}')"
1212+ wifistrength="$(nmcli dev show wlp0s20f3 | awk '/GENERAL.STATE/ {print $2}')"
1313+ wifi="$wifiname ($wifistrength%)"
1414+ fi
1515+ battery="$(cat /sys/class/power_supply/BAT0/capacity)%"
716 time=$(date +"%A %Y-%m-%d %I:%M %p")
88- est_time=$(TZ=America/New_York date +"(%I:%M ET)")
99- time="🦈 $time $est_time $(date -u +"(%H:%M UTC)")"
1717+ est_time=$(TZ=America/New_York date +"(🗽%I:%M ET)")
1818+ time="$time $est_time $(date -u +"(🤖%H:%M UTC)")"
1019 # --date='TZ="America/New_York"
1111- printf "%s | %s | %s\n" "${wifi}" "${battery}" "${time}"
2020+ printf "%s | %s | %s\n" "💓 ${wifi} (vpn $vpn)" "🥤 ${battery}" "${time}"
1221 sleep 10
1322done
+20
bin/zora/vpn
···11+#!/bin/sh
22+#
33+# connects or kills the gp
44+# vpn tunnel
55+66+if [ "$1" = "kill" ]; then
77+ notify-send '🤬 killing vpn' -t 2000
88+ sudo pkill openconnect
99+else
1010+ notify-send '👼 connecting vpn' -t 1000
1111+ # the two-line pipe method used here was described
1212+ # in this issue: https://github.com/dlenski/openconnect/issues/103#issuecomment-383416545
1313+ if pgrep openconnect; then
1414+ sleep 1
1515+ notify-send '😳 vpn already running' -t 2000
1616+ exit
1717+ fi
1818+ printf "%s\n%s" "$(pa show vpn)" "1" |
1919+ sudo openconnect -u jolson --passwd-on-stdin --protocol=gp https://vpn-nyc3.digitalocean.com/ssl-vpn
2020+fi