You are not logged in.

#1 2020-12-28 14:53:11

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

[Solved] Can not get my mouse scrolling working on all apps

My mouse scroll is working fine in apps like qterminal, firefox, telegram and hexchat... But I can not use it on Libreoffice and Caja, for example. It's a simple Logitech mouse and I'm on PekWM.

Last edited by AndreyTarkovsky (2020-12-28 16:20:20)

Offline

#2 2020-12-28 15:00:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,834

Offline

#3 2020-12-28 15:11:58

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

Well, if you mean this

GDK_CORE_DEVICE_EVENTS=1

Didn't work for me.

Offline

#4 2020-12-28 15:24:06

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,834

Re: [Solved] Can not get my mouse scrolling working on all apps

Yes, it's a known bug in gtk.
How and where did you define that?

Offline

#5 2020-12-28 16:04:58

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

seth wrote:

Yes, it's a known bug in gtk.
How and where did you define that?

define what?

Offline

#6 2020-12-28 16:05:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,834

Re: [Solved] Can not get my mouse scrolling working on all apps

The environment variable…

Offline

#7 2020-12-28 16:17:07

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

seth wrote:

The environment variable…

I did on my qterminal using PekWM, should I define it before open any gtk app?

Offline

#8 2020-12-28 16:19:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,834

Re: [Solved] Can not get my mouse scrolling working on all apps

Yes.
Entering that somewhere™ does pretty much nothing.

https://wiki.archlinux.org/index.php/En … _variables

Offline

#9 2020-12-28 16:19:49

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

AndreyTarkovsky wrote:
seth wrote:

The environment variable…

I did on my qterminal using PekWM, should I define it before open any gtk app?

ohh, I got it:

GDK_CORE_DEVICE_EVENTS=1 lowriter

That worked, thank you very much, man.
Now I will add this to all my other launch options.

Offline

#10 2020-12-28 16:29:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,834

Re: [Solved] Can not get my mouse scrolling working on all apps

No, that's insane.
Just export it in your session script.

Offline

#11 2020-12-28 16:32:52

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

seth wrote:

No, that's insane.
Just export it in your session script.

Ok, better idea, thank you very much.

Offline

#12 2020-12-28 16:54:43

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

seth wrote:

No, that's insane.
Just export it in your session script.

Hey man, I did add the env variable to my ~/.xinitrc but didn't work. Should I add to another file?

Offline

#13 2020-12-28 17:08:33

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,834

Re: [Solved] Can not get my mouse scrolling working on all apps

This depends on how you start the session - xinitrc is only (by default) executed by xinit/startx and xdm - oder DMs (lightdm, GDM, SDDM,…) don't execute it at all.

Offline

#14 2020-12-28 17:29:04

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved] Can not get my mouse scrolling working on all apps

AndreyTarkovsky wrote:

Hey man, I did add the env variable to my ~/.xinitrc but didn't work. Should I add to another file?

If you use a display manager you can create a file "~/.xprofile". The contents could look like this:

#!/bin/bash
export GDK_CORE_DEVICE_EVENTS=1

Another way is a file "~/.pam_environment" or system-wide in "/etc/environment". Those files are not scripts so you don't use the "export" word in them, you just write "name=value":

GDK_CORE_DEVICE_EVENTS=1

Last edited by Ropid (2020-12-28 17:29:31)

Offline

#15 2020-12-29 16:21:36

AndreyTarkovsky
Member
Registered: 2017-03-26
Posts: 77

Re: [Solved] Can not get my mouse scrolling working on all apps

Ropid wrote:
AndreyTarkovsky wrote:

Hey man, I did add the env variable to my ~/.xinitrc but didn't work. Should I add to another file?

If you use a display manager you can create a file "~/.xprofile". The contents could look like this:

#!/bin/bash
export GDK_CORE_DEVICE_EVENTS=1

Another way is a file "~/.pam_environment" or system-wide in "/etc/environment". Those files are not scripts so you don't use the "export" word in them, you just write "name=value":

GDK_CORE_DEVICE_EVENTS=1

You are awesome, thank you very much!

Offline

Board footer

Powered by FluxBB