surface install
This commit is contained in:
parent
760585d420
commit
e056d23088
4
data/surface/arch_surface.conf
Normal file
4
data/surface/arch_surface.conf
Normal file
@ -0,0 +1,4 @@
|
||||
title Arch Linux Surface (linux)
|
||||
linux /vmlinuz-linux
|
||||
initrd /initramfs-linux-surface.img
|
||||
options root=PARTUUID=3c787bf0-4b4a-4fb1-92ec-1660507ff3d6 rw rootfstype=ext4 quiet splash
|
||||
4
data/surface/arch_surface_fallback.conf
Normal file
4
data/surface/arch_surface_fallback.conf
Normal file
@ -0,0 +1,4 @@
|
||||
title Arch Linux Surface (linux)
|
||||
linux /vmlinuz-linux
|
||||
initrd /initramfs-linux-surface-fallback.img
|
||||
options root=PARTUUID=3c787bf0-4b4a-4fb1-92ec-1660507ff3d6 rw rootfstype=ext4
|
||||
2
data/surface/loader.conf
Normal file
2
data/surface/loader.conf
Normal file
@ -0,0 +1,2 @@
|
||||
tiemout 0
|
||||
default arch_surface.conf
|
||||
48
data/surface/sleep.sh
Executable file
48
data/surface/sleep.sh
Executable file
@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
## REMARK:
|
||||
# - above shebang is required for scripting file
|
||||
# - 1st arg passed to executable file is either "pre" (mean that the entry of a power operation) or "post" (mean that the exit of a power operation)
|
||||
# - 2nd arg passed to executable file is either "suspend", "hibernate", "hybrid-sleep", or "suspend-then-hibernate", depends on what power operation is operating
|
||||
# - SYSTEMD_SLEEP_ACTION environment variable is helpful for "suspend-then-hibernate", it has value of either "suspend", "hibernate", or "suspend-after-failed-hibernate"
|
||||
case $1 in
|
||||
pre)
|
||||
case $2 in
|
||||
hibernate)
|
||||
;;
|
||||
hybrid-sleep)
|
||||
;;
|
||||
suspend)
|
||||
;;
|
||||
suspend-then-hibernate)
|
||||
case $SYSTEMD_SLEEP_ACTION in
|
||||
suspend)
|
||||
;;
|
||||
hibernate)
|
||||
;;
|
||||
suspend-after-failed-hibernate)
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
post)
|
||||
case $2 in
|
||||
hibernate)
|
||||
;;
|
||||
hybrid-sleep)
|
||||
;;
|
||||
suspend)
|
||||
;;
|
||||
suspend-then-hibernate)
|
||||
case $SYSTEMD_SLEEP_ACTION in
|
||||
suspend)
|
||||
;;
|
||||
hibernate)
|
||||
;;
|
||||
suspend-after-failed-hibernate)
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
1
install_aur_packages.sh
Normal file
1
install_aur_packages.sh
Normal file
@ -0,0 +1 @@
|
||||
yay -S visual-studio-code-bin onlyoffice-bin teamviewer localsend
|
||||
5
install_plymouth.sh
Normal file
5
install_plymouth.sh
Normal file
@ -0,0 +1,5 @@
|
||||
sudo pacman -S plymouth
|
||||
yay -S plymouth-theme-arch-agua
|
||||
|
||||
sed -i -e 's/HOOKS=(base/HOOKS=(base plymouth/' ~/.zshrc
|
||||
sudo mkinitcpio -P
|
||||
16
linux-surface.sh
Normal file
16
linux-surface.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc | sudo pacman-key --add -
|
||||
|
||||
sudo bash -c 'echo "[linux-surface]" >> /etc/pacman.conf && echo "Server = https://pkg.surfacelinux.com/arch/" >> /etc/pacman.conf'/etc/mkinitcpio.d
|
||||
sudo pacman-key --lsign-key 56C464BAAC421453
|
||||
|
||||
sudo pacman -Syu
|
||||
sudo pacman -S linux-surface linux-surface-headers iptsd
|
||||
|
||||
sudo cp data/surface/sleep.sh /usr/lib/systemd/system-sleep/surface_sleep.sh
|
||||
|
||||
sudo mkinitcpio -P
|
||||
|
||||
sudo cp data/surface/arch_surface.conf /boot/loader/entries/arch_surface.conf
|
||||
sudo cp data/surface/arch_surface_fallback.conf /boot/loader/entries/arch_surface_fallback.conf
|
||||
Loading…
x
Reference in New Issue
Block a user