initial commit
This commit is contained in:
21
dotfiles/local/bin/brightness
Executable file
21
dotfiles/local/bin/brightness
Executable 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
3
dotfiles/local/bin/desk_sync
Executable 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
2
dotfiles/local/bin/hibernate
Executable file
@ -0,0 +1,2 @@
|
||||
xtrlock&
|
||||
systemctl hibernate
|
6
dotfiles/local/bin/kbd_brightness
Executable file
6
dotfiles/local/bin/kbd_brightness
Executable 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
4
dotfiles/local/bin/scan
Executable 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
|
Reference in New Issue
Block a user