Two small X.org utilities

I know there are people who not necessarily know about these, and they sure as hell make life easier.

First, there's the issue of the two clipboards existing. One primary, which saves everything you mark (not dependant on X), and the other, often used by GTK+ and others, where you copy and paste text using more widely used methods, mod+c and mod+p. I've noticed that if you try to paste text you marked, then mod-copied, and then try pasting it by usign the normal middle-click, it won't paste, because the ctrl-c actually overrides. Atleast, that's what frequently happen in my experience.

In comes autocutsel to the rescue. This small utility can merge the two clipboards, so however you choose to copy and paste, it handles the same text. Install it through your favourite package manager. Place the following in ~/.xinitrc or similar:

autocutsel -selection PRIMARY -fork
autocutsel -selection CLIPBOARD -fork

The other one, which is not new, innovative or anything like that, is just as useful. Personally, I loathe the caps lock key. I don't need it, I don't want it, and I'm sure there are other ways to use it. Right now I have it mapped as another ctrl. Place the following in ~/.xinitrc (no install necessary):

setxkbmap ctrl:nocaps

CAPS IS CRUISE CONTROL FOR COOL

Hope this helps atleast someone! Cheers!

Comments

hey thank you for sharing

hey thank you for sharing the info
very nice and helpful
thanks:)

whoa, I can get rid of klipper?

autocutsel looks like just what I need.

thanks for autocutsel! I was

thanks for autocutsel! I was looking for this feature!

Very useful. Thanks!

Very useful. Thanks!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.