aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:14 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:14 +0100
commitd4bdb4c9489d7ec3f0144ce0934ae38fe446aebe (patch)
tree698514bf15ad8523f371ca7c7d4fa2d93fef029a
parent6e6dcf952c1811735c8afa6f298e9ae291d51604 (diff)
downloaddotfiles-d4bdb4c9489d7ec3f0144ce0934ae38fe446aebe.tar.gz
dotfiles-d4bdb4c9489d7ec3f0144ce0934ae38fe446aebe.tar.bz2
dotfiles-d4bdb4c9489d7ec3f0144ce0934ae38fe446aebe.zip
feat(sway): add Super+z QR mode (w=write, r=read)
-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