Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 How to make custom shorcut hotkey? #11

Open
amdid0 opened this issue May 12, 2024 · 1 comment
Open

💡 How to make custom shorcut hotkey? #11

amdid0 opened this issue May 12, 2024 · 1 comment

Comments

@amdid0
Copy link

amdid0 commented May 12, 2024

Describe the feature

The readme says that custom shortcuts can be customized. However, there are no instructions on how to do it. Can you teach me how to customize this and call up this awesome emoji mart with a keyboard shortcut?

An idea of implementation

No response

@vemonet
Copy link
Owner

vemonet commented Aug 22, 2024

Hi @amdid0 , I am not sure on which platform you are, but in the readme there is a expandable field to explain how to do this in gnome shell:

👣 More info on defining shortcuts in GNOME Shell here

Go to Settings > Keyboard > View and Customize Shortcuts > Custom Shortcuts

Or you can do it from the terminal, but you will need to adapt it if you already have existing custom shortcuts registered

# Check existing shortcuts list:
gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings

# Create shortcut 0 triggered with Super+E
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/]"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'Emoji Mart'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'flatpak run io.github.vemonet.EmojiMart'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding '<Super>e'

It will be different depending on the OS you use but a quick internet search / question to a LLM would solve this easily and will always provide an up-to-date solution. All you need then is to bind your shortcut to the command flatpak run io.github.vemonet.EmojiMart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants