removed swaylock & swayidle and using hyprlock & hypridle

This commit is contained in:
sankalp committed 2024-03-01 15:10:32 +05:45
1 parent 6cc66064b0
commit 6561acabdc
7 files changed
+146 -71

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
############ Variables ############
enable_battery=false
####### Check availability ########
for battery in /sys/class/power_supply/*BAT*; do
if [[ -f "$battery/uevent" ]]; then
enable_battery=true
break
fi
done
############# Output #############
if [[ $enable_battery == true ]]; then
if [[ $(cat /sys/class/power_supply/*/status | head -1) == "Charging" ]]; then
echo -n "(+) "
fi
echo -n "$(cat /sys/class/power_supply/*/capacity | head -1)"% remaining
fi
echo ''