first commit

This commit is contained in:
AngeD 2021-09-21 17:11:57 +02:00
commit 1997d73859
13 changed files with 2334 additions and 0 deletions

9
bin/epitest Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/bash
if [ "$EUID" != '0' ]; then
echo 'error: you cannot perform this operation unless you are root.'
exit 1
fi
systemctl start docker
docker run -it --rm --name epitest -v "$PWD":/tmp epitechcontent/epitest-docker:latest /bin/bash

8
bin/mouse_360 Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/bash
# counts target = 8182 ~ 25cm
sleep 3
for _ in {0..1023}; do
xdotool mousemove_relative 8 0
done

7
bin/toggle_touchpad Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
DEV="Elan Touchpad"
ON=$(xinput list-props "$DEV" | awk -F ':' '$1 ~ "Device Enabled" {print $2}')
xinput set-prop "$DEV" "Device Enabled" "$((1-ON))"

18
bin/virt-manager-launcher Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/bash
if [ "$EUID" != '0' ]; then
echo 'error: you cannot perform this operation unless you are root.'
exit 1
fi
systemctl start libvirtd
virsh net-start default
if [ -n "$SUDO_USER" ]; then
su "$SUDO_USER" -c 'virt-manager --no-fork'
else
virt-manager --no-fork
fi
virsh net-destroy default
systemctl stop libvirtd