Skip to content

Instantly share code, notes, and snippets.

@davidosomething
Last active August 29, 2015 14:08
Show Gist options
  • Save davidosomething/30a7c2838d6c34f906a0 to your computer and use it in GitHub Desktop.
Save davidosomething/30a7c2838d6c34f906a0 to your computer and use it in GitHub Desktop.
OSX style Super-c copy, Super-v paste in OpenBox
<!-- requires xsel, xvkbd, and xdotool -->
<!-- OSX style copy Super-c -->
<keybind key="W-c">
<action name="Execute">
<command>xdotool key XF86Copy</command>
</action>
</keybind>
<!-- OSX style paste Super-v -->
<keybind key="W-v">
<action name="Execute">
<command>sh -c 'xsel | xvkbd -xsendevent -file -'</command>
</action>
</keybind>
@davidosomething
Copy link
Author

alternatively, paste via middle click

    <!-- OSX style paste Super-v via middle-click-->
    <keybind key="W-v">
      <action name="Execute">
        <command>xdotool getwindowfocus key --window %1 click 2</command>
      </action>
    </keybind>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment