Skip to content

Commit

Permalink
Ubuntu_22.04: Configure system via stow (root dotfiles)
Browse files Browse the repository at this point in the history
- copy root dotfiles to a new directory "RootDotfiles"
- manage them via stow

Advantage of managing the system dotfiles this way instead of using bare
git repo is that the stow packages can be installed independently of
each other, hence this is a more appropriate way of managing tweaks.

Also adding the logid.cfg file and temporary bugfix in order to disable
High resolution on MX3 master scroll wheel (otherwise the scrolling is
erratic).
  • Loading branch information
jan-revay committed Aug 13, 2024
1 parent b6df7a6 commit 7ba55de
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 0 deletions.
113 changes: 113 additions & 0 deletions Ubuntu_22.04/RootDotfiles/MX3_MASTER_LOGID_CONFIG/etc/logid.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Logiops (Linux driver) configuration for Logitech MX Master 3 mouse.
# See: https://github.com/PixlOne/logiops/wiki/Configuration for more info.

devices: (
{
name: "Wireless Mouse MX Master 3";
smartshift:
{
on: true;
threshold: 5;
default_threshold: 5;
};
hiresscroll:
{
hires: true;
invert: false;
target: false;
};
dpi: 2000;

buttons: (
{
cid: 0xc3;
action =
{
type: "Gestures";
gestures: (
{
direction: "Up";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTMETA"];
};
},
{
direction: "Down";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_C"];
};
},
{
direction: "Left";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_X"];
};
},
{
direction: "Right";
mode: "OnRelease";
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_V"];
};
},


# {
# # Switch tabs - left
# direction: "Left";
# mode: "OnInterval";
# interval: 350;
# threshold: 1;
# action = {
# type: "Keypress";
# keys: ["KEY_LEFTCTRL", "KEY_PAGEUP"];
# };
# },
# {
# # Switch tabs - right
# direction: "Right";
# mode: "OnInterval";
# interval: 350;
# threshold: 1;
# action = {
# type: "Keypress";
# keys: ["KEY_LEFTCTRL", "KEY_PAGEDOWN"];
# }
# },


{
# A direction "None" is unreliable as it requires a mouse
# to be completely stationary to function correctly.
direction: "None";
mode: "OnRelease";
action = {
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_V"];
}
}
);
};
},
{
cid: 0xc4;
action =
{
type: "Keypress";
keys: ["KEY_LEFTCTRL", "KEY_W"];
};
}
);
}
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Logitech MX Master 3]
MatchVendor=0x46D
MatchProduct=0x4082
ModelInvertHorizontalScrolling=1
AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES;


# MX Master 3 has a different PID on bluetooth
[Logitech MX Master 3]
MatchVendor=0x46D
MatchProduct=0xB023
ModelInvertHorizontalScrolling=1
AttrEventCode=-REL_WHEEL_HI_RES;-REL_HWHEEL_HI_RES;
6 changes: 6 additions & 0 deletions Ubuntu_22.04/configs_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@ sudo update-alternatives --set editor /usr/bin/nvim
# e.g. swap esc and caps lock
# https://www.reddit.com/r/vim/comments/k5twce/switching_esc_with_caps_lock/
#

pushd RootDotfiles/
sudo stow -vvv --target=/ disable_highres_scroll/
sudo stow -vvv --target=/ MX3_MASTER_LOGID_CONFIG/
popd

0 comments on commit 7ba55de

Please sign in to comment.