Skip to content

Instantly share code, notes, and snippets.

@luzfcb
Created June 5, 2024 20:32
Show Gist options
  • Save luzfcb/a6f82eee223ee0095c7825c3fce423cf to your computer and use it in GitHub Desktop.
Save luzfcb/a6f82eee223ee0095c7825c3fce423cf to your computer and use it in GitHub Desktop.
systemd open_rgb.service . Load an OpenRGB profile when the computer has a cold boot or wakeup from suspension mode.
# /etc/systemd/system/open_rgb.service
# sudo systemctl enable open_rgb.service
# sudo systemctl start open_rgb.service
[Unit]
Description=OpenRGB control
After=multi-user.target suspend.target
[Service]
Type=oneshot
ExecStart=/usr/bin/openrgb --localconfig -p <profile_name>.orp
WorkingDirectory=/home/<user>/.config/OpenRGB
User=<user>
Group=i2c
[Install]
WantedBy=multi-user.target suspend.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment