Use xcompose to configure easy emojis with modifier key

This commit is contained in:
David Heinemeier Hansson 2024-05-28 17:24:48 -07:00
parent 16a0e1281a
commit c963021a58
3 changed files with 24 additions and 0 deletions

1
configs/xcompose Normal file
View File

@ -0,0 +1 @@
include "%H/.local/share/omakub/defaults/xcompose"

19
defaults/xcompose Normal file
View File

@ -0,0 +1,19 @@
include "%L"
<Multi_key> <m> <s> : "😀" # smile
<Multi_key> <m> <c> : "😂" # cry
<Multi_key> <m> <l> : "😍" # love
<Multi_key> <m> <v> : "✌️" # victory
<Multi_key> <m> <h> : "♥️" # heart
<Multi_key> <m> <y> : "👍" # yes
<Multi_key> <m> <n> : "👎" # no
<Multi_key> <m> <f> : "🖕" # fuck
<Multi_key> <m> <w> : "🤞" # wish
<Multi_key> <m> <r> : "🤘" # rock
<Multi_key> <m> <k> : "😘" # kiss
<Multi_key> <m> <e> : "🙄" # eyeroll
<Multi_key> <m> <d> : "🤤" # droll
<Multi_key> <m> <m> : "💰" # money
<Multi_key> <m> <x> : "🎉" # xellebrate
<Multi_key> <m> <1> : "💯" # 100%
<Multi_key> <m> <t> : "🥂" # toast

4
install/emojis.sh Normal file
View File

@ -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