apt-get install imwheel
vim ~/.imwheel 파일 수정
".*"
None, Up, Button4, 4 -> 4정도의 속도가 가장 적당, 수정
None, Down, Button5, 4 -> 4정도의 속도가 가장 적당, 수정
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
/etc/profile 에 작성하거나
별도로 imwheel.sh 스크립트 작성하여 /etc/profile.d 에 삽입
-> 부팅될때 자동 실행되어 적용
심플한 imwheel.sh
#!/bin/bash
imwheel
----------------------------------
imwheel 마우스휠 속도, GUI 설정 소스
#!/bin/bash
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.
#
### 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
'trouble shooting' 카테고리의 다른 글
creating desktop icon on kali (0) | 2017.04.04 |
---|---|
when Kali doesn't have its sound in Rolling version (0) | 2017.04.03 |
slow wifi with moduel, iwlwifi (0) | 2015.12.03 |
PyCharm : Py_Initialize: can't initialize sys standard streams (0) | 2015.09.23 |
kali2 ; firmware: failed to load nouveau/nv117_fuc409c ERROR (0) | 2015.09.10 |