mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-22 23:29:36 +01:00
Add new scripts
This commit is contained in:
parent
8390f52276
commit
e680a708de
21
scripts/autostart.sh
Executable file
21
scripts/autostart.sh
Executable 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
25
scripts/keyboard_backlight.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user