diff --git a/synaptics.sh b/synaptics.sh new file mode 100755 index 0000000..197450a --- /dev/null +++ b/synaptics.sh @@ -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 + diff --git a/touchpad-gnome.sh b/touchpad-gnome.sh new file mode 100755 index 0000000..00f3f72 --- /dev/null +++ b/touchpad-gnome.sh @@ -0,0 +1 @@ +xset mouse 3 0 diff --git a/vnc.sh b/vnc.sh new file mode 100755 index 0000000..96eec6e --- /dev/null +++ b/vnc.sh @@ -0,0 +1 @@ +x11vnc -display :0 -rfbauth ~/.vnc/passwd -users andreas diff --git a/x11vnc-install.sh b/x11vnc-install.sh new file mode 100755 index 0000000..157f1f3 --- /dev/null +++ b/x11vnc-install.sh @@ -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 diff --git a/yt.sh b/yt.sh new file mode 100755 index 0000000..955e26a --- /dev/null +++ b/yt.sh @@ -0,0 +1,3 @@ +#!/bin/bash +wid=`xdotool getactivewindow` +mpsyt set "playerargs --wid=$wid"