aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/scripts
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-05-02 18:33:51 -0400
committerRosa <rosaontheweb@proton.me>2026-05-02 18:33:51 -0400
commit8e90c3d374bbd9da1a8e6d0056be8d4919df99f5 (patch)
treee86d855da9241c57a57becd3b38160bc041a1b4b /modules/user/desktop/scripts
parent4c469658f9a5d7b169a0267ef1849da7e42f2c87 (diff)
send notif on layout change
Diffstat (limited to 'modules/user/desktop/scripts')
-rw-r--r--modules/user/desktop/scripts/switchkbdlayout.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/desktop/scripts/switchkbdlayout.sh b/modules/user/desktop/scripts/switchkbdlayout.sh
new file mode 100644
index 0000000..964ee8e
--- /dev/null
+++ b/modules/user/desktop/scripts/switchkbdlayout.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+# Just sends a notification when switching keyboard layout.
+swaymsg input 'type:keyboard' xkb_switch_layout next && notify-send -eu low -t 3000 "Switched keyboard layout" "$(swaymsg -rt get_inputs | jq -r '.[] | select(.type == "keyboard").xkb_active_layout_name' | head -n1)"