You are not logged in.
Pages: 1
Topic closed
Having moved to wmii, I'm now trying to make cut'n'paste between apps work properly. Most things seem to work fine, but some programs (firefox in particular) refuse to paste selections from, say, a terminal or mutt. I googled around a bit, and apparently FF uses a different "kind" of clipboard mechanism; the autocutsel program was recommended as a fix. I'm running it via my xinitrc, but it doesn't seem to help; I'm not sure if I'm invoking it incorrectly, or what. What do other wmii (or ion3, or what have you) users use to make cut'n'paste work reliably? I do know there is wmiipsel, which prints out the current X clip buffer; perhaps making special keybindings using this would work?
-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/
Offline
I was having the same question, though I solved it with autocutsel, the solution is both helpfull and annoying because now whenever i select a text anywhere (even in firefox), it became the copied text (overwride what was there)
The idea is to sync both PRIMARY and CLIPBOARD
if [ -x /usr/bin/autocutsel ]; then
#this will keep the clipboard in sync
# with the primary buffer
autocutsel -selection CLIPBOARD -fork#this will keep the primary in sync
# with the clipboard buffer
autocutsel -selection PRIMARY -fork
fi
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Zoop! Yeah, I was just misusing autocutsel; thanks a bunch!
-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/
Offline
I was having the same question, though I solved it with autocutsel, the solution is both helpfull and annoying because now whenever i select a text anywhere (even in firefox), it became the copied text (overwride what was there)
I agree. You get used to it, but the problem I have is in situations like: select URL posted on IRC, switch to firefox window, hit C-l to go to URL bar.... whoops, it just selected the text and overrode your clipboard... hit delete/backspace, go back to IRC, reselect URL, back to firefox and paste....
The idea is to sync both PRIMARY and CLIPBOARD
Yes, but this also goofs things up a bit. It would be best if you could just make middle click paste from CLIPBOARD and sync the PRIMARY selection with CLIPBOARD.
Offline
I agree. You get used to it, but the problem I have is in situations like: select URL posted on IRC, switch to firefox window, hit C-l to go to URL bar.... whoops, it just selected the text and overrode your clipboard... hit delete/backspace, go back to IRC, reselect URL, back to firefox and paste....
Exactly and it's very annoying :s
Yes, but this also goofs things up a bit. It would be best if you could just make middle click paste from CLIPBOARD and sync the PRIMARY selection with CLIPBOARD.
How to do that? i mean is it possible to assign it to another key? coz since I'm on a laptop, middle click is Right + Left at the same time and it's kinda a bit annoying to be done...
Thx phrak
[My Blog] | [My Repo] | [My AUR Packages]
Offline
How to do that? i mean is it possible to assign it to another key? coz since I'm on a laptop, middle click is Right + Left at the same time and it's kinda a bit annoying to be done...
Yeah, that's why I use a USB mouse on my laptop - I hate touchpads...
Still, there's no way to rebind the middle click to use CLIPBOARD.
I've debated writing a global clipboard handler to do this sort of thing. Bind global "copy" and "paste" keys to a small app to do the actual work. If I understand the ICCCM correctly, it should be do-able with very little effort. I just need the time to do it. I imagine:
global bind "C-c" "copypaste --copy"
global bind "C-v" "copypaste --paste"
Offline
Well that would be cool phrak, meanwhile i'll search a bit maybe someone already did that...
thx
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Well that would be cool phrak, meanwhile i'll search a bit maybe someone already did that...
thx
xclip is the closest, and you have to use like
xclip -s PRIMARY -o | xclip -s CLIPBOARD
to do that, but there is no "paste"
Offline
discussion on wmii mailing list
@phrak if there's no paste what we can do with it? you mean bind it to some key to sync one of the directions ??
[My Blog] | [My Repo] | [My AUR Packages]
Offline
There should be The Arch Way to solve these copy/paste problems ... anyone? 8)
Offline
@jonaspf,
thanks for posting your solution. But we forbid bumping old threads, especially, super old threads. Please open a thread under the "Community Contributions" section, if you would like, with a link to this thread.
https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing.
Note: On further consideration, I have moved the post to a thread of its own: https://bbs.archlinux.org/viewtopic.php?id=208229
Offline
Pages: 1
Topic closed