Refactor structure
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
10
hosts/eirene/hardware/scripts/card.sh
Normal file
10
hosts/eirene/hardware/scripts/card.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
AMD=/dev/dri/by-path/pci-0000:06:00.0-card
|
||||
NVIDIA=/dev/dri/by-path/pci-0000:01:00.0-card
|
||||
|
||||
if [[ -e "${AMD}" ]]; then
|
||||
CARD=${AMD}
|
||||
else
|
||||
CARD=${NVIDIA}
|
||||
fi
|
||||
|
||||
ln -sf "${CARD}" "${HOME}"/.config/hypr/card
|
Reference in New Issue
Block a user