Add new scripts

This commit is contained in:
Şahin Akkaya 2022-03-18 01:48:16 +03:00
parent 8390f52276
commit e680a708de
2 changed files with 46 additions and 0 deletions

21
scripts/autostart.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
function run {
if ! pgrep $1 > /dev/null ;
then
$@&
fi
}
#feh --bg-scale /usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png
nitrogen --save --set-zoom-fill ~/Pictures/Wallpapers/default.jpg
run picom & disown # --experimental-backends --vsync should prevent screen tearing on most setups if needed
# Low battery notifier
#~/.config/qtile/scripts/check_battery.sh & disown
# Start welcome
#run eos-welcome & disown
$HOME/.config/polybar/launch.sh & disown
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & disown # start polkit agent from GNOME

25
scripts/keyboard_backlight.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
brightness=`cat /sys/class/leds/asus::kbd_backlight/brightness`
max=3
min=0
if [ "$1" == "inc" ]; then
brightness=`expr $brightness + 1`
else
brightness=`expr $brightness - 1`
fi
if [ $brightness -gt 3 ]; then
brightness=3
fi
if [ $brightness -lt 0 ]; then
brightness=0
fi
echo $brightness > /sys/class/leds/asus::kbd_backlight/brightness