Last active
October 10, 2022 17:30
-
-
Save helamonster/5e3742a45ef6a1fe1aa3abe234a935cc to your computer and use it in GitHub Desktop.
Key bindings for chromeos / chromebook to allow X clipboard copy and pasting
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
# 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