summaryrefslogtreecommitdiff
path: root/setup-xorg-base.in
blob: 2e01c911817669528a359a190bb2cb04c8118b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# simple script to setup x basic org server
# you will still need a window manager and login manager or xinit

base_pkgs="xorg-server xf86-input-libinput eudev"

apk add pciutils eudev
vgaline=$(lspci | grep -w VGA)

case "$vgaline" in
*Intel*) videodrv="xf86-video-intel";;
*AMD*) videodrv="xf86-video-amdgpu";;
*NVIDIA*) videodrv="xf86-video-nouveau";;
*VMware*) videodrv="xf86-video-vmware";;
*QXL*) videodrv="xf86-video-qxl";;
esac

# fallback driver
videodrv="$videodrv xf86-video-modesetting"

# install packages
apk add $base_pkgs $videodrv $@

setup-udev