Skip to content

Instantly share code, notes, and snippets.

@lifeofcoding
Created July 2, 2020 21:18

Revisions

  1. lifeofcoding created this gist Jul 2, 2020.
    4 changes: 4 additions & 0 deletions change-brightness.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/bash
    # ./change-brghtness.sh 60
    newVal=$(printf "%3.2f\n" $(echo "scale=2; $1 / 100" | bc))
    sudo ./display-first-instance.sh | xargs -I{} xrandr --output {} --brightness "$newVal"