I have added a new widget in my btt with a script to activate dark mode and update the widgets appearance.
tell application "System Events" tell appearance preferences get properties if dark mode is false then return "OFF" else return "ON" end if end tell end tell
I want to do the same with nightshift. The toggle button works fine but I cannot update the button because I have not found how to get the "nightshift-state"
unfortunately the nightshift switch in the macOS sidebar is not updated by the toggle-button of btt (the dnd switch is directly updated with this:
tell application "BetterTouchTool"
return get_number_variable "SystemDoNotDisturbState"
Would be very happy if you could help
thanks and br