Created
August 16, 2017 17:52
-
-
Save NWuensche/1f9dc5dfe21b769aa2344e4fec53946a to your computer and use it in GitHub Desktop.
Script for light
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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