-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmouse_map.sh
executable file
·37 lines (30 loc) · 911 Bytes
/
mouse_map.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo
echo "======================================================================"
echo "Elecom Huge Trackbal Mouse Map Script"
echo "Script made by [email protected], please email if there is any questions"
echo "===================================================================="
echo
echo "list of mice"
echo "========================="
echo
xinput --list | grep -i mouse
echo
read -p "Please enter mouse id number: " mouse
echo
echo "Your current mouse button map is:"
xinput get-button-map $mouse
read -p "Would you like to continue with the mapping? (y/n) " answer
case $answer in
y)
echo "mapping buttons..."
xinput set-button-map $mouse 1 2 3 4 5 6 7 8 9 10 11 3
echo "The mouse has been mapped with 1 2 3 4 5 6 7 8 9 10 11 3"
notify-send "Mouse Has Been Mapped"
;;
*)
echo "exiting script..."
;;
esac
echo
echo "Thank you! Have a pleasant day :-)"