Forked from bogdanRada/customize-mx-master-ubuntu.md
Last active
May 16, 2021 23:25
-
-
Save mostlygeek/9304cddddcfeb59985d19cc72b2c2f91 to your computer and use it in GitHub Desktop.
Revisions
-
mostlygeek revised this gist
May 16, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,11 +36,11 @@ Here is an exemple of this file that map the Back and Forward buttons to BackSpa # thumb wheel up => increase volume and unmute # using xdotool pops up the Ubuntu OSD for volume "xdotool key XF86AudioRaiseVolume" b:7 # thumb wheel down => lower volume "xdotool key XF86AudioLowerVolume" b:6 # backward button => previous song "xte 'key XF86AudioPrev'" -
mostlygeek revised this gist
May 16, 2021 . 1 changed file with 10 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,8 @@ Notes for Ubuntu 21.04, getting the MX Master mouse to work. 1. Ubuntu 21.04 uses Wayland by default. These instructions only work for x.org 2. Getting Wayland to rebind mouse keys was confusing. Much easier to just use x.org and these instructions I found. First, install Solaar to see the battery level on the taskbar ```sh @@ -7,7 +12,7 @@ sudo apt-get install solaar To remap the keys, install ```sh sudo apt-get install xbindkeys xautomation xdotool ``` Then, launch xev to get the keyboard or mouse event to bind @@ -28,12 +33,13 @@ nano ~/.xbindkeysrc Here is an exemple of this file that map the Back and Forward buttons to BackSpace and Return respectively ```sh # thumb wheel up => increase volume and unmute # using xdotool pops up the Ubuntu OSD for volume "xdotool key XF86AudioRaiseVolume" b:6 # thumb wheel down => lower volume "xdotool key XF86AudioLowerVolume" b:7 # backward button => previous song -
vukhanhtruong revised this gist
Apr 17, 2020 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -44,12 +44,16 @@ Here is an exemple of this file that map the Back and Forward buttons to BackSpa "xte 'key XF86AudioNext'" b:9 # Example backspace #"xte 'keydown BackSpace'" #b:8 #"xte 'keyup BackSpace'" # b:8 + Release # Alt tab to previous app "xte 'keydown Alt_L' 'key Tab' 'keyup Alt_L'" b:9 ``` To test your binding -
vukhanhtruong revised this gist
Apr 17, 2020 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,6 +43,13 @@ Here is an exemple of this file that map the Back and Forward buttons to BackSpa # forward button => next song "xte 'key XF86AudioNext'" b:9 # Example backspace #"xte 'keydown BackSpace'" #b:8 #"xte 'keyup BackSpace'" # b:8 + Release ``` To test your binding -
vukhanhtruong revised this gist
Apr 17, 2020 . 1 changed file with 13 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,19 +28,21 @@ nano ~/.xbindkeysrc Here is an exemple of this file that map the Back and Forward buttons to BackSpace and Return respectively ```sh # thumb wheel up => increase volume and unmute "amixer -D pulse set Master 4000+ unmute" b:6 # thumb wheel down => lower volume "amixer -D pulse set Master 4000-" b:7 # backward button => previous song "xte 'key XF86AudioPrev'" b:8 # forward button => next song "xte 'key XF86AudioNext'" b:9 ``` To test your binding -
vukhanhtruong revised this gist
Apr 17, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -65,7 +65,7 @@ xbindkeys --key xbindkeys --multikey ``` If you change the key map, you have to restart xbindkeys by following command ```sh killall xbindkeys && xbindkeys -
vukhanhtruong renamed this gist
Apr 17, 2020 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -64,3 +64,9 @@ xbindkeys --key xbindkeys --multikey ``` To restart xbindkeys ```sh killall xbindkeys && xbindkeys ``` -
vukhanhtruong revised this gist
Apr 17, 2020 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -55,4 +55,12 @@ To start xbindkeys xbindkeys ``` To find key code ``` xbindkeys --key // or xbindkeys --multikey ``` -
vukhanhtruong renamed this gist
Apr 17, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
vukhanhtruong created this gist
Apr 17, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,58 @@ First, install Solaar to see the battery level on the taskbar ```sh sudo apt-get install solaar ``` To remap the keys, install ```sh sudo apt-get install xbindkeys xautomation ``` Then, launch xev to get the keyboard or mouse event to bind ```sh xev # grep button xev | grep -i button ``` Create the configuration file for xbindkeys ``` nano ~/.xbindkeysrc ``` Here is an exemple of this file that map the Back and Forward buttons to BackSpace and Return respectively ```sh # Back button => BackSpace "xte 'keydown BackSpace'" b:8 "xte 'keyup BackSpace'" b:8 + Release # Forward button => Enter "xte 'keydown Return'" b:9 "xte 'keyup Return'" b:9 + Release ``` To test your binding ``` xbindkeys -v ``` To start xbindkeys ``` xbindkeys ``` it should autostart automatically