mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-24 15:54:36 +01:00
brightness script now reads the current-value
This commit is contained in:
parent
09ba1fe1ad
commit
29896214c4
@ -13,7 +13,7 @@ MiscMenubarDefault=FALSE
|
|||||||
MiscMouseAutohide=FALSE
|
MiscMouseAutohide=FALSE
|
||||||
MiscMouseWheelZoom=TRUE
|
MiscMouseWheelZoom=TRUE
|
||||||
MiscToolbarDefault=FALSE
|
MiscToolbarDefault=FALSE
|
||||||
MiscConfirmClose=TRUE
|
MiscConfirmClose=FALSE
|
||||||
MiscCycleTabs=TRUE
|
MiscCycleTabs=TRUE
|
||||||
MiscTabCloseButtons=TRUE
|
MiscTabCloseButtons=TRUE
|
||||||
MiscTabCloseMiddleClick=TRUE
|
MiscTabCloseMiddleClick=TRUE
|
||||||
|
@ -9,7 +9,9 @@ else
|
|||||||
selected_display="${displays[0]}"
|
selected_display="${displays[0]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zenity --scale --title "Set brightness of $selected_display" --value=100 --print-partial |
|
current_brightness=($(xrandr --current --verbose | grep -m1 Brightness | awk '{print $2}' | sed 's/0.//' | sed 's/.0/00/' ))
|
||||||
|
|
||||||
|
zenity --scale --title "Set brightness of $selected_display" --value=$current_brightness --print-partial |
|
||||||
while read brightness
|
while read brightness
|
||||||
do
|
do
|
||||||
xrandr --output "$selected_display" --brightness $(awk '{print $1/100}' <<<"$brightness"})
|
xrandr --output "$selected_display" --brightness $(awk '{print $1/100}' <<<"$brightness"})
|
||||||
|
Loading…
Reference in New Issue
Block a user