Major Update: created v4, new configs: alacritty, polybar, i3, and more.

This commit is contained in:
Keyitdev
2025-07-23 16:32:36 +02:00
parent fa1bbd4502
commit 7dcd9a13ad
451 changed files with 1380 additions and 7802 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/bin/sh
# default
step=+5
video_card=$(ls -1 /sys/class/backlight/)
cur_brightness=$(cat /sys/class/backlight/"$video_card"/brightness)
max_brightness=$(cat /sys/class/backlight/"$video_card"/max_brightness)
while getopts s: flag
do
case "${flag}" in
s) step=${OPTARG};;
*) echo "Usage: -s <-value/+value>";;
esac
done
step=$(echo "$step" | sed 's/+//g')
step_c=$(( (step*max_brightness)/100 ))
# step_c=$(echo "scale=2; $step*($max_brightness/100)" | bc -l | sed 's/\..*$//')
new_brightness=$((cur_brightness + step_c))
if [ "$new_brightness" -le "0" ]; then
echo "0" > /sys/class/backlight/"$video_card"/brightness
elif [ "$new_brightness" -ge "$max_brightness" ] ; then
echo "$max_brightness" > /sys/class/backlight/"$video_card"/brightness
else
echo "$new_brightness" > /sys/class/backlight/"$video_card"/brightness
fi
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
dir_icons="/usr/local/bin/icons"
max_bri=$(cat /sys/class/backlight/*/max_brightness)
cur_bri=$(cat /sys/class/backlight/*/brightness)
cur_per=$((cur_bri * 100 / max_bri))
if [ "$cur_per" -ge 50 ]; then
dunstify "Screen" "Brightness: $cur_per%" -r 100 -i "$dir_icons"/sun.svg
else
dunstify "Screen" "Brightness: $cur_per%" -r 100 -i "$dir_icons"/moon.svg
fi
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
font="dedede"
green="9ece6a"
red="db4b4b"
wallpaper="$HOME/Pictures/wallpapers/lockscreen.png"
i3lock -n --force-clock -F -i $wallpaper -e \
--refresh-rate=1 --line-uses-inside --pointer=default --pass-media-keys --pass-volume-keys --pass-screen-keys \
--inside-color="$green" --ring-color="$green" --insidever-color="$green" --ringver-color="$green" --insidewrong-color="$red" --ringwrong-color="$red" \
--keyhl-color="$green" --separator-color="$green" --bshl-color="$green" --color=000000 \
--time-str="%H:%M" --time-size=160 --time-pos="960:300" --time-font="Open sans:style=Bold" --time-color="$font" \
--date-str="%a %d %b" --date-size=45 --date-pos="960:380" --date-font="Open sans" --date-color="$font" \
--verif-text="Verifying" --greeter-text="" --wrong-text="Wrong Password!" --noinput-text="No input" \
--verif-font="Open sans" --greeter-font="Open sans" --wrong-font="Open sans" \
--verif-size=35 --greeter-size=35 --wrong-size=35 \
--verif-pos="960:540" --greeter-pos="960:600" --wrong-pos="960:540" \
--verif-color="$green" --greeter-color="$font" --wrong-color="$red" \
--bar-indicator --bar-direction=0 --bar-step=10 --bar-max-height=10 --bar-base-width=10 --bar-total-width=1920 --bar-color=00000000 --bar-pos="0:1070"
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
dir_icons="/usr/local/bin/icons"
mute=$(pactl get-source-mute @DEFAULT_SOURCE@ | sed -n 's/^Mute: //p')
if [ "$mute" = "yes" ]; then
dunstify -a "Microphone" "Microphone" "Microphone is muted" -r 100 -i /usr/local/bin/icons/mic-off.svg
elif [ "$mute" = "no" ]; then
dunstify -a "Microphone" "Microphone" "Microphone is unmuted" -r 100 -i /usr/local/bin/icons/mic.svg
fi
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
# default
step=+5
vol_max=125
cur_vol_left=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '1p'| sed 's/%//g')
cur_vol_right=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '2p' | sed 's/%//g')
cur_vol_average=$(((cur_vol_left+cur_vol_right)/2))
while getopts s:m: flag
do
case "${flag}" in
s) step=${OPTARG};;
m) vol_max=${OPTARG};;
*) echo "Usage: -s <+value/-value> -m <max volume>";;
esac
done
new_vol=$((cur_vol_average + step))
if [ "$new_vol" -le "0" ]; then
pactl set-sink-volume @DEFAULT_SINK@ 0%
elif [ "$new_vol" -ge "$vol_max" ] ; then
pactl set-sink-volume @DEFAULT_SINK@ "$vol_max"%
else
pactl set-sink-volume @DEFAULT_SINK@ "$step"%
fi
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
dir_icons="/usr/local/bin/icons"
vol_quiet=33
vol_loud=66
cur_vol_left=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '1p'| sed 's/%//g')
cur_vol_right=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '2p' | sed 's/%//g')
cur_vol_average=$(((cur_vol_left+cur_vol_right)/2))
if [ "$cur_vol_average" -le "$vol_quiet" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume.svg
elif [ "$cur_vol_average" -gt "$vol_quiet" ] && [ "$cur_vol_average" -le "$vol_loud" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume-1.svg
elif [ "$cur_vol_average" -gt "$vol_loud" ]; then
dunstify "Speakers" "Volume: $cur_vol_average%" -r 100 -i "$dir_icons"/volume-2.svg
fi
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
dir_icons="/usr/local/bin/icons"
vol_quiet=33
vol_loud=66
cur_vol_left=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '1p'| sed 's/%//g')
cur_vol_right=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]\+%' | sed -n '2p' | sed 's/%//g')
cur_vol_average=$(((cur_vol_left+cur_vol_right)/2))
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | sed -n 's/^Mute: //p')
if [ "$mute" = "yes" ]; then
dunstify "Speakers" "Speakers are muted" -r 100 -i "$dir_icons"/volume-x.svg
elif [ "$mute" = "no" ]; then
if [ "$cur_vol_average" -le "$vol_quiet" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume.svg
elif [ "$cur_vol_average" -gt "$vol_quiet" ] && [ "$cur_vol_average" -le "$vol_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-1.svg
elif [ "$cur_vol_average" -gt "$vol_loud" ]; then
dunstify "Speakers" "Speakers are unmuted" -r 100 -i "$dir_icons"/volume-2.svg
fi
fi