fixing renderText script

This commit is contained in:
2026-06-11 15:14:00 +02:00
parent 3e922883f7
commit 9ad6b15130
302 changed files with 120914 additions and 20 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
#! /bin/bash
optirun true
sudo rm /tmp/.X1-lock
sudo /usr/bin/X -ac -audit 0 -config /etc/X11/xorg.conf.nvidia -sharevts -modulepath /usr/lib/nvidia/current,/usr/lib/xorg/modules -nolisten tcp -noreset :1 &
(sleep 7s &&
echo "modes available: "
xrandr -d :1
pkill screenclone && echo "screenclone detected, killing..." || echo "OK, no screenclone is running.."
RES="$1"
if [ -z "$1" ]
then
RES="1024x768"
echo "Auto resolution: "$RES
fi
xrandr -d :1 --output DP-0 --mode "$RES"
screenclone -d:1 -x 0 &
)