-
Notifications
You must be signed in to change notification settings - Fork 1
Home
jamessouth edited this page Jun 18, 2023
·
14 revisions
Click left/right to move among your various r:g:b
profiles.
In your module file:
[module/nightlight]
include-file = /home/username/.config/polybar/nightlight
type = custom/ipc
hook-0 = ~/.config/polybar/scripts/nightlight.sh
hook-1 = ~/.config/polybar/scripts/nightlight.sh -
hook-2 = ~/.config/polybar/scripts/nightlight.sh +
format-prefix =
format-prefix-padding = 1
format-padding = 1
initial = 1
click-left = "#nightlight.hook.1"
click-right = "#nightlight.hook.2"
On the initial run, hook-0 is called (with no arg). If available, the script will use the value in $XDG_DATA_HOME/nightlight
. Otherwise, it will use the last element of the profiles
array and write the previously mentioned state file.