Skip to content

Instantly share code, notes, and snippets.

@NWuensche
Created August 16, 2017 17:52
Show Gist options
  • Save NWuensche/1f9dc5dfe21b769aa2344e4fec53946a to your computer and use it in GitHub Desktop.
Save NWuensche/1f9dc5dfe21b769aa2344e4fec53946a to your computer and use it in GitHub Desktop.
Script for light
security.wrappers.light-intel = { source = pkgs.writeScript "light-intel"
''
#!/bin/sh
CURR=$(cat /sys/class/backlight/intel_backlight/brightness)
echo $(($CURR+$1)) | tee /sys/class/backlight/intel_backlight/brightness
'';
owner = "root"; setuid = true; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment