▲ 197 ▼ GNOME and Mozilla Discuss Proposal to Disable Middle Mouse Paste on Linux (linuxiac.com) submitted 8 months ago by petsoi@discuss.tchncs.de to c/linux@lemmy.ml 106 comments fedilink hide all child comments
[–] Asfalttikyntaja@sopuli.xyz 4 points 8 months ago (1 child) Fun thing is that I didn’t even know that existed. permalink fedilink source hideshow 2 child comments replies: [–] thingsiplay@beehaw.org 6 points 8 months ago (3 children) Then I tell you something that might either blow your mind or be useful in future (or just being fun fact): On Linux there is the regular copy/paste clipboard, which you already know how it works. But then there is this primary clipboard called primary selection too, that is independent from normal clipboard. Text will be copied to primary selection when you select a text (in example in Firefox). Just by selection the text with the mouse is enough and it will not affect the normal clipboard. Then you can middle click the text from primary clipboard. Read more here: https://tronche.com/gui/x/icccm/sec-2.html#s-2.6.1 permalink fedilink source parent hideshow 6 child comments replies: [–] Blisterexe@lemmy.zip 4 points 8 months ago (1 child) It's cool, but I cannot count the amount of times I was confused by that and accidentally pasted after switching, I would be glad if it became configurable. permalink fedilink source parent hideshow 2 child comments replies: [–] thingsiplay@beehaw.org 2 points 8 months ago (1 child) It's actually surprising that this is not configurable already. At least in a GUI. permalink fedilink source parent hideshow 2 child comments replies: [–] Blisterexe@lemmy.zip 2 points 8 months ago The reaction that I see here explains why, I guess. permalink fedilink source parent [–] djdarren@piefed.social 3 points 8 months ago (4 children) Well fuck me. That's kinda neat. Shame it doesn't subsequently work with ctrl+v, because that would be even cooler. permalink fedilink source parent hideshow 8 child comments replies: [–] MouldyCat@feddit.uk 4 points 8 months ago Once you're used to it, you can use the two separate clipboards independently. Say you wrote a sentence like, "one two five four three", you can correct it by selecting "three", cutting with Ctrl-X, then selecting "five" (meaning it is now in the selection buffer), hitting Ctrl-V to paste "three" from the clipboard, and then finally middle-click where you need to paste the "five". permalink fedilink source parent [–] thingsiplay@beehaw.org 2 points 8 months ago I guess one could create shortcuts to a tool like wl-copy and wl-paste to either copy or paste content to primary selection (or regular clipboard for that matter). So in that case a simple script could run the command and in your desktop environment you setup a shortcut to run the script. Yes its hacky, but in Linux nothing is impossible. :-) (unless it is...) permalink fedilink source parent [–] mystik@lemmy.world 2 points 8 months ago on some apps; it works with ctrl-shift-v. so ctrl-v for the clipboard, and ctrl-shift-v for the cut buffer. permalink fedilink source parent [–] crater2150@feddit.org 1 point 8 months ago In most programs, you can paste the primary selection with Shift+Insert permalink fedilink source parent [–] Asfalttikyntaja@sopuli.xyz 2 points 8 months ago My god, you just blowed my mind! permalink fedilink source parent
[–] thingsiplay@beehaw.org 6 points 8 months ago (3 children) Then I tell you something that might either blow your mind or be useful in future (or just being fun fact): On Linux there is the regular copy/paste clipboard, which you already know how it works. But then there is this primary clipboard called primary selection too, that is independent from normal clipboard. Text will be copied to primary selection when you select a text (in example in Firefox). Just by selection the text with the mouse is enough and it will not affect the normal clipboard. Then you can middle click the text from primary clipboard. Read more here: https://tronche.com/gui/x/icccm/sec-2.html#s-2.6.1 permalink fedilink source parent hideshow 6 child comments replies: [–] Blisterexe@lemmy.zip 4 points 8 months ago (1 child) It's cool, but I cannot count the amount of times I was confused by that and accidentally pasted after switching, I would be glad if it became configurable. permalink fedilink source parent hideshow 2 child comments replies: [–] thingsiplay@beehaw.org 2 points 8 months ago (1 child) It's actually surprising that this is not configurable already. At least in a GUI. permalink fedilink source parent hideshow 2 child comments replies: [–] Blisterexe@lemmy.zip 2 points 8 months ago The reaction that I see here explains why, I guess. permalink fedilink source parent [–] djdarren@piefed.social 3 points 8 months ago (4 children) Well fuck me. That's kinda neat. Shame it doesn't subsequently work with ctrl+v, because that would be even cooler. permalink fedilink source parent hideshow 8 child comments replies: [–] MouldyCat@feddit.uk 4 points 8 months ago Once you're used to it, you can use the two separate clipboards independently. Say you wrote a sentence like, "one two five four three", you can correct it by selecting "three", cutting with Ctrl-X, then selecting "five" (meaning it is now in the selection buffer), hitting Ctrl-V to paste "three" from the clipboard, and then finally middle-click where you need to paste the "five". permalink fedilink source parent [–] thingsiplay@beehaw.org 2 points 8 months ago I guess one could create shortcuts to a tool like wl-copy and wl-paste to either copy or paste content to primary selection (or regular clipboard for that matter). So in that case a simple script could run the command and in your desktop environment you setup a shortcut to run the script. Yes its hacky, but in Linux nothing is impossible. :-) (unless it is...) permalink fedilink source parent [–] mystik@lemmy.world 2 points 8 months ago on some apps; it works with ctrl-shift-v. so ctrl-v for the clipboard, and ctrl-shift-v for the cut buffer. permalink fedilink source parent [–] crater2150@feddit.org 1 point 8 months ago In most programs, you can paste the primary selection with Shift+Insert permalink fedilink source parent [–] Asfalttikyntaja@sopuli.xyz 2 points 8 months ago My god, you just blowed my mind! permalink fedilink source parent
[–] Blisterexe@lemmy.zip 4 points 8 months ago (1 child) It's cool, but I cannot count the amount of times I was confused by that and accidentally pasted after switching, I would be glad if it became configurable. permalink fedilink source parent hideshow 2 child comments replies: [–] thingsiplay@beehaw.org 2 points 8 months ago (1 child) It's actually surprising that this is not configurable already. At least in a GUI. permalink fedilink source parent hideshow 2 child comments replies: [–] Blisterexe@lemmy.zip 2 points 8 months ago The reaction that I see here explains why, I guess. permalink fedilink source parent
[–] thingsiplay@beehaw.org 2 points 8 months ago (1 child) It's actually surprising that this is not configurable already. At least in a GUI. permalink fedilink source parent hideshow 2 child comments replies: [–] Blisterexe@lemmy.zip 2 points 8 months ago The reaction that I see here explains why, I guess. permalink fedilink source parent
[–] Blisterexe@lemmy.zip 2 points 8 months ago The reaction that I see here explains why, I guess. permalink fedilink source parent
[–] djdarren@piefed.social 3 points 8 months ago (4 children) Well fuck me. That's kinda neat. Shame it doesn't subsequently work with ctrl+v, because that would be even cooler. permalink fedilink source parent hideshow 8 child comments replies: [–] MouldyCat@feddit.uk 4 points 8 months ago Once you're used to it, you can use the two separate clipboards independently. Say you wrote a sentence like, "one two five four three", you can correct it by selecting "three", cutting with Ctrl-X, then selecting "five" (meaning it is now in the selection buffer), hitting Ctrl-V to paste "three" from the clipboard, and then finally middle-click where you need to paste the "five". permalink fedilink source parent [–] thingsiplay@beehaw.org 2 points 8 months ago I guess one could create shortcuts to a tool like wl-copy and wl-paste to either copy or paste content to primary selection (or regular clipboard for that matter). So in that case a simple script could run the command and in your desktop environment you setup a shortcut to run the script. Yes its hacky, but in Linux nothing is impossible. :-) (unless it is...) permalink fedilink source parent [–] mystik@lemmy.world 2 points 8 months ago on some apps; it works with ctrl-shift-v. so ctrl-v for the clipboard, and ctrl-shift-v for the cut buffer. permalink fedilink source parent [–] crater2150@feddit.org 1 point 8 months ago In most programs, you can paste the primary selection with Shift+Insert permalink fedilink source parent
[–] MouldyCat@feddit.uk 4 points 8 months ago Once you're used to it, you can use the two separate clipboards independently. Say you wrote a sentence like, "one two five four three", you can correct it by selecting "three", cutting with Ctrl-X, then selecting "five" (meaning it is now in the selection buffer), hitting Ctrl-V to paste "three" from the clipboard, and then finally middle-click where you need to paste the "five". permalink fedilink source parent
[–] thingsiplay@beehaw.org 2 points 8 months ago I guess one could create shortcuts to a tool like wl-copy and wl-paste to either copy or paste content to primary selection (or regular clipboard for that matter). So in that case a simple script could run the command and in your desktop environment you setup a shortcut to run the script. Yes its hacky, but in Linux nothing is impossible. :-) (unless it is...) permalink fedilink source parent
[–] mystik@lemmy.world 2 points 8 months ago on some apps; it works with ctrl-shift-v. so ctrl-v for the clipboard, and ctrl-shift-v for the cut buffer. permalink fedilink source parent
[–] crater2150@feddit.org 1 point 8 months ago In most programs, you can paste the primary selection with Shift+Insert permalink fedilink source parent
[–] Asfalttikyntaja@sopuli.xyz 2 points 8 months ago My god, you just blowed my mind! permalink fedilink source parent