I use Debian, but I install with the minimal net installer so I can avoid installing Gnome! As mentioned many times here - I use a personally modified version of suckless dwm instead of a traditional desktop. And I hand-pick my software selection myself.
My terminal of choice is suckless st (aka stterm).
To select text in st, you can use the mouse and then
ctrl+shift+c
to copy (and it copies to the system clipboard) and then
ctrl+shift+v
to paste in the terminal. Or in another application, like a browser, or a text editor, you can use ctrl+v - or whatever other keybinds are bound to paste in your chosen application.
e.g.
"+p
for pasting from the clipboard in vim.
However, when using the terminal, I often use tmux.
For copy/pasting using the system clipboard in tmux, I use a plugin called tmux-yank:
Tmux plugin for copying to system clipboard. Works on OSX, Linux and Cygwin. - tmux-plugins/tmux-yank
github.com
Source that from your .tmux.conf file and you can use tmux's built in copy/paste functionality to copy/paste to/from the system clipboard.
To use tmux yank:
1. Enter tmux's text selection mode using
[leader combo]
and then pressing
[
NOTE: The default leader combo in tmux is
ctrl+b
, but I remap it to
ctrl+a
, so I press
Ctrl+a
and then
[
to get into text-select mode.
- Use vim or emacs style keybinds to navigate through the text onscreen (I use the vim style keybinds)
- Move to the start of the text you want to select and press space.
- Then move the cursor to the end of the text you want to yank
- Press
y
to yank the selected text to the clipboard.
To paste inside the terminal in tmux, use
[leader combo]
and then
]
.
And because tmux-yank copies to the system clipboard, you can paste the text into any other application via the system clipboard using
ctrl+v
, or whatever other keybind is bound to the paste action.
Pretty simple!