[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to customize keys under X?



On Mon, Sep 23, 2013 at 7:28 AM, Zenaan Harkness <zen@freedbms.net> wrote:
>>>> I'd like to customize keys in Debian.  I want to set f2/f3/f4/f8 to
>>>> cut/copy/paste/switch-applications.  For switching applications, I tried
>>>> setting f8 in Settings -> Keyboard -> Shortcuts -> Navigation, but it
>>>> didn't help; neither Alt+Tab nor f8 worked after that change.
>>>
>>> Gnome3 I can't help you sorry.
>>>
>>>> I searched the web and found IronAHK.  I haven't tried it, but it is
>>>> unmaintained.  Relying on unmaintained softwares isn't a good idea.  I
>>>> also found (and tried) xbindkeys and xdotool, but I can't get them to
>>>> work.
>>>
>>> xdotool I use to have a keyboard key provide a mouse click for me.
>>> Very useful. Probably would not work to switch applications. May be
>>> Gnome3 is the problem for you? I don't know sorry.
>>
>> Would you please share how to do cut/copy/paste by xdotool (if you
>> know)?  Thank you.
>
> All I do is select text using normal mouse, then move mouse to where I
> want to paste, then I can middle click, or use my keyboard xdotool
> assignment to "click the middle mouse" where I just placed the cursor.
> Sometimes this is more efficient that clicking actual mouse button for
> paste.

Thanks for your information.  But AFAIK you are using "primary
selection".  The primary selection is separate from the clipboard.  Its
contents are more “fragile”; they are overwritten each time you select
text with the mouse, whereas the clipboard is only overwritten by
explicit “cut” or “copy” commands.  What I want is making use of the
"clipboard" for cutting, copying, and pasting, i.e., the job done by
Ctrl+x, Ctrl+c, and Ctrl+v usually.

-- 
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/


Reply to: