4 ms·
you can do that with xdotool if you want to paste the xbuffer. I suggest handling the shortcuts at the window manager level. this force ctrl-c to always do copy
by devereaux 8y ago
you can do that with xdotool if you want to paste the xbuffer. I suggest handling the shortcuts at the window manager level. this force ctrl-c to always do copy - even in the terminal, but nothing stty can't fix quickly - I use ctrl-x instead as it is close by.
end result, my ctrl c and ctrl v work as you would expect -- always!
- shmerl 8y agoThere is wl-copy / wl-paste if you are using Wayland compositor.
- devereaux 8y agoI'm using xorg but very interested in Wayland. My main "fear" with wayland is that my scripts to properly handle things like a uniform copy/paste will stop working Would you have some links? I am especially interested in ways to handle shortcuts like with autohotkey on Windows: a context dependent remap (ex: pressing a given physical key may send ctrl-tab in an application, but ctrl-pagedown in another if said other application doesn't support remapping shortcuts)
- shmerl 8y agoHandling shortcuts would be compositor specific. Unlike X, the display server part with Wayland is implemented by the compositors. Wayland itself is just the protocol. KWin for example allows setting various global shortcuts: https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/keys/index.html https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/keys/i... For wl-copy / wl-paste, see: https://github.com/bugaevc/wl-clipboard https://github.com/bugaevc/wl-clipboard
- devereaux 8y agoWould you recommend a given compositor to have something close to LXDE or any other minimal window manager in xorg? I'm thinking about starting with weston and moving to sway if it doesn't do the job
- shmerl 8y agoSway is probably an interesting option to try, if you want something minimalistic.