Add Config Files

This commit is contained in:
ayushDumasia 2024-09-12 22:26:43 +05:30
parent ade387bdb6
commit f071a73fdb
520 changed files with 45353 additions and 1 deletions

View file

@ -0,0 +1,14 @@
# !/usr/bash
if [ $(pgrep -c hyprpaper) -ne 0 ] ; then
hyprctl hyprpaper unload all
killall hyprpaper
fi
TARGET="/home/archer/Downloads/wallpaper"
WALLPAPER=$( find $TARGET -type f -regex '.*\.\(jpg\|jpeg\|png\|webp\)' | shuf -n 1 )
echo "preload = $WALLPAPER" > /home/archer/.config/hypr/hyprpaper.conf
echo "wallpaper = eDP-1, $WALLPAPER" >> /home/archer/.config/hypr/hyprpaper.conf
echo "splash = on" >> /home/archer/.config/hypr/hyprpaper.conf
echo "ipc = off" >> /home/archer/.config/hypr/hyprpaper.conf

View file

@ -0,0 +1,17 @@
# !/usr/bash
sleep 60s
PACMAN_UPDATES_COUNT=$( checkupdates | wc -l)
sleep 30s
AUR_UPDATES_COUNT=$(pacman -Qm | aur vercmp | wc -l)
sleep 30s
TOTAL_UPDATES_COUNT=$((PACMAN_UPDATES_COUNT+AUR_UPDATES_COUNT))
if [ $TOTAL_UPDATES_COUNT -gt 0 ] ; then
echo -e "\uf019"
fi

View file

@ -0,0 +1,11 @@
# !/usr/bash
CURRENT_BRIGHTNESS=$( brightnessctl -m | awk -F, '{print $4}' | tr -d % )
OLD_BRIGHTNESS=$( cat /etc/xdg/waybar/scripts/old-brightness.txt )
if [ "$CURRENT_BRIGHTNESS" -ne 1 ] ; then
echo "$CURRENT_BRIGHTNESS" > /etc/xdg/waybar/scripts/old-brightness.txt;
brightnessctl set 1%;
else
brightnessctl set "$OLD_BRIGHTNESS"%;
fi