Move logitech MX fix into shrc files to be more reliable

This commit is contained in:
Evie Litherland-Smith 2023-04-08 06:52:38 +01:00
parent 4f5006f6e0
commit f183b22ee8
3 changed files with 12 additions and 3 deletions

View file

@ -14,7 +14,6 @@
[ -f "$HOME/.config/nitrogen/bg-saved.cfg" ]\ [ -f "$HOME/.config/nitrogen/bg-saved.cfg" ]\
&& ${pkgs.nitrogen}/bin/nitrogen --restore\ && ${pkgs.nitrogen}/bin/nitrogen --restore\
|| ${pkgs.nitrogen}/bin/nitrogen --set-auto $HOME/.dotfiles/wallpaper/images_dark/5120x2880.png --save || ${pkgs.nitrogen}/bin/nitrogen --set-auto $HOME/.dotfiles/wallpaper/images_dark/5120x2880.png --save
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
''; '';
}; };
}; };

View file

@ -24,7 +24,6 @@
extraFlags = [ extraFlags = [
"--quiet" "--quiet"
"--ignore-missing" "--ignore-missing"
"--noask"
]; ];
keys = [ keys = [
"id_rsa" "id_rsa"

View file

@ -1,4 +1,4 @@
{ ... }: { { pkgs, ... }: {
imports = [ imports = [
./common.nix ./common.nix
./env ./env
@ -15,5 +15,16 @@
userEmail = "evie@xenia.me.uk"; userEmail = "evie@xenia.me.uk";
}; };
# Fix for logitech MX master button ordering...
programs.bash.initExtra = ''
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
'';
programs.zsh.initExtra = ''
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
'';
programs.fish.interactiveShellInit = ''
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
'';
home.stateVersion = "22.11"; home.stateVersion = "22.11";
} }