diff --git a/profiles/machines/manuel/DerGeret/config.nix b/profiles/machines/manuel/DerGeret/config.nix index 69c7fb8df..9b56ccbbe 100644 --- a/profiles/machines/manuel/DerGeret/config.nix +++ b/profiles/machines/manuel/DerGeret/config.nix @@ -40,6 +40,7 @@ components = [ "ROG Zenith Extreme Alpha" "Predator Z301C" + "Logitech G903" ]; xoneReceiver = true; diff --git a/profiles/machines/manuel/ManuSurface/config.nix b/profiles/machines/manuel/ManuSurface/config.nix index 827ae7d99..d86912638 100644 --- a/profiles/machines/manuel/ManuSurface/config.nix +++ b/profiles/machines/manuel/ManuSurface/config.nix @@ -12,6 +12,10 @@ hardware = { surfaceBook = true; xoneReceiver = true; + + components = [ + "Logitech G903" + ]; }; partition.os.deviceName = "nvme0n1"; diff --git a/scripts/Arch/Scripts/deploy.fish b/scripts/Arch/Scripts/deploy.fish index 8dddd9347..cbb007452 100644 --- a/scripts/Arch/Scripts/deploy.fish +++ b/scripts/Arch/Scripts/deploy.fish @@ -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 diff --git a/scripts/Common/Drivers/Logitech G903/main.fish b/scripts/Common/Drivers/Logitech G903/main.fish new file mode 100644 index 000000000..d9cca5ed6 --- /dev/null +++ b/scripts/Common/Drivers/Logitech G903/main.fish @@ -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