Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Last active December 21, 2017 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e-minguez/07576e6ad70a6ce497802913546f1380 to your computer and use it in GitHub Desktop.
Save e-minguez/07576e6ad70a6ce497802913546f1380 to your computer and use it in GitHub Desktop.
Plugin for argos to regulate external screen brightness using xrand
#!/usr/bin/env bash
STEPS="0.1"
MONITORS="DP-2-1 DP-2-2"
echo "|iconName=weather-clear"
echo "---"
for i in $(seq 1.0 -${STEPS} ${STEPS})
do
echo "${i} | bash='for m in ${MONITORS}; do xrandr --output \${m} --brightness ${i}; done' terminal=false"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment