diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-05-02 18:33:51 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-05-02 18:33:51 -0400 |
| commit | 8e90c3d374bbd9da1a8e6d0056be8d4919df99f5 (patch) | |
| tree | e86d855da9241c57a57becd3b38160bc041a1b4b /modules/user/desktop/scripts | |
| parent | 4c469658f9a5d7b169a0267ef1849da7e42f2c87 (diff) | |
send notif on layout change
Diffstat (limited to 'modules/user/desktop/scripts')
| -rw-r--r-- | modules/user/desktop/scripts/switchkbdlayout.sh | 3 |
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)" |
