aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:33 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:33 +0100
commit9b2756e4b8ffcce1a2d494cf32a99b971c5ae13f (patch)
treebb6dbfa15df09e957fc423ac13037711d2c2e44a /dot_config/waybar
parentda1de8c64955f2ca5bb4891764e4b183f4250566 (diff)
downloaddotfiles-9b2756e4b8ffcce1a2d494cf32a99b971c5ae13f.tar.gz
dotfiles-9b2756e4b8ffcce1a2d494cf32a99b971c5ae13f.tar.bz2
dotfiles-9b2756e4b8ffcce1a2d494cf32a99b971c5ae13f.zip
feat(sway,waybar): scratch nvim+ipython binds; bolder VPN visuals
VPN module: - Pango markup colours the text directly so up/down is visually unambiguous even without CSS classes (green shield up, dim strikethrough down) - .down also gets a faint red background tint for at-a-glance scan Sway: - Super+Shift+t -> floating ghostty with nvim editing a fresh $XDG_RUNTIME_DIR/scratch-<epoch>.txt (auto-cleared on reboot via tmpfs) - Super+c -> floating ghostty with ipython (quick calculator / python scratch) KEYBINDS.md updated.
Diffstat (limited to 'dot_config/waybar')
-rw-r--r--dot_config/waybar/executable_vpn-status.sh9
-rw-r--r--dot_config/waybar/style.css1
2 files changed, 6 insertions, 4 deletions
diff --git a/dot_config/waybar/executable_vpn-status.sh b/dot_config/waybar/executable_vpn-status.sh
index 37fea84..3e6faba 100644
--- a/dot_config/waybar/executable_vpn-status.sh
+++ b/dot_config/waybar/executable_vpn-status.sh
@@ -1,12 +1,13 @@
#!/bin/sh
# Waybar custom/vpn module: report whether the wireguard interface
-# (managed by systemd-networkd) is admin-up. Output is a single line of
-# JSON so waybar can style it via the .up / .down classes.
+# (managed by systemd-networkd) is admin-up. Pango markup makes the
+# state visually unambiguous (green shield up, red strikethrough down)
+# even before CSS classes are taken into account.
iface=hodor
if ip link show "$iface" 2>/dev/null | grep -qE '<[^>]*\<UP\>'; then
- printf '{"text":"VPN","class":"up","tooltip":"%s up"}\n' "$iface"
+ printf '{"text":"<span color=\\"#b8bb26\\">󰒃 VPN</span>","class":"up","tooltip":"%s up — click to disconnect"}\n' "$iface"
else
- printf '{"text":"VPN","class":"down","tooltip":"%s down"}\n' "$iface"
+ printf '{"text":"<span color=\\"#928374\\"><s>󰒃 VPN</s></span>","class":"down","tooltip":"%s down — click to connect"}\n' "$iface"
fi
diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
index 86e546a..4866f11 100644
--- a/dot_config/waybar/style.css
+++ b/dot_config/waybar/style.css
@@ -34,6 +34,7 @@ window#waybar {
#custom-vpn.down {
color: #928374;
+ background-color: rgba(251, 73, 52, 0.15);
}
#mode {