Create setup script for mice

This commit is contained in:
Manuel Thalmann 2024-09-20 06:10:53 +02:00
parent 2429e6ad49
commit b2bd9281cc
4 changed files with 23 additions and 0 deletions

View file

@ -40,6 +40,7 @@
components = [
"ROG Zenith Extreme Alpha"
"Predator Z301C"
"Logitech G903"
];
xoneReceiver = true;

View file

@ -12,6 +12,10 @@
hardware = {
surfaceBook = true;
xoneReceiver = true;
components = [
"Logitech G903"
];
};
partition.os.deviceName = "nvme0n1";

View file

@ -30,6 +30,12 @@ function deploySoftware -d "Deploys a the specified software action" -a action
source "$dir/../Software/xone/main.fish" $argv
end
and for component in (getConfig valhalla.linux.hardware.components --json | jq '.[]' --raw-output0 | string split0)
if [ "$component" = "Logitech G903" ]
source "$dir/../../Common/Drivers/Logitech G903/main.fish" $argv
end
end
and if isEnabled valhalla.windows.dualboot.enable && $isInstall
yayinst bt-dualboot
end

View file

@ -0,0 +1,12 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function configureSW -V dir
. "$dir/../../Software/KDE/input.fish"
addInputConfig 1133 16519 "Logitech G903 LS" "PointerAccelerationProfile=1"
end
runInstaller $argv
end