Read/Write system for Cinnamon preference file

This commit is contained in:
2023-12-21 12:17:12 +01:00
parent 6a997e4945
commit d21557b0f1
17 changed files with 180 additions and 25 deletions

View File

@@ -0,0 +1,41 @@
class PrefenceEnums(enumerate):
EXPANDOVERALLDISPLAY = "expand_over_all_displays"
SHOWONLOCKSCREEN = "show_on_lock_screen"
# Which type of image source will be used
# image_set, heic_file, source_folder
IMAGESOURCE = "image_source"
SELECTEDIMAGESET = "selected_image_set"
SELECTEDSOURCEFOLDER = "selected_source_folder"
PERIOD1IMAGE = "period_1_image"
PERIOD2IMAGE = "period_2_image"
PERIOD3IMAGE = "period_3_image"
PERIOD4IMAGE = "period_4_image"
PERIOD5IMAGE = "period_5_image"
PERIOD6IMAGE = "period_6_image"
PERIOD7IMAGE = "period_7_image"
PERIOD8IMAGE = "period_8_image"
PERIOD9IMAGE = "period_9_image"
PERIOD10IMAGE = "period_10_image"
# How the period will estimage
# network_location, custom_location, custom_time_periods
PERIODSOURCE = "period_source"
LOCATIONREFRESHINTERVALS = "location_refresh_intervals"
LATITUDE = "latitude"
LONGITUDE = "longitude"
PERIOD1STARTTIME = "period_1_start_time"
PERIOD2STARTTIME = "period_2_start_time"
PERIOD3STARTTIME = "period_3_start_time"
PERIOD4STARTTIME = "period_4_start_time"
PERIOD5STARTTIME = "period_5_start_time"
PERIOD6STARTTIME = "period_6_start_time"
PERIOD7STARTTIME = "period_7_start_time"
PERIOD8STARTTIME = "period_8_start_time"
PERIOD9STARTTIME = "period_9_start_time"
PERIOD10STARTTIME = "period_10_start_time"