initial commit

This commit is contained in:
2024-10-16 19:11:15 +02:00
commit 6da0038f5d
39 changed files with 5141 additions and 0 deletions

21
dotfiles/local/bin/brightness Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
FILE=/sys/class/backlight/amdgpu_bl1/brightness
if ! ( test -w "$FILE" ); then
xterm +cm -cr RED -bg BLACK -selbg WHITE -selfg BLACK -fg WHITE -fa Monospace -fs 14 -e "sudo chmod 777 $FILE"
fi
new=$(cat $FILE)
if [ "$1" = "up" ]; then
new=$((new + 13))
elif [ "$1" = "down" ];then
new=$((new - 13))
fi
if [ $new -gt 255 ]; then
new=255
elif [ $new -lt 0 ]; then
new=0
fi
echo $new > $FILE

3
dotfiles/local/bin/desk_sync Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
unison /home/tom/Desktop ssh://tom@tmoron.fr:1880//home/tom/Desktop_sync/Desktop $@

2
dotfiles/local/bin/hibernate Executable file
View File

@ -0,0 +1,2 @@
xtrlock&
systemctl hibernate

View File

@ -0,0 +1,6 @@
#!/bin/bash
if [ "$1" = "up" ]; then
asusctl -n
elif [ "$1" = "down" ];then
asusctl -p
fi

4
dotfiles/local/bin/scan Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
until sudo iwctl station wlan0 show | grep iPhone > /dev/null;do
sudo iwctl station wlan0 scan 2>&1 > /dev/null
done

File diff suppressed because it is too large Load Diff