A lightweight Linux utility for applying gamma correction to display outputs using DRM/KMS. This tool allows you to adjust the RGB color channels of your display, commonly used for blue light filtering or color temperature adjustments. This was made mainly to provide Night Light feature to Cosmic DE
sudo apt-get install libdrm-dev build-essentialmakesudo make installgammad <card_name> <temperature>card_name: Name of the DRM card (e.g., card0, card1)temperature: Color temperature in Kelvin (1000-10000)
6500K = neutral white (daylight)5000K = slightly warm3000K = warm (evening)2000K = very warm (night shift)
gammad card1 3000To list available DRM devices:
ls /dev/dri/gammad should be injected right after shebang in /usr/bin/cosmic-greeter-start:
#!/bin/sh
gammad card1 3000
rm -rf /run/cosmic-greeter/cosmic/com.system76.CosmicSettingsDaemon/v1/* > /dev/null 2>&1
exec cosmic-comp cosmic-greeter > /dev/null 2>&1