diff --git a/scripts/gpu-intel.sh b/scripts/gpu-intel.sh index 08758a1e3..9636b4e45 100644 --- a/scripts/gpu-intel.sh +++ b/scripts/gpu-intel.sh @@ -13,6 +13,8 @@ usage() { ' } +export dependencies=('gpu') + main_pacman() { require_pacman intel-media-driver } @@ -26,5 +28,6 @@ main_brew() { } main() { - return 0 + vainfo + vdpauinfo } diff --git a/scripts/gpu-nvidia.sh b/scripts/gpu-nvidia.sh index b1344e633..1876b90be 100644 --- a/scripts/gpu-nvidia.sh +++ b/scripts/gpu-nvidia.sh @@ -22,3 +22,8 @@ main_pacman() { msg 'please set the nvidia-drm.modeset=1 as kernel parameter in /boot/loader/entries/*.conf' 'notice' } + +main() { + vainfo + vdpauinfo +} diff --git a/scripts/gpu.sh b/scripts/gpu.sh new file mode 100644 index 000000000..14920cf71 --- /dev/null +++ b/scripts/gpu.sh @@ -0,0 +1,34 @@ +#!/bin/bash +usage() { + echo "Tools required for having fun with your GPU without knowing its brand" + + # shellcheck disable=1004,2016 + echo ' + + __ _ _ __ _ _ + / _` | |_ \| | | | +| (_| | |_) | |_| | + \__, | .__/ \__,_| + |___/|_| + ' +} + +main_pacman() { + require_pacman libva-utils vdpauinfo +} + +main_apt() { + return 1 +} + +main_brew() { + return 1 +} + +main() { + return 0 +} + +main_parham() { + return 0 +}