Tag Info

New answers tagged

1

The reason it happens that way is that the program says "write this data" and the linux kernel copies it into a memory buffer that is queued to go to disk, and then says "ok, done". So the program thinks it has copied everything. Then the program closes the file, but suddenly the kernel makes it wait while that buffer is pushed out to disk. So, ...


1

Here is a solution that works without any pains. Install sendkeys script from here: https://github.com/kyoto/sendkeys For your case just do this: oathtool --totp some-seed | xargs sendkeys.sh 'Firefox' This will send the output of oathtool to the open Firefox window. The script searches for windows according to its title. So, if you, let's say, want ...


0

Try highlighting text in gnome-terminal and pressing ctrl+shift+c to copy it. Similarly, pressing ctrl+shift+v should paste text into gnome-terminal.


1

I have a special keybinding to copy screen selection to X selection using xsel: bind b eval writebuf 'exec /bin/sh -c " xsel -i < /tmp/screen-exchange"' 'exec /bin/sh -c "killall xsel"' I copied from somewhere but I don't remember from where now.


1

You can use xsel to get the buffer into your displays clipboard as described here on stackoverflow: The steps on Linux with xsel are as follows: Copy text from your screen session into GNU screen's copy buffer. Run this command within screen: cat | xsel -b If xsel didn't report any error, now dump screen's copy buffer to STDIN: Ctrl+a+] ...


0

I recommend to select rectangular block interactively. Hold Ctrl + click left mouse button at upper left corner of copied block and then (still holding) move cursor to lower right corner. Your rectangular block should be copied. You can paste it with middle mouse button wherever you like.


2

All the apps you've mentioned are gtk+ apps so it's quite easy to answer Why... Because in all gtk+ apps (except one), Shift+Insert pastes from CLIPBOARD - i.e. it's equivalent to Ctrl+V. The shortcut is hardcoded in gtkentry.c (line 2022) and gtktextview.c (line 1506): gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK, ...


2

You can select a column of text in konsole by holding Ctrl + Alt while selecting with the mouse.



Top 50 recent answers are included