10
hosts/elara/system/scripts/card.sh
Normal file
10
hosts/elara/system/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
|
14
hosts/elara/system/scripts/mouse.sh
Normal file
14
hosts/elara/system/scripts/mouse.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
SEARCH_STRINGS=(
|
||||
"Mouse"
|
||||
"Razer DeathAdder Elite"
|
||||
"Razer DeathAdder V3 HyperSpeed"
|
||||
)
|
||||
|
||||
for search_string in "${SEARCH_STRINGS[@]}"; do
|
||||
echo "Searching for devices matching: ${search_string}"
|
||||
|
||||
for f in $(grep -l "${search_string}" /sys/bus/usb/devices/*/product 2>/dev/null | sed "s/product/power\\/control/"); do
|
||||
echo "Setting power control to 'on' for: ${f}"
|
||||
echo on >| "${f}"
|
||||
done
|
||||
done
|
Reference in New Issue
Block a user