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

I use Linux Mint Cinnamon.

  • Well now this sucks XD
    – user334374
    Commented 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}. Commented 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
    Commented 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
    Commented Nov 29, 2019 at 7:10

2 Answers 2


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
    this does not seem to work for me in pop OS 21.04, unfortunately.
    – Kyle Baker
    Commented Nov 21, 2021 at 23:31

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.

You must log in to answer this question.