Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #207262 > unrolled thread

terminal with right-click = paste?

Started byLee <ler762@gmail.com>
First post2019-04-10 21:50 +0200
Last post2019-04-11 07:40 +0200
Articles 20 on this page of 26 — 8 participants

Back to article view | Back to linux.debian.user


Contents

  terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-10 21:50 +0200
    Re: terminal with right-click = paste? "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-04-10 22:00 +0200
      Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-10 22:40 +0200
        Re: terminal with right-click = paste? arne <sp113438@telfort.nl> - 2019-04-11 03:50 +0200
          Re: terminal with right-click = paste? arne <sp113438@telfort.nl> - 2019-04-11 04:10 +0200
          Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-11 06:30 +0200
        Re: terminal with right-click = paste? "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-04-11 06:30 +0200
    Re: terminal with right-click = paste? Dan Ritter <dsr@randomstring.org> - 2019-04-10 22:10 +0200
      Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-10 23:00 +0200
        Re: terminal with right-click = paste? Dan Ritter <dsr@randomstring.org> - 2019-04-10 23:00 +0200
          Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-10 23:30 +0200
            Re: terminal with right-click = paste? Dan Ritter <dsr@randomstring.org> - 2019-04-11 00:40 +0200
              Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-11 00:50 +0200
            Re: terminal with right-click = paste? David Wright <deblis@lionunicorn.co.uk> - 2019-04-11 04:00 +0200
              Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-11 07:30 +0200
                Re: terminal with right-click = paste? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-04-11 14:20 +0200
                  Re: terminal with right-click = paste? Vincent Lefevre <vincent@vinc17.net> - 2019-04-15 13:00 +0200
                  Re: terminal with right-click = paste? Vincent Lefevre <vincent@vinc17.net> - 2019-04-15 13:00 +0200
                Re: terminal with right-click = paste? David Wright <deblis@lionunicorn.co.uk> - 2019-04-11 17:00 +0200
    Re: terminal with right-click = paste? Peter Wiersig <peter@friesenpeter.de> - 2019-04-10 22:20 +0200
      Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-10 23:10 +0200
        Re: terminal with right-click = paste? Dan Ritter <dsr@randomstring.org> - 2019-04-11 00:40 +0200
          Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-11 02:20 +0200
            Re: terminal with right-click = paste? Peter Wiersig <peter@friesenpeter.de> - 2019-04-11 07:30 +0200
              Re: terminal with right-click = paste? Lee <ler762@gmail.com> - 2019-04-11 08:40 +0200
        Re: terminal with right-click = paste? Peter Wiersig <peter@friesenpeter.de> - 2019-04-11 07:40 +0200

Page 1 of 2  [1] 2  Next page →


#207262 — terminal with right-click = paste?

FromLee <ler762@gmail.com>
Date2019-04-10 21:50 +0200
Subjectterminal with right-click = paste?
Message-ID<xLrol-5y7-5@gated-at.bofh.it>
I installed the xfce version of debian 9 & have a terminal icon on the
menu bar that starts xfce4-terminal

Is there some way to configure xfce4-terminal so that a right mouse
click pastes text?
What I have now is right-click brings up a menu where I have to left
click on paste.  ick.

How do I find out what other terminal programs are already installed
that I can try?

What terminal programs are available that have a 'right click pastes
text' option _and_ has a scroll bar that is
1. easily visible
2. goes up/down a page at a time when left-clicking above/below the scroll bar
3. has up/down buttons on the scroll bar that scrolls a line at a time
when clicking on the button

Thanks
Lee

[toc] | [next] | [standalone]


#207263

From"Alexander V. Makartsev" <avbetev@gmail.com>
Date2019-04-10 22:00 +0200
Message-ID<xLry2-5By-3@gated-at.bofh.it>
In reply to#207262

[Multipart message — attachments visible in raw view] — view raw

On 11.04.2019 0:41, Lee wrote:
> I installed the xfce version of debian 9 & have a terminal icon on the
> menu bar that starts xfce4-terminal
>
> Is there some way to configure xfce4-terminal so that a right mouse
> click pastes text?
> What I have now is right-click brings up a menu where I have to left
> click on paste.  ick.
>
> How do I find out what other terminal programs are already installed
> that I can try?
>
> What terminal programs are available that have a 'right click pastes
> text' option _and_ has a scroll bar that is
> 1. easily visible
> 2. goes up/down a page at a time when left-clicking above/below the scroll bar
> 3. has up/down buttons on the scroll bar that scrolls a line at a time
> when clicking on the button
>
> Thanks
> Lee
>
Try keyboard shortcuts instead.
Shift+Ctrl+V - Paste
It's more convenient IMO, you won't move your hands away from keyboard
and simply continue typing after paste.


-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

[toc] | [prev] | [next] | [standalone]


#207266

FromLee <ler762@gmail.com>
Date2019-04-10 22:40 +0200
Message-ID<xLsaJ-65c-21@gated-at.bofh.it>
In reply to#207263
On 4/10/19, Alexander V. Makartsev <avbetev@gmail.com> wrote:
> On 11.04.2019 0:41, Lee wrote:
>> I installed the xfce version of debian 9 & have a terminal icon on the
>> menu bar that starts xfce4-terminal
>>
>> Is there some way to configure xfce4-terminal so that a right mouse
>> click pastes text?
>> What I have now is right-click brings up a menu where I have to left
>> click on paste.  ick.
>>
>> How do I find out what other terminal programs are already installed
>> that I can try?
>>
>> What terminal programs are available that have a 'right click pastes
>> text' option _and_ has a scroll bar that is
>> 1. easily visible
>> 2. goes up/down a page at a time when left-clicking above/below the scroll
>> bar
>> 3. has up/down buttons on the scroll bar that scrolls a line at a time
>> when clicking on the button
>>
>> Thanks
>> Lee
>>
> Try keyboard shortcuts instead.
> Shift+Ctrl+V - Paste
> It's more convenient IMO, you won't move your hands away from keyboard
> and simply continue typing after paste.

But how do you get something into the paste buffer without using the mouse?

Left double-click to select a "word" & right click to paste is pretty
much automatic for me now - which is why I'm looking for a xfce4
terminal replacement

Thanks anyway tho
Lee

[toc] | [prev] | [next] | [standalone]


#207284

Fromarne <sp113438@telfort.nl>
Date2019-04-11 03:50 +0200
Message-ID<xLx0J-yL-1@gated-at.bofh.it>
In reply to#207266
On Wed, 10 Apr 2019 16:37:15 -0400
Lee <ler762@gmail.com> wrote:

> On 4/10/19, Alexander V. Makartsev <avbetev@gmail.com> wrote:
> > On 11.04.2019 0:41, Lee wrote:  
>  [...]  
>  [...]  
> 
> But how do you get something into the paste buffer without using the
> mouse?
> 
> Left double-click to select a "word" & right click to paste is pretty
> much automatic for me now - which is why I'm looking for a xfce4
> terminal replacement
> 

I fell in love with terminator

sudo apt install terminator

double left button click = copy

middle button click = paste 
(when no middle button available, I think xorg has the possibility to workaround with left and right
button simultaneous)

right button click = options

on fluxbox it works like a charme

[toc] | [prev] | [next] | [standalone]


#207286

Fromarne <sp113438@telfort.nl>
Date2019-04-11 04:10 +0200
Message-ID<xLxk6-UO-1@gated-at.bofh.it>
In reply to#207284
On Thu, 11 Apr 2019 03:27:44 +0200
arne <sp113438@telfort.nl> wrote:

> On Wed, 10 Apr 2019 16:37:15 -0400
> Lee <ler762@gmail.com> wrote:
> 
> > On 4/10/19, Alexander V. Makartsev <avbetev@gmail.com> wrote:  
> > > On 11.04.2019 0:41, Lee wrote:    
> >  [...]  
> >  [...]  
> > 
> > But how do you get something into the paste buffer without using the
> > mouse?
> > 
> > Left double-click to select a "word" & right click to paste is
> > pretty much automatic for me now - which is why I'm looking for a
> > xfce4 terminal replacement
> >   
> 
> I fell in love with terminator
> 
> sudo apt install terminator
> 
> double left button click = copy
> 
> middle button click = paste 
> (when no middle button available, I think xorg has the possibility to
> workaround with left and right button simultaneous)
> 
> right button click = options
> 
> on fluxbox it works like a charme

and when you right click, choose Preferences, puTTY style paste, you
will have your right click paste.

Shift middle click gives you Preferences then.

Thanks for pointing out, I hate middle button clicks!

I will investigate for the swap in X.

[toc] | [prev] | [next] | [standalone]


#207292

FromLee <ler762@gmail.com>
Date2019-04-11 06:30 +0200
Message-ID<xLzvA-2hG-5@gated-at.bofh.it>
In reply to#207284
On 4/10/19, arne wrote:
> On Wed, 10 Apr 2019 16:37:15 -0400
> Lee wrote:
>
>> On 4/10/19, Alexander V. Makartsev wrote:
>> > On 11.04.2019 0:41, Lee wrote:
>>  [...]
>>  [...]
>>
>> But how do you get something into the paste buffer without using the
>> mouse?
>>
>> Left double-click to select a "word" & right click to paste is pretty
>> much automatic for me now - which is why I'm looking for a xfce4
>> terminal replacement
>>
>
> I fell in love with terminator
>
> sudo apt install terminator
>
> double left button click = copy
>
> middle button click = paste
> (when no middle button available, I think xorg has the possibility to
> workaround with left and right
> button simultaneous)
>
> right button click = options
>
> on fluxbox it works like a charme

That looks interesting - thanks for the link

Lee

[toc] | [prev] | [next] | [standalone]


#207291

From"Alexander V. Makartsev" <avbetev@gmail.com>
Date2019-04-11 06:30 +0200
Message-ID<xLzvA-2hG-3@gated-at.bofh.it>
In reply to#207266

[Multipart message — attachments visible in raw view] — view raw

On 11.04.2019 1:37, Lee wrote:
> On 4/10/19, Alexander V. Makartsev <avbetev@gmail.com> wrote:
>> On 11.04.2019 0:41, Lee wrote:
>>> I installed the xfce version of debian 9 & have a terminal icon on the
>>> menu bar that starts xfce4-terminal
>>>
>>> Is there some way to configure xfce4-terminal so that a right mouse
>>> click pastes text?
>>> What I have now is right-click brings up a menu where I have to left
>>> click on paste.  ick.
>>>
>>> How do I find out what other terminal programs are already installed
>>> that I can try?
>>>
>>> What terminal programs are available that have a 'right click pastes
>>> text' option _and_ has a scroll bar that is
>>> 1. easily visible
>>> 2. goes up/down a page at a time when left-clicking above/below the scroll
>>> bar
>>> 3. has up/down buttons on the scroll bar that scrolls a line at a time
>>> when clicking on the button
>>>
>>> Thanks
>>> Lee
>>>
>> Try keyboard shortcuts instead.
>> Shift+Ctrl+V - Paste
>> It's more convenient IMO, you won't move your hands away from keyboard
>> and simply continue typing after paste.
> But how do you get something into the paste buffer without using the mouse?
That depends of course. I use 'vim' to edit files and 'tmux' [1], so
most of the time I copy text from terminal (from opened man pages,
sample config files, output of another command in another terminal
section, ssh sessions, etc) using keyboard shortcuts.
These programs encourage you (and make it possible) to use more of a
keyboard and much less of a mouse.
> Left double-click to select a "word" & right click to paste is pretty
> much automatic for me now - which is why I'm looking for a xfce4
> terminal replacement
>
> Thanks anyway tho
> Lee
>

[1] https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/

-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

[toc] | [prev] | [next] | [standalone]


#207264

FromDan Ritter <dsr@randomstring.org>
Date2019-04-10 22:10 +0200
Message-ID<xLrHI-5UM-7@gated-at.bofh.it>
In reply to#207262
Lee wrote: 
> I installed the xfce version of debian 9 & have a terminal icon on the
> menu bar that starts xfce4-terminal
> 
> Is there some way to configure xfce4-terminal so that a right mouse
> click pastes text?
> What I have now is right-click brings up a menu where I have to left
> click on paste.  ick.

Middle button is probably set to paste right now. If you have a
wheel, it's probably set to to click in as the middle button.
Otherwise, left+right together may be middle button.

Finally, you can put this in your .Xresources:

XTerm*VT100.Translations: \
        #override BackSpace: string(0x08) \n\
                  Delete:    string(0x1b) string("[3~") \n\
                  ~Shift ~Ctrl ~Meta :
insert-selection(PRIMARY,CUT_BUFFER0) \n\
                  ~Ctrl ~Meta :  ignore() \n\
                  ~Shift ~Ctrl ~Meta :
insert-selection(PRIMARY,CUT_BUFFER0) \n\
                  :  select-end(PRIMARY,CLIPBOARD,CUT_BUFFER0)

and run actual xterm.

> How do I find out what other terminal programs are already 

installed
> that I can try?

dpkg --get-selections|grep term
is close but not definitive

-dsr-

[toc] | [prev] | [next] | [standalone]


#207268

FromLee <ler762@gmail.com>
Date2019-04-10 23:00 +0200
Message-ID<xLsu6-6dk-5@gated-at.bofh.it>
In reply to#207264
On 4/10/19, Dan Ritter <dsr@randomstring.org> wrote:
> Lee wrote:
>> I installed the xfce version of debian 9 & have a terminal icon on the
>> menu bar that starts xfce4-terminal
>>
>> Is there some way to configure xfce4-terminal so that a right mouse
>> click pastes text?
>> What I have now is right-click brings up a menu where I have to left
>> click on paste.  ick.
>
> Middle button is probably set to paste right now.

It is!!  So how do I change that setting so that right click is set to paste?

> If you have a
> wheel, it's probably set to to click in as the middle button.
> Otherwise, left+right together may be middle button.
>
> Finally, you can put this in your .Xresources:
>
> XTerm*VT100.Translations: \
>         #override BackSpace: string(0x08) \n\
>                   Delete:    string(0x1b) string("[3~") \n\
>                   ~Shift ~Ctrl ~Meta :
> insert-selection(PRIMARY,CUT_BUFFER0) \n\
>                   ~Ctrl ~Meta :  ignore() \n\
>                   ~Shift ~Ctrl ~Meta :
> insert-selection(PRIMARY,CUT_BUFFER0) \n\
>                   :  select-end(PRIMARY,CLIPBOARD,CUT_BUFFER0)
>
> and run actual xterm.

Is there anything in your XTerm*VT100.Translations that means 'right
mouse button'?
If I do go with xterm I'll read up on .Xresources, but in the mean
time I'm not seeing anything in your snippet that even remotely looks
like 'mouse button'

>> How do I find out what other terminal programs are already installed
>> that I can try?
>
> dpkg --get-selections|grep term
> is close but not definitive

looks like xterm is my only other already installed option
$ dpkg --get-selections | grep term
ncurses-term                                    install
xfce4-terminal                                  install
xterm                                           install

Thanks
Lee

[toc] | [prev] | [next] | [standalone]


#207269

FromDan Ritter <dsr@randomstring.org>
Date2019-04-10 23:00 +0200
Message-ID<xLsu6-6dk-9@gated-at.bofh.it>
In reply to#207268
Lee wrote: 
> On 4/10/19, Dan Ritter <dsr@randomstring.org> wrote:
> > Lee wrote:
> >> I installed the xfce version of debian 9 & have a terminal icon on the
> >> menu bar that starts xfce4-terminal
> >>
> >> Is there some way to configure xfce4-terminal so that a right mouse
> >> click pastes text?
> >> What I have now is right-click brings up a menu where I have to left
> >> click on paste.  ick.
> >
> > Middle button is probably set to paste right now.
> 
> It is!!  So how do I change that setting so that right click is set to paste?

You don't! The programmers didn't include that.

You can change your button mapping for all of X with xmodmap.

-dsr-

[toc] | [prev] | [next] | [standalone]


#207272

FromLee <ler762@gmail.com>
Date2019-04-10 23:30 +0200
Message-ID<xLsX7-6DK-5@gated-at.bofh.it>
In reply to#207269
On 4/10/19, Dan Ritter <dsr@randomstring.org> wrote:
> Lee wrote:
>> On 4/10/19, Dan Ritter <dsr@randomstring.org> wrote:
>> > Lee wrote:
>> >> I installed the xfce version of debian 9 & have a terminal icon on the
>> >> menu bar that starts xfce4-terminal
>> >>
>> >> Is there some way to configure xfce4-terminal so that a right mouse
>> >> click pastes text?
>> >> What I have now is right-click brings up a menu where I have to left
>> >> click on paste.  ick.
>> >
>> > Middle button is probably set to paste right now.
>>
>> It is!!  So how do I change that setting so that right click is set to
>> paste?
>
> You don't! The programmers didn't include that.

wow.  just.. wow.  I wonder if that omission has anything to do with
the xterm popcon graph showing about 100K users & xfce4-terminal
about 28K

> You can change your button mapping for all of X with xmodmap.

but then everywhere I expect a right click to pull up a menu won't - correct?

Oh well... I'll give xterm a try.

Thanks
Lee

[toc] | [prev] | [next] | [standalone]


#207275

FromDan Ritter <dsr@randomstring.org>
Date2019-04-11 00:40 +0200
Message-ID<xLu2R-7fZ-3@gated-at.bofh.it>
In reply to#207272
Lee wrote: 
> > You don't! The programmers didn't include that.
> 
> wow.  just.. wow.  I wonder if that omission has anything to do with
> the xterm popcon graph showing about 100K users & xfce4-terminal
> about 28K

Probably more to do with the fact that xterm comes as a default
with all X11 installations.

> > You can change your button mapping for all of X with xmodmap.
> 
> but then everywhere I expect a right click to pull up a menu won't - correct?

Correct. If you swap your middle button with your right button,
they will be consistently swapped.

-dsr- 

[toc] | [prev] | [next] | [standalone]


#207278

FromLee <ler762@gmail.com>
Date2019-04-11 00:50 +0200
Message-ID<xLucx-7jH-7@gated-at.bofh.it>
In reply to#207275
On 4/10/19, Dan Ritter wrote:
> Lee wrote:
>> > You don't! The programmers didn't include that.
>>
>> wow.  just.. wow.  I wonder if that omission has anything to do with
>> the xterm popcon graph showing about 100K users & xfce4-terminal
>> about 28K
>
> Probably more to do with the fact that xterm comes as a default
> with all X11 installations.
>
>> > You can change your button mapping for all of X with xmodmap.
>>
>> but then everywhere I expect a right click to pull up a menu won't -
>> correct?
>
> Correct. If you swap your middle button with your right button,
> they will be consistently swapped.

Thanks for saving me the trouble of figuring out how to swap mouse
buttons & testing.  Having to press the mouse wheel button to pull up
a menu is a non-starter.

Lee

[toc] | [prev] | [next] | [standalone]


#207285

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-04-11 04:00 +0200
Message-ID<xLxap-Ce-1@gated-at.bofh.it>
In reply to#207272
On Wed 10 Apr 2019 at 17:21:06 (-0400), Lee wrote:
> On 4/10/19, Dan Ritter <dsr@randomstring.org> wrote:
> > Lee wrote:
> >> On 4/10/19, Dan Ritter <dsr@randomstring.org> wrote:
> >> > Lee wrote:
> >> >> I installed the xfce version of debian 9 & have a terminal icon on the
> >> >> menu bar that starts xfce4-terminal
> >> >>
> >> >> Is there some way to configure xfce4-terminal so that a right mouse
> >> >> click pastes text?
> >> >> What I have now is right-click brings up a menu where I have to left
> >> >> click on paste.  ick.
> >> >
> >> > Middle button is probably set to paste right now.
> >>
> >> It is!!  So how do I change that setting so that right click is set to
> >> paste?
> >
> > You don't! The programmers didn't include that.
> 
> wow.  just.. wow.  I wonder if that omission has anything to do with
> the xterm popcon graph showing about 100K users & xfce4-terminal
> about 28K
> 
> > You can change your button mapping for all of X with xmodmap.
> 
> but then everywhere I expect a right click to pull up a menu won't - correct?
> 
> Oh well... I'll give xterm a try.

I have a mouse with a wheel, but pressing it (as opposed to scrolling
it) is very unreliable. I have changed the middle-click method from
pressing the wheel to the old-fashioned way of dealing with 2-button
mice: pressing both buttons at once.

AFAIK this change is at the level of X and doesn't depend on the term.
Here are the steps I used. You might need to tweak the filename
~/.xsession for a DE as I use just startx and fvwm. For setting stuff
automatically, you need to ascertain the name of your X startup file.

At the end of ~/.xsession I routinely put
xinput
which lists the devices in ~/.xsession-errors which I copy into my
configuration archive. But you can just type
$ xinput at any commandline in X:
⎡ Virtual core pointer			id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech M325			id=10	[slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad	id=14	[slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen			id=9	[slave  pointer  (2)]
⎣ Virtual core keyboard			id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard	id=5	[slave  keyboard (3)]
    ↳ Power Button			id=6	[slave  keyboard (3)]
    ↳ Video Bus				id=7	[slave  keyboard (3)]
    ↳ Power Button			id=8	[slave  keyboard (3)]
    ↳ Lenovo EasyCamera			id=11	[slave  keyboard (3)]
    ↳ Ideapad extra buttons		id=12	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard	id=13	[slave  keyboard (3)]
$ 

Having read that list, I add lines for devices that might interest me
in a similar way (in ~/.xsession-9-wren¹), and again you can type this
at a commandline:
$ xinput list-props "Logitech M325"
Device 'Logitech M325':
	Device Enabled (141):	1
	Coordinate Transformation Matrix (143):	0.300000, 0.000000, 0.000000, 0.000000, 0.300000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Accel Speed (281):	0.000000
	libinput Accel Speed Default (282):	0.000000
	libinput Accel Profiles Available (283):	1, 1
	libinput Accel Profile Enabled (284):	1, 0
	libinput Accel Profile Enabled Default (285):	1, 0
	libinput Natural Scrolling Enabled (286):	0
	libinput Natural Scrolling Enabled Default (287):	0
	libinput Send Events Modes Available (262):	1, 0
	libinput Send Events Mode Enabled (263):	0, 0
	libinput Send Events Mode Enabled Default (264):	0, 0
	libinput Left Handed Enabled (288):	0
	libinput Left Handed Enabled Default (289):	0
	libinput Scroll Methods Available (290):	0, 0, 1
	libinput Scroll Method Enabled (291):	0, 0, 0
	libinput Scroll Method Enabled Default (292):	0, 0, 0
	libinput Button Scrolling Button (293):	2
	libinput Button Scrolling Button Default (294):	2
	libinput Middle Emulation Enabled (295):	1
	libinput Middle Emulation Enabled Default (296):	0
	Device Node (265):	"/dev/input/event16"
	Device Product ID (266):	1133, 16394
	libinput Drag Lock Buttons (297):	<no items>
	libinput Horizontal Scroll Enabled (298):	1
$ 

Your list would look different even with the same hardware because
mine shows the effect of the mouse commands I have already added
to ~/.xsession:
# Pointers tend to be too sensitive.
# Leave the last number as 1: the other numbers are ratio'd with it.
xinput --set-prop "Logitech M325" "Coordinate Transformation Matrix" .3, 0, 0, 0, .3, 0, 0, 0, 1
# My mouse wheel is very unreliable for button 2, so use buttons 1&3.
xinput --set-prop "Logitech M325" "libinput Middle Emulation Enabled" 1

Now I can use either a wheel press or a both-button-click to paste.
The wheel still scrolls.

¹ A note on the filenames: My .xsession has hooks for host-specific
commands at three stages:

Earlyconfig="$HOME/.xsession-1-$HOSTNAME"
Midconfig="$HOME/.xsession-5-$HOSTNAME"
Lateconfig="$HOME/.xsession-9-$HOSTNAME"

     … various commands here …
     … and, nearing the end: …

[ -f "$Lateconfig" ] && . "$Lateconfig"

so the specific device lists are only about the hosts' own hardware,
plus things that might be connected, whereas the configuration
commands themselves are executed on all my hosts (and are ignored
if not present). That way, the both-button-click works wherever the
mouse is connected.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#207296

FromLee <ler762@gmail.com>
Date2019-04-11 07:30 +0200
Message-ID<xLArD-2Se-5@gated-at.bofh.it>
In reply to#207285
On 4/10/19, David Wright wrote:
> On Wed 10 Apr 2019 at 17:21:06 (-0400), Lee wrote:
>> On 4/10/19, Dan Ritter wrote:
>> > Lee wrote:
>> >> On 4/10/19, Dan Ritter wrote:
>> >> > Lee wrote:
>> >> >> I installed the xfce version of debian 9 & have a terminal icon on
>> >> >> the
>> >> >> menu bar that starts xfce4-terminal
>> >> >>
>> >> >> Is there some way to configure xfce4-terminal so that a right mouse
>> >> >> click pastes text?
>> >> >> What I have now is right-click brings up a menu where I have to
>> >> >> left
>> >> >> click on paste.  ick.
>> >> >
>> >> > Middle button is probably set to paste right now.
>> >>
>> >> It is!!  So how do I change that setting so that right click is set to
>> >> paste?
>> >
>> > You don't! The programmers didn't include that.
>>
>> wow.  just.. wow.  I wonder if that omission has anything to do with
>> the xterm popcon graph showing about 100K users & xfce4-terminal
>> about 28K
>>
>> > You can change your button mapping for all of X with xmodmap.
>>
>> but then everywhere I expect a right click to pull up a menu won't -
>> correct?
>>
>> Oh well... I'll give xterm a try.
>
> I have a mouse with a wheel, but pressing it (as opposed to scrolling
> it) is very unreliable. I have changed the middle-click method from
> pressing the wheel to the old-fashioned way of dealing with 2-button
> mice: pressing both buttons at once.
>
> AFAIK this change is at the level of X and doesn't depend on the term.
> Here are the steps I used. You might need to tweak the filename
> ~/.xsession for a DE as I use just startx and fvwm. For setting stuff
> automatically, you need to ascertain the name of your X startup file.

I don't know enough to appreciate all this, much less comment on it,
but still, it looks amazing!

$ find / -name xinput 2>/dev/null
$

so another package I need to install..

.. which breaks the login process for me :(

$ echo xinput > ~/.xsession

logout, try to log in, get a blank screen for a few seconds & I'm back
at the login screen again.

ssh in from my windows machine, rm .xsession, and I can log in on the
debian machine again.

Dunno if this means anything, but the last few lines in .xsession-errors.old are
dbus-update-activation-environment: setting GDMSESSION=lightdm-xsession
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting QT_XCB_FORCE_SOFTWARE_OPENGL=1
dbus-update-activation-environment: setting
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting PWD=/home/lee
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ImPS/2 Generic Wheel Mouse                id=9    [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=8    [slave  keyboard (3)]

Why does putting 'xinput' in my .xsession keep me from being able to
log in & it works just fine for you?

Thanks,
Lee

>
> At the end of ~/.xsession I routinely put
> xinput
> which lists the devices in ~/.xsession-errors which I copy into my
> configuration archive. But you can just type
> $ xinput at any commandline in X:
> ⎡ Virtual core pointer			id=2	[master pointer  (3)]
> ⎜   ↳ Virtual core XTEST pointer	id=4	[slave  pointer  (2)]
> ⎜   ↳ Logitech M325			id=10	[slave  pointer  (2)]
> ⎜   ↳ SynPS/2 Synaptics TouchPad	id=14	[slave  pointer  (2)]
> ⎜   ↳ ELAN Touchscreen			id=9	[slave  pointer  (2)]
> ⎣ Virtual core keyboard			id=3	[master keyboard (2)]
>     ↳ Virtual core XTEST keyboard	id=5	[slave  keyboard (3)]
>     ↳ Power Button			id=6	[slave  keyboard (3)]
>     ↳ Video Bus				id=7	[slave  keyboard (3)]
>     ↳ Power Button			id=8	[slave  keyboard (3)]
>     ↳ Lenovo EasyCamera			id=11	[slave  keyboard (3)]
>     ↳ Ideapad extra buttons		id=12	[slave  keyboard (3)]
>     ↳ AT Translated Set 2 keyboard	id=13	[slave  keyboard (3)]
> $
>
> Having read that list, I add lines for devices that might interest me
> in a similar way (in ~/.xsession-9-wren¹), and again you can type this
> at a commandline:
> $ xinput list-props "Logitech M325"
> Device 'Logitech M325':
> 	Device Enabled (141):	1
> 	Coordinate Transformation Matrix (143):	0.300000, 0.000000, 0.000000,
> 0.000000, 0.300000, 0.000000, 0.000000, 0.000000, 1.000000
> 	libinput Accel Speed (281):	0.000000
> 	libinput Accel Speed Default (282):	0.000000
> 	libinput Accel Profiles Available (283):	1, 1
> 	libinput Accel Profile Enabled (284):	1, 0
> 	libinput Accel Profile Enabled Default (285):	1, 0
> 	libinput Natural Scrolling Enabled (286):	0
> 	libinput Natural Scrolling Enabled Default (287):	0
> 	libinput Send Events Modes Available (262):	1, 0
> 	libinput Send Events Mode Enabled (263):	0, 0
> 	libinput Send Events Mode Enabled Default (264):	0, 0
> 	libinput Left Handed Enabled (288):	0
> 	libinput Left Handed Enabled Default (289):	0
> 	libinput Scroll Methods Available (290):	0, 0, 1
> 	libinput Scroll Method Enabled (291):	0, 0, 0
> 	libinput Scroll Method Enabled Default (292):	0, 0, 0
> 	libinput Button Scrolling Button (293):	2
> 	libinput Button Scrolling Button Default (294):	2
> 	libinput Middle Emulation Enabled (295):	1
> 	libinput Middle Emulation Enabled Default (296):	0
> 	Device Node (265):	"/dev/input/event16"
> 	Device Product ID (266):	1133, 16394
> 	libinput Drag Lock Buttons (297):	<no items>
> 	libinput Horizontal Scroll Enabled (298):	1
> $
>
> Your list would look different even with the same hardware because
> mine shows the effect of the mouse commands I have already added
> to ~/.xsession:
> # Pointers tend to be too sensitive.
> # Leave the last number as 1: the other numbers are ratio'd with it.
> xinput --set-prop "Logitech M325" "Coordinate Transformation Matrix" .3, 0,
> 0, 0, .3, 0, 0, 0, 1
> # My mouse wheel is very unreliable for button 2, so use buttons 1&3.
> xinput --set-prop "Logitech M325" "libinput Middle Emulation Enabled" 1
>
> Now I can use either a wheel press or a both-button-click to paste.
> The wheel still scrolls.
>
> ¹ A note on the filenames: My .xsession has hooks for host-specific
> commands at three stages:
>
> Earlyconfig="$HOME/.xsession-1-$HOSTNAME"
> Midconfig="$HOME/.xsession-5-$HOSTNAME"
> Lateconfig="$HOME/.xsession-9-$HOSTNAME"
>
>      … various commands here …
>      … and, nearing the end: …
>
> [ -f "$Lateconfig" ] && . "$Lateconfig"
>
> so the specific device lists are only about the hosts' own hardware,
> plus things that might be connected, whereas the configuration
> commands themselves are executed on all my hosts (and are ignored
> if not present). That way, the both-button-click works wherever the
> mouse is connected.
>
> Cheers,
> David.
>
>

[toc] | [prev] | [next] | [standalone]


#207304

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-04-11 14:20 +0200
Message-ID<xLGQp-6Sb-3@gated-at.bofh.it>
In reply to#207296
On Thu, Apr 11, 2019 at 01:28:18AM -0400, Lee wrote:
> so another package I need to install..
> 
> .. which breaks the login process for me :(
> 
> $ echo xinput > ~/.xsession

If you use a .xsession file, you have to go all in.  Your ~/.xsession
file will completely replace the system default X11 session.  That means
you have to invoke your window manager (or desktop session manager if
you use one of those), as well as any other programs that you'd like
to start as part of your personally customized X session.

If instead you just want to ADD a program to the system default X session,
Debian created a ~/.xsessionrc file which is run in ADDITION to the
default session, so you don't have to replicate all of the functionality
yourself.

https://wiki.debian.org/Xsession

[toc] | [prev] | [next] | [standalone]


#207471

FromVincent Lefevre <vincent@vinc17.net>
Date2019-04-15 13:00 +0200
Message-ID<xN7vb-2Fc-13@gated-at.bofh.it>
In reply to#207304
On 2019-04-15 12:53:03 +0200, Vincent Lefevre wrote:
> If you want to replace the system default X11 session, do this
> with a .xinitrc script. By default, it is /etc/X11/xinit/xinitrc,
> which does: . /etc/X11/Xsession

Actually startx (via xinit) honors .xinitrc, but not the graphical
login managers. See also

  https://lists.debian.org/debian-user/2013/12/msg00903.html

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

[toc] | [prev] | [next] | [standalone]


#207472

FromVincent Lefevre <vincent@vinc17.net>
Date2019-04-15 13:00 +0200
Message-ID<xN7vb-2Fc-15@gated-at.bofh.it>
In reply to#207304
On 2019-04-11 08:19:13 -0400, Greg Wooledge wrote:
> On Thu, Apr 11, 2019 at 01:28:18AM -0400, Lee wrote:
> > so another package I need to install..
> > 
> > .. which breaks the login process for me :(
> > 
> > $ echo xinput > ~/.xsession
> 
> If you use a .xsession file, you have to go all in.  Your ~/.xsession
> file will completely replace the system default X11 session.

No, it just replaces the session manager or window manager
(see /etc/X11/Xsession.d/50x11-common_determine-startup).
But /etc/X11/Xsession runs as normal.

In short, /etc/X11/Xsession defines USERXSESSION=$HOME/.xsession
which is used by /etc/X11/Xsession.d/50x11-common_determine-startup
to set the STARTUP variable, and this variable is used at the end
of the X session init, in /etc/X11/Xsession.d/99x11-common_start,
which does: exec $STARTUP

If you want to replace the system default X11 session, do this
with a .xinitrc script. By default, it is /etc/X11/xinit/xinitrc,
which does: . /etc/X11/Xsession

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

[toc] | [prev] | [next] | [standalone]


#207319

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-04-11 17:00 +0200
Message-ID<xLJlg-8fR-9@gated-at.bofh.it>
In reply to#207296
On Thu 11 Apr 2019 at 01:28:18 (-0400), Lee wrote:
> On 4/10/19, David Wright wrote:
> > On Wed 10 Apr 2019 at 17:21:06 (-0400), Lee wrote:
> >> On 4/10/19, Dan Ritter wrote:
> >> > Lee wrote:
> >> >> On 4/10/19, Dan Ritter wrote:
> >> >> > Lee wrote:
> >> >> >> I installed the xfce version of debian 9 & have a terminal icon on
> >> >> >> the
> >> >> >> menu bar that starts xfce4-terminal
> >> >> >>
> >> >> >> Is there some way to configure xfce4-terminal so that a right mouse
> >> >> >> click pastes text?
> >> >> >> What I have now is right-click brings up a menu where I have to
> >> >> >> left
> >> >> >> click on paste.  ick.
> >> >> >
> >> >> > Middle button is probably set to paste right now.
> >> >>
> >> >> It is!!  So how do I change that setting so that right click is set to
> >> >> paste?
> >> >
> >> > You don't! The programmers didn't include that.
> >>
> >> wow.  just.. wow.  I wonder if that omission has anything to do with
> >> the xterm popcon graph showing about 100K users & xfce4-terminal
> >> about 28K
> >>
> >> > You can change your button mapping for all of X with xmodmap.
> >>
> >> but then everywhere I expect a right click to pull up a menu won't -
> >> correct?
> >>
> >> Oh well... I'll give xterm a try.
> >
> > I have a mouse with a wheel, but pressing it (as opposed to scrolling
> > it) is very unreliable. I have changed the middle-click method from
> > pressing the wheel to the old-fashioned way of dealing with 2-button
> > mice: pressing both buttons at once.
> >
> > AFAIK this change is at the level of X and doesn't depend on the term.
> > Here are the steps I used. You might need to tweak the filename
> > ~/.xsession for a DE as I use just startx and fvwm. For setting stuff
> > automatically, you need to ascertain the name of your X startup file.
> 
> I don't know enough to appreciate all this, much less comment on it,
> but still, it looks amazing!
> 
> $ find / -name xinput 2>/dev/null
> $
> 
> so another package I need to install..
> 
> .. which breaks the login process for me :(
> 
> $ echo xinput > ~/.xsession
> 
> logout, try to log in, get a blank screen for a few seconds & I'm back
> at the login screen again.
> 
> ssh in from my windows machine, rm .xsession, and I can log in on the
> debian machine again.
> 
> Dunno if this means anything, but the last few lines in .xsession-errors.old are
[…]
> dbus-update-activation-environment: setting PWD=/home/lee
> ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
> ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
> ⎜   ↳ ImPS/2 Generic Wheel Mouse                id=9    [slave  pointer  (2)]
> ⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
>     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
>     ↳ Power Button                              id=6    [slave  keyboard (3)]
>     ↳ Power Button                              id=7    [slave  keyboard (3)]
>     ↳ AT Translated Set 2 keyboard              id=8    [slave  keyboard (3)]
> 
> Why does putting 'xinput' in my .xsession keep me from being able to
> log in & it works just fine for you?

Because, as I wrote, I use startx to run X and fvwm as my WM, so my X
session is configured with a substantial .xsession file (and the
host-specific files it calls) that I've built up over more that two
decades. So you're best to do your investigating first with the direct
commands I gave.

You've got the output of   xinput   quoted above, so now try
$ xinput list-props "ImPS/2 Generic Wheel Mouse"
and see what properties are available. You're likely to see
lines similar to the ones I previously quoted (snipped from here).
So then you might be able to test the effect of a line *like*
$ xinput --set-prop "ImPS/2 Generic Wheel Mouse" "libinput Middle Emulation Enabled" 1
If you get it right, it should take immediate effect.

The last step (for you) is to divine which file to *add* this line to,
which depends on your method of starting X. It's likely .xsessionrc
according to Greg who's played with this stuff (or read around it)
more then I have. It's one of the complications that arises from
the flexibility of X: anyone can build a set of interacting
configuration files to get it started just how they want it.

Were you to use my WM (fvwm) to achieve the same ends with the mouse,
we would be having a similar conversation about where to place the
commands for much the same reason: over two decades of evolution in
configuration files.

> > At the end of ~/.xsession I routinely put
> > xinput

A preexisting file as you can see from the snippet below.

> > Your list would look different even with the same hardware because
> > mine shows the effect of the mouse commands I have already added
> > to ~/.xsession:
> > # Pointers tend to be too sensitive.
> > # Leave the last number as 1: the other numbers are ratio'd with it.
> > xinput --set-prop "Logitech M325" "Coordinate Transformation Matrix" .3, 0, 0, 0, .3, 0, 0, 0, 1
> > # My mouse wheel is very unreliable for button 2, so use buttons 1&3.
> > xinput --set-prop "Logitech M325" "libinput Middle Emulation Enabled" 1

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#207265

FromPeter Wiersig <peter@friesenpeter.de>
Date2019-04-10 22:20 +0200
Message-ID<xLrRo-5Y0-7@gated-at.bofh.it>
In reply to#207262
Lee <ler762@gmail.com> writes:
>
> How do I find out what other terminal programs are already installed
> that I can try?

Installed? I don't know your package list
Installable? see below.

> What terminal programs are available that have a 'right click pastes
> text' option _and_ has a scroll bar that is
> 1. easily visible
> 2. goes up/down a page at a time when left-clicking above/below the scroll bar
> 3. has up/down buttons on the scroll bar that scrolls a line at a time
> when clicking on the button

Package: putty (0.67-3+deb9u1)
Telnet/SSH client for X

https://packages.debian.org/stretch/putty

also available in jessie or buster

Peter

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | linux.debian.user


csiph-web