3

I want to create a keyboard shortcut that, when pressed, writes ¯\_(ツ)_/¯

I use Linux Mint Cinnamon.

4
  • Well now this sucks XD
    – user334374
    Jan 31, 2019 at 3:42
  • You may use compose key. For example yakim.org.ua/en/workstations/147-compose-en.html {from deleted answer, but may still be of use}. Nov 27, 2019 at 11:07
  • I think I had mistaken this question for what we have seen in Fedora (2016): Typing Emoji with Fedora 25 Workstation, which may support more than just emoji in recent years.
    – user125388
    Nov 28, 2019 at 17:14
  • Grace period note: Waiting for at least one more user to vote any of the answers below. With enough votes, I will leave it to the system to decide automatically. P.S.: I won't be voting myself.
    – user125388
    Nov 29, 2019 at 7:10

2 Answers 2

1

First, find the keyboard shortcuts menu. I don't have linux mint available, but according to this blog post it's a matter of going to Menu → Keyboard → Shortcuts: The keyboard menu Find 'Custom Shortcuts' in the left bar, and add one with the command xdotool type '¯\_(ツ)_/¯'. In 'Keyboard Bindings', bind it to a key (combination) of your choice.

Of course, there are many commands to produce a shrug output; in most cases (given you are running an X server) this'll work fine.

1
  • 1
    this does not seem to work for me in pop OS 21.04, unfortunately.
    – Kyle Baker
    Nov 21, 2021 at 23:31
1

You can use the xbindkeys utility, with a personal configuration file ~/.xbindkeysrc as:

"xvkbd -xsendevent -text '¯\_(ツ)_/¯'"
  control + shift + 3 # Key code, can change depending on your keyboard

To identify the key code you want to use you can do: xbindkeys -k and enter keys.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy