added the rest of the scripts

This commit is contained in:
Hion-V 2022-10-31 00:27:59 +01:00
parent e286b1bfd1
commit 447381c63f
5 changed files with 55 additions and 0 deletions

17
synaptics.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#LeftEdge = 77
#RightEdge = 1871
#TopEdge = 72
#BottomEdge = 1262
#RightButtonAreaLeft = 974
#RightButtonAreaRight = 0
#RightButtonAreaTop = 1093
#RightButtonAreaBottom = 0
synclient RightButtonAreaLeft=1274
synclient MiddleButtonAreaRight=1273
synclient MiddleButtonAreaLeft=600
synclient MiddleButtonAreaTop=1093

1
touchpad-gnome.sh Executable file
View File

@ -0,0 +1 @@
xset mouse 3 0

1
vnc.sh Executable file
View File

@ -0,0 +1 @@
x11vnc -display :0 -rfbauth ~/.vnc/passwd -users andreas

33
x11vnc-install.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
sudo apt-get -y install x11vnc
sudo mkdir /etc/x11vnc
sudo x11vnc --storepasswd /etc/x11vnc/vncpwd
sudo bash -c "echo [Unit] >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo Description=Start x11vnc at startup. >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo After=multi-user.target >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo [Service] >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo Type=simple >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo [Install] >> /lib/systemd/system/x11vnc.service"
sudo bash -c "echo WantedBy=multi-user.target >> /lib/systemd/system/x11vnc.service"
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service

3
yt.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
wid=`xdotool getactivewindow`
mpsyt set "playerargs --wid=$wid"