URI: 
       initial commit - dimm - simple utility to control screen brightness
  HTML git clone git://kroovy.de/dimm
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit fc48ca0c71367c192be60a20cb49720fdbea5c48
   DIR parent 61003c5685b09a22d2919508ad52757eed9118c9
  HTML Author: kroovy <me@kroovy.de>
       Date:   Sun, 21 Jun 2026 11:50:21 +0200
       
       initial commit
       
       Diffstat:
         A Makefile                            |      25 +++++++++++++++++++++++++
         A dimm.c                              |      22 ++++++++++++++++++++++
       
       2 files changed, 47 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       @@ -0,0 +1,25 @@
       +.POSIX:
       +
       +BIN = dimm
       +GRP = kroovy
       +OBJ = $(BIN:=.o)
       +
       +LDFLAGS += -static -Wall -Wextra -pedantic
       +
       +all: $(BIN)
       +
       +$(BIN): $(OBJ)
       +        $(CC) $(OBJ) $(LDFLAGS) -o $@
       +
       +$(OBJ): Makefile
       +
       +clean:
       +        rm -f $(BIN) $(OBJ)
       +
       +install:
       +        cp dimm /usr/local/bin/dimm
       +        chown :$(GRP) /usr/local/bin/dimm
       +        chmod 4750 /usr/local/bin/dimm
       +
       +uninstall:
       +        rm -f /usr/local/bin/dimm
   DIR diff --git a/dimm.c b/dimm.c
       @@ -0,0 +1,22 @@
       +#include <stdio.h>
       +#include <stdlib.h>
       +
       +#define OUTPUT_FILE "/sys/class/backlight/intel_backlight/brightness"
       +
       +int main(int argc, char *argv[]) {
       +        if (argc != 2) {
       +                fprintf(stderr, "Usage: %s <number> // 1 to 19393\n", argv[0]);
       +                return 1;
       +        }
       +
       +        FILE *file = fopen(OUTPUT_FILE, "w");
       +        if (file == NULL) {
       +                perror("Error opening file");
       +                return 1;
       +        }
       +
       +        fprintf(file, "%s\n", argv[1]);
       +
       +        fclose(file);
       +        return 0;
       +}