PortValhalla/scripts/Arch/Drivers/SurfaceBook2/main.fish

27 lines
757 B
Fish
Raw Normal View History

2024-09-20 00:01:22 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../lib/software.fish"
2024-09-20 00:01:22 +00:00
function installSW -V dir
yayinst \
surface-dtx-daemon-bin \
surface-control-bin
end
function configureSW -V dir
begin
printf %s\n \
"# vim:set ft=sh" \
"MODULES+=(pinctrl_sunrisepoint surface_dtx)"
2024-10-06 19:25:34 +00:00
end | sudo tee /etc/mkinitcpio.conf.d/surface-book-2.conf >/dev/null
2024-09-20 00:01:22 +00:00
2024-09-20 00:23:09 +00:00
fish "$dir/../../../Common/Drivers/SurfaceBook2/main.fish" configure
2024-09-20 00:01:22 +00:00
sudo systemctl enable surface-dtx-daemon.service
sudo systemctl enable --global surface-dtx-userd.service
end
2024-10-13 23:55:19 +00:00
runInstaller --force $argv
2024-09-20 00:01:22 +00:00
fish "$dir/../Surface/main.fish" $argv
end