changed volbright to work on new machine

This commit is contained in:
ObeseTermite 2025-05-17 18:55:34 -07:00
parent e3f529f966
commit 02e6cfb126
3 changed files with 5 additions and 4 deletions

View file

@ -21,7 +21,7 @@ function get_mute {
# Uses regex to get brightness from xbacklight # Uses regex to get brightness from xbacklight
function get_brightness { function get_brightness {
light | grep -Po '[0-9]{1,3}' | head -n 1 printf "%.0f\n" $(bc -l <<< "$(brightnessctl g) / $(brightnessctl m)*100")
} }
# Returns a mute icon, a volume-low icon, or a volume-high icon, depending on the volume # Returns a mute icon, a volume-low icon, or a volume-high icon, depending on the volume
@ -138,13 +138,13 @@ case $1 in
brightness_up) brightness_up)
# Increases brightness and displays the notification # Increases brightness and displays the notification
light -A $brightness_step brightnessctl s $(($(brightnessctl g)+1))
show_brightness_notif show_brightness_notif
;; ;;
brightness_down) brightness_down)
# Decreases brightness and displays the notification # Decreases brightness and displays the notification
light -U $brightness_step brightnessctl s $(($(brightnessctl g)-1))
show_brightness_notif show_brightness_notif
;; ;;

View file

@ -1,6 +1,6 @@
yay -Syu yay -Syu
sudo pacman -S --needed --noconfirm - < installpackages.txt sudo pacman -S --needed --noconfirm - < installpackages.txt
yay -S light i3lock-color flat-remix-gtk --needed --noconfirm yay -S i3lock-color flat-remix-gtk --needed --noconfirm
mkdir -p ~/.config/i3 mkdir -p ~/.config/i3
ln -sf ~/.dotfiles/i3config ~/.config/i3/config ln -sf ~/.dotfiles/i3config ~/.config/i3/config

View file

@ -28,3 +28,4 @@ rofi
libqalculate libqalculate
rofi-calc rofi-calc
xarchiver xarchiver
brightnessctl