Add soba sway conf, add soba statusbar
Jes Olson jolson@digitalocean.com
Wed, 09 Feb 2022 17:53:59 -0600
2 files changed,
21 insertions(+),
0 deletions(-)
A
.config/sway/soba
@@ -0,0 +1,5 @@
+output eDP-1 scale 1.5 + +input 2362:628:PIXA3854:00_093A:0274_Touchpad { + tap enabled +}
A
bin/soba/statusbar
@@ -0,0 +1,16 @@
+#!/bin/sh + +while true +do + wifi="disconnected (0%)" + if nmcli dev show wlan0 | grep GENERAL.STATE | grep -q connected; then + wifiname="$(nmcli dev show wlan0 | grep 'GENERAL.CONNECTION' | sed 's|GENERAL.CONNECTION:[ ]*||g')" + wifistrength="$(nmcli dev show wlan0 | awk '/GENERAL.STATE/ {print $2}')" + wifi="$wifiname ($wifistrength%)" + fi + battery="$(cat /sys/class/power_supply/BAT1/capacity)%" + time=$(date +"%A %Y-%m-%d %I:%M %p") + time="$time $(date -u +"(🤖%H:%M UTC)")" + printf "%s | %s | %s\n" "💓 ${wifi}" "🥤 ${battery}" "${time}" + sleep 10 +done