Options#
- class ignis.options.Options(*args: Any, **kwargs: Any)#
Options for Ignis.
Warning
Use already initialized instance of this class:
from ignis.options import options print(options.notifications.dnd)
Below are classes with options, their names begin with a capital letter. However, if you want to get the current value of an option or set a value, use an initialized instance that starts with a lowercase letter.
- For example:
Notifications
->notifications
Recorder
->recorder
and etc.
You can use classes (not instances of them) to obtain default values of options.
Example usage:
from ignis.options import options # Get an option value print(options.notifications.dnd) # Set a new value for an option options.notifications.dnd = True # Connect to an option change event options.notifications.connect_option("dnd", lambda: print("option dnd changed! new value:", options.notifications.dnd)) # You can also bind to an option! options.notifications.bind("dnd") # Obtain the default value of an option print(options.Notifications.popup_timeout)
- class Notifications(*args: Any, **kwargs: Any)#
Options for the
NotificationService
.-
dnd:
bool
= False# Do Not Disturb mode.
If set to
True
, thenew_popup
signal will not be emitted, and all newNotification
instances will havepopup
set toFalse
.
-
dnd:
- class Recorder(*args: Any, **kwargs: Any)#
Options for the
RecorderService
.
- class Applications(*args: Any, **kwargs: Any)#
Options for the
ApplicationsService
.
- class Wallpaper(*args: Any, **kwargs: Any)#
Options for the
WallpaperService
.