Monday 26 August 2019

Swapping mouse buttons in Linux

Since I occasionally change the mouse from right hand to left hand and vice versa (for ergonomic reasons) I like to swap the buttons as well so that primary button is always used by my index finger and secondary with middle finger. And I always forget how to do this.

To get the device ids:

xinput --list

Find the device id for the mouse and then to change button mapping:

xinput --set-button-map [id] 3 2 1

Manjaro's GUI for this does not seem to work for me. I think it assumes there can be no more than one device identified as mouse so it won't let me change from right-handed to left-handed for the second device. This keyboard is identified as a pointing device as well for some reason and has lower id than the mouse.

Thursday 14 February 2019

Linux vs Windows benchmarking

At least these games should work both in Linux (according to ProtonDB) and Windows and include a benchmark (source):

Native
Bioshock Infinite
Borderlands 2
Civilization VI (GPU & CPU)
Counter-strike: Global Offensive
Deus Ex: Mankind Divided
Left 4 Dead 2
Metro 2033
Middle-Earth: Shadow of Mordor
Tomb Raider
War Thunder
Total War Saga: Thrones of Britannia
F1 2017
Total War: Warhammer 2
Hitman
Total War: Warhammer
Dirt: Rally
Total War: Attila
GRID: Autosport
Alien Isolation
Company of Heroes 2
Metro: Last Light
Warhammer 40: Dawn of War 2
Non-native
Grand Theft Auto V
Total War: Rome II
Hitman 2
Strange Brigade
Mortal Kombat X
Batman: Arkham Origins
Devil May Cry 4

Non-native obviously means that the game is run through the Photon emulator.

Unfortuntately two of the most used benchmarks in 3DMark and Cinebench don't work in Linux but Phoronix test suite does. That on the other hand is not fully supported in Windows yet.

I intend to run some tests later with some of these games.