Adding compose key rules from the clipboard

I wrote a small Bash (plus Python) script for adding my current clipboard contents to my compose key . It’s made for my combination of GNOME + Wayland + XCompose + ibus, so you may have to tweak it. But here’s the idea: #!/usr/bin/env bash symbol = $( wl-paste ) code = $( zenity --entry --title = "Adding compose rule from clipboard" --text = "Which keys should make ' $symbol '?" ) if [[ -z " $code…