Skip to content

Instantly share code, notes, and snippets.

@helamonster
Last active October 10, 2022 17:30
Show Gist options
  • Save helamonster/5e3742a45ef6a1fe1aa3abe234a935cc to your computer and use it in GitHub Desktop.
Save helamonster/5e3742a45ef6a1fe1aa3abe234a935cc to your computer and use it in GitHub Desktop.
Key bindings for chromeos / chromebook to allow X clipboard copy and pasting
# Key bindings for chromeos / chromebook to allow X clipboard copy and pasting
#
# Keys:
# Copy: Shift + Search + C
# Paste: Shift + Search + V
#
# Use xbindkeys, xsel, and xdotool
#
# sudo apt-get install xbindkeys xsel xdotool
#
# Save the following in ~/.xbindkeysrc and then set up xbindkeys daemon (just run xbindkeys to start it):
# Chromebook 'copy' for X windows apps: Search + Shift + C
# Copy
"xsel | xclip -in -selection clipboard"
m:0x51 + c:54
Shift+Mod2+Mod4 + c
# Chromebook 'paste' for X windows apps: Search + Shift + V
# Paste
"sleep 1 ; xdotool type $(xclip -out -selection clipboard)"
m:0x51 + c:55
Shift+Mod2+Mod4 + v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment