Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created September 18, 2022 04:47
Show Gist options
  • Save lidgnulinux/b86eb9fc879c2ffbc5f2b01a135ef718 to your computer and use it in GitHub Desktop.
Save lidgnulinux/b86eb9fc879c2ffbc5f2b01a135ef718 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
bright=$(light -G | cut -b 1-2)
yadi_sembako () {
yad --scale \
--title "Yad Bright" \
--text " Bright" --min-value 0 \
--max-value=100 \
--step=5 \
--value $bright --print-partial \
--no-buttons \
--vertical \
--height 150 \
--width 55
}
yadi_sembako | while read val; do light -S $val; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment