Rehber Linux'ta Fare Tekerlek Hızını Değiştirme

Katılım
27 Eylül 2020
Mesajlar
6.233
Makaleler
14
Çözümler
113
imwheel adli araci yukleyin.

Bir dosya olusturup icine sunu yapistirin:

Kod:
#!/bin/bash
### see if imwheel config exists, if not create it ###
if [ ! -f ~/.imwheelrc ]
then

cat >~/.imwheelrc<<EOF
".*"
None,      Up,   Button4, 1
None,      Down, Button5, 1
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5
EOF

fi
##########################################################

CURRENT_VALUE=$(awk -F 'Button4,' '{print $2}' ~/.imwheelrc)

NEW_VALUE=$(zenity --scale --window-icon=info --ok-label=Apply --title="Wheelies" --text "Mouse wheel speed:" --min-value=1 --max-value=100 --value="$CURRENT_VALUE" --step 1)

if [ "$NEW_VALUE" == "" ];
then exit 0
fi

sed -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value.
sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value.

cat ~/.imwheelrc
imwheel -kill

  • Dosyanin adini fare.sh yapin.
  • Dosyanin oldugu yerde terminali acin.
  • sudo chmod +x fare.sh
  • ./fare.sh
  • Istediginiz hizi ayarlayin. Onerim 2 ya da 3.
Imwheel'i baslangicta acilacak sekilde ayar yapin. Masaustu ortaminda gore degisiklik gosterebilir.
Ornegin Cinnamon'da Startup Appliactions kismindan rahatca eklenebilir.

Kaynak: Altering mouse scroll speed in Linux | BikeGremlin I/O
 
Kde Wayland session kullaniyorsaniz bu ozellik mouse ayarlarinda var gnome da var mi bilmiyorum.
 
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…