Some changes in waybar and rofi

This commit is contained in:
ayushDumasia 2024-10-08 10:04:45 +05:30
parent 55247264fc
commit 6ff0945459
236 changed files with 675 additions and 28535 deletions

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