aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/sway/config4
-rw-r--r--dot_config/waybar/executable_vpn-status.sh9
-rw-r--r--dot_config/waybar/style.css1
3 files changed, 10 insertions, 4 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config
index 39d1e31..9b72031 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -192,6 +192,10 @@ bindsym XF86Tools exec $term --class=floating -e pulsemixer
bindsym XF86Keyboard exec $term --class=floating -e glow -p ~/dotfiles/KEYBINDS.md
bindsym XF86Favorites exec ~/.config/waybar/mako-history.py
+# Quick scratch tools
+bindsym $mod+Shift+t exec $term --class=floating -e sh -c 'nvim "$XDG_RUNTIME_DIR/scratch-$(date +%s).txt"'
+bindsym $mod+c exec $term --class=floating -e ipython
+
# QR codes (Super+z then r=read or w=write)
mode "qr" {
bindsym r exec ~/.local/bin/rqr, mode "default"
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 {