#!/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)"