Add community scripts for i3blocks

This commit is contained in:
2020-02-19 15:55:35 +00:00
parent 3233439d88
commit 3236629420
19 changed files with 746 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
################################
# Shows current brightness
#
# dependencies:
# - xbacklight
#
# @return {Number}: Current brightness
################################
case $BLOCK_BUTTON in
# right click
# set to `20
3) xbacklight -set 20 ;;
# scroll up
# raise brightness
4) xbacklight -inc 10 ;;
# scroll down
# lower brightness
5) xbacklight -dec 10 ;;
esac
printf "%.0f" "$(xbacklight -get)"