From c963021a5834f08e38c8bc98a8e03870f811ea55 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 May 2024 17:24:48 -0700 Subject: [PATCH] Use xcompose to configure easy emojis with modifier key --- configs/xcompose | 1 + defaults/xcompose | 19 +++++++++++++++++++ install/emojis.sh | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 configs/xcompose create mode 100644 defaults/xcompose create mode 100644 install/emojis.sh diff --git a/configs/xcompose b/configs/xcompose new file mode 100644 index 0000000..8bdb211 --- /dev/null +++ b/configs/xcompose @@ -0,0 +1 @@ +include "%H/.local/share/omakub/defaults/xcompose" diff --git a/defaults/xcompose b/defaults/xcompose new file mode 100644 index 0000000..f48e043 --- /dev/null +++ b/defaults/xcompose @@ -0,0 +1,19 @@ +include "%L" + + : "😀" # smile + : "😂" # cry + : "😍" # love + : "✌️" # victory + : "♥️" # heart + : "👍" # yes + : "👎" # no + : "🖕" # fuck + : "🤞" # wish + : "🤘" # rock + : "😘" # kiss + : "🙄" # eyeroll + : "🤤" # droll + : "💰" # money + : "🎉" # xellebrate + <1> : "💯" # 100% + : "🥂" # toast diff --git a/install/emojis.sh b/install/emojis.sh new file mode 100644 index 0000000..dace5cb --- /dev/null +++ b/install/emojis.sh @@ -0,0 +1,4 @@ +if [ ! -f "~/.XCompose" ]; then + cp ~/.local/share/omakub/configs/xcompose ~/.XCompose + gsettings set org.gnome.desktop.input-sources xkb-options ['compose:caps'] +fi