summaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/sway')
-rw-r--r--dot_config/sway/config5
-rw-r--r--dot_config/sway/executable_type-vpn-otp.sh23
2 files changed, 0 insertions, 28 deletions
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"