From 315e7580b35f2535319bbd852d443c3c9bcb4d41 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 14 Aug 2026 14:21:05 +0100 Subject: Remove former work environment configuration --- dot_config/sway/config | 5 ----- dot_config/sway/executable_type-vpn-otp.sh | 23 ----------------------- 2 files changed, 28 deletions(-) delete mode 100644 dot_config/sway/executable_type-vpn-otp.sh (limited to 'dot_config/sway') diff --git a/dot_config/sway/config b/dot_config/sway/config index 6490001..32e7320 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -53,11 +53,6 @@ for_window [class="Tor Browser"] floating enable for_window [app_id="org.mozilla.thunderbird" title=".*Mozilla Thunderbird$"] mark --add tb-main for_window [shell=".*"] inhibit_idle fullscreen -# virt-viewer / virt-manager grab the Mod key via the keyboard-shortcuts-inhibit -# Wayland protocol. Refuse so $mod+... bindings keep working while the VM has focus. -for_window [app_id="virt-viewer"] shortcuts_inhibitor disable -for_window [app_id="remote-viewer"] shortcuts_inhibitor disable -for_window [app_id="virt-manager"] shortcuts_inhibitor disable for_window [app_id="^[Ww]aydroid.*"] shortcuts_inhibitor disable # ── Standard keybinds (sway defaults) ───────────────────────────────────────── diff --git a/dot_config/sway/executable_type-vpn-otp.sh b/dot_config/sway/executable_type-vpn-otp.sh deleted file mode 100644 index f62ecbc..0000000 --- a/dot_config/sway/executable_type-vpn-otp.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env dash -# Fetch the current VPN TOTP from pass-otp and type it into the focused -# surface via wtype. If wtype isn't available or fails (focused surface -# lacks virtual-keyboard support, e.g. an Xwayland app), copy the code -# to the Wayland clipboard instead and notify so the user can Ctrl+V it. -set -eu - -code=$(pass otp show vpn/totp 2>/dev/null | tr -d ' \t\n\r') || { - notify-send -u critical "VPN OTP" "pass otp show vpn/totp failed" - exit 1 -} - -if [ -z "$code" ]; then - notify-send -u critical "VPN OTP" "empty code from pass-otp" - exit 1 -fi - -if command -v wtype >/dev/null 2>&1 && wtype -- "$code" 2>/dev/null; then - exit 0 -fi - -printf '%s' "$code" | wl-copy -notify-send "VPN OTP" "Typed via wtype failed — code copied to clipboard" -- cgit v1.3.1