Created
February 2, 2016 00:20
-
-
Save zekesonxx/3cdb5b1a69a17bc1e1a6 to your computer and use it in GitHub Desktop.
07:11:24 PM <mjec> I want to bind a key or key-combo to type "¯\_(ツ)_/¯"; using i3. Any thoughts on best way to do this? xmodmap? some script + shortcut key in i3 conf?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copyright Zeke Sonxx 2016 <github.com/zekesonxx> | |
# license MIT | |
SHRUG="¯\_(ツ)_/¯" | |
TMPFILE=`mktemp` | |
xclip -o > $TMPFILE | |
echo $SHRUG | xclip -selection clipboard | |
xdotool key Ctrl+V | |
cat $TMPFILE | xclip -selection clipboard | |
rm $TMPFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This ended up not working when triggered from i3; it's not clear why. However,
xdotool
was the solution. I ended up with the following in my i3config:Thanks for pointing me in the right direction!