Update to Latest
This commit is contained in:
parent
d1bbbcbb15
commit
71d6a8ab3b
157 changed files with 3467 additions and 5151 deletions
11
waybar/scripts/toggle-brightness.sh
Executable file
11
waybar/scripts/toggle-brightness.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue