changed volbright to work on new machine
This commit is contained in:
parent
e3f529f966
commit
02e6cfb126
|
@ -21,7 +21,7 @@ function get_mute {
|
|||
|
||||
# Uses regex to get brightness from xbacklight
|
||||
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
|
||||
|
@ -138,13 +138,13 @@ case $1 in
|
|||
|
||||
brightness_up)
|
||||
# Increases brightness and displays the notification
|
||||
light -A $brightness_step
|
||||
brightnessctl s $(($(brightnessctl g)+1))
|
||||
show_brightness_notif
|
||||
;;
|
||||
|
||||
brightness_down)
|
||||
# Decreases brightness and displays the notification
|
||||
light -U $brightness_step
|
||||
brightnessctl s $(($(brightnessctl g)-1))
|
||||
show_brightness_notif
|
||||
;;
|
||||
|
||||
|
|
2
install
2
install
|
@ -1,6 +1,6 @@
|
|||
yay -Syu
|
||||
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
|
||||
ln -sf ~/.dotfiles/i3config ~/.config/i3/config
|
||||
|
|
|
@ -28,3 +28,4 @@ rofi
|
|||
libqalculate
|
||||
rofi-calc
|
||||
xarchiver
|
||||
brightnessctl
|
||||
|
|
Loading…
Reference in a new issue