Create setup script for mice
This commit is contained in:
parent
2429e6ad49
commit
b2bd9281cc
|
@ -40,6 +40,7 @@
|
||||||
components = [
|
components = [
|
||||||
"ROG Zenith Extreme Alpha"
|
"ROG Zenith Extreme Alpha"
|
||||||
"Predator Z301C"
|
"Predator Z301C"
|
||||||
|
"Logitech G903"
|
||||||
];
|
];
|
||||||
|
|
||||||
xoneReceiver = true;
|
xoneReceiver = true;
|
||||||
|
|
|
@ -12,6 +12,10 @@
|
||||||
hardware = {
|
hardware = {
|
||||||
surfaceBook = true;
|
surfaceBook = true;
|
||||||
xoneReceiver = true;
|
xoneReceiver = true;
|
||||||
|
|
||||||
|
components = [
|
||||||
|
"Logitech G903"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
partition.os.deviceName = "nvme0n1";
|
partition.os.deviceName = "nvme0n1";
|
||||||
|
|
|
@ -30,6 +30,12 @@ function deploySoftware -d "Deploys a the specified software action" -a action
|
||||||
source "$dir/../Software/xone/main.fish" $argv
|
source "$dir/../Software/xone/main.fish" $argv
|
||||||
end
|
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
|
and if isEnabled valhalla.windows.dualboot.enable && $isInstall
|
||||||
yayinst bt-dualboot
|
yayinst bt-dualboot
|
||||||
end
|
end
|
||||||
|
|
12
scripts/Common/Drivers/Logitech G903/main.fish
Normal file
12
scripts/Common/Drivers/Logitech G903/main.fish
Normal 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
|
Loading…
Reference in a new issue