Skip to content

Instantly share code, notes, and snippets.

View dnisyd's full-sized avatar

Denis Seyfried dnisyd

  • Frankfurt am Main, Germany
  • X @dnisyd
View GitHub Profile
#!/usr/bin/env bash
# You can call this script like this:
# $ ./volumeControl.sh up
# $ ./volumeControl.sh down
# $ ./volumeControl.sh mute
# Script modified from these wonderful people:
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
#!/usr/bin/bash
#source: https://gist.github.com/Blaradox/030f06d165a82583ae817ee954438f2e
id=5555
function get_brightness {
xbacklight -get | cut -d '.' -f 1
}