diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-07-15 15:36:49 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-07-15 15:36:49 +0900 |
| commit | c8029c0952b80ef4a8b6d00ebd44a7fcde76d9aa (patch) | |
| tree | b7d30d8963598a1774b4d29d7950f291ed8f6d84 | |
| parent | cf7543e41c52be1f2d10bca50b6761136d252d57 (diff) | |
Init
| -rwxr-xr-x | public/thesiah.sh | 14 | ||||
| -rwxr-xr-x | static/thesiah.sh | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh index 3d9de28..a851678 100755 --- a/public/thesiah.sh +++ b/public/thesiah.sh @@ -599,6 +599,17 @@ Depends = dash' > /usr/share/libalpm/hooks/relinking-dash.hook ln -sfT dash /usr/bin/sh } +microsetup() { + microinfo=$(lspci | grep -E "VGA|Display") + if echo "$microinfo" | grep -qi "Intel"; then + installpkg xf86-video-intel + installpkg intel-ucode + elif echo "$microinfo" | grep -qi "AMD"; then + installpkg xf86-video-amdgpu + installpkg amd-ucode + fi +} + finalize() { ln -sf /home/"$name"/.dotfiles/default/Pictures/wallpaper/bg.png /home/"$name"/.local/share/bg chown -h "$name":wheel /home/"$name"/.local/share/bg @@ -775,6 +786,9 @@ vpnsetup # Set up clamshell mode elogindsetup +# Set up gpu +# microsetup + # Get Librewolf installed with add-ons and non-bad settings. librewolfsetup || error "Failed to set up librewolf." diff --git a/static/thesiah.sh b/static/thesiah.sh index 3d9de28..a851678 100755 --- a/static/thesiah.sh +++ b/static/thesiah.sh @@ -599,6 +599,17 @@ Depends = dash' > /usr/share/libalpm/hooks/relinking-dash.hook ln -sfT dash /usr/bin/sh } +microsetup() { + microinfo=$(lspci | grep -E "VGA|Display") + if echo "$microinfo" | grep -qi "Intel"; then + installpkg xf86-video-intel + installpkg intel-ucode + elif echo "$microinfo" | grep -qi "AMD"; then + installpkg xf86-video-amdgpu + installpkg amd-ucode + fi +} + finalize() { ln -sf /home/"$name"/.dotfiles/default/Pictures/wallpaper/bg.png /home/"$name"/.local/share/bg chown -h "$name":wheel /home/"$name"/.local/share/bg @@ -775,6 +786,9 @@ vpnsetup # Set up clamshell mode elogindsetup +# Set up gpu +# microsetup + # Get Librewolf installed with add-ons and non-bad settings. librewolfsetup || error "Failed to set up librewolf." |
