Open mylinuxforwork opened 3 months ago
Original from https://gitlab.com/makoridylan
Yes, it's possible to enable touchpad or touchscreen scrolling on Rofi.Rofi itself doesn't directly handle input devices, but you can enable scrolling by configuring it to work with the windowing system and input device settings. Here is how i can go about setting it up:
First, make sure your touchpad or touchscreen is working properly and recognized by your system. You can use tools like xinput
to list input devices and verify their functionality.
Rofi supports mouse wheel scrolling out of the box, but to make sure it's enabled, you might need to tweak its configuration. You can create or edit the Rofi configuration file.
Locate or create the configuration file:
~/.config/rofi/config.rasi
.Add scrolling settings:
Add the following lines to enable mouse scrolling:
configuration {
scroll-method: 1; // This enables the scrolling for the mouse wheel
}
For touchpad or touchscreen scrolling, you need to ensure that your system’s input device settings are correctly configured.
Check if libinput
is installed:
libinput
for handling input devices. Ensure it’s installed.Configure libinput
:
Create or edit the libinput
configuration file typically found at /etc/X11/xorg.conf.d/40-libinput.conf
. Add or edit the section for touchpads:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "NaturalScrolling" "true"
EndSection
Use xinput
for configuration:
Run xinput
to list input devices and find your touchscreen.
xinput list
Enable natural scrolling for the touchscreen (replace id
with the ID of your touchscreen device):
xinput set-prop <id> "libinput Natural Scrolling Enabled" 1
Test and Adjust After making these changes, restart your X session or reboot your system to apply the new settings. Open Rofi and test the scrolling functionality with your touchpad or touchscreen.
Hope this helps :smile:
Is your feature request related to a problem? Please describe. Currently it's not possible to scroll on a laptop touchpad or touchscreen through a rofi menu. Only the scrollbar or the arrow keys are working on a laptop. On a desktop PC, I can use the scrollwheel.