aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--KEYBINDS.md2
-rw-r--r--dot_config/sway/config9
2 files changed, 11 insertions, 0 deletions
diff --git a/KEYBINDS.md b/KEYBINDS.md
index 2efa04f..4961ea2 100644
--- a/KEYBINDS.md
+++ b/KEYBINDS.md
@@ -320,3 +320,5 @@ Mod key: `Super` (Mod4). Only personal additions beyond sway defaults listed.
| `Super+Tab` | Next workspace |
| `Super+Shift+Tab` | Previous workspace |
| `F7` | Toggle display mode (laptop-off/side-by-side) |
+| `Super+z` then `w` | Display QR for clipboard (wqr) |
+| `Super+z` then `r` | Scan QR via webcam, copy to clipboard (rqr) |
diff --git a/dot_config/sway/config b/dot_config/sway/config
index 405b7b4..f802a30 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -146,6 +146,15 @@ bindsym $mod+Shift+n exec makoctl dismiss --all
# Display mode switching
bindsym --no-repeat F7 exec ~/.config/sway/display-toggle.sh
+# QR codes (Super+z then r=read or w=write)
+mode "qr" {
+ bindsym r exec ~/.local/bin/rqr, mode "default"
+ bindsym w exec ~/.local/bin/wqr, mode "default"
+ bindsym Escape mode "default"
+ bindsym Return mode "default"
+}
+bindsym $mod+z mode "qr"
+
# ── Bar ───────────────────────────────────────────────────────────────────────
bar {
swaybar_command waybar