class

Shocking::Config::Settings

Inherits Reference < Object

Constants

DEFAULT_CONFIG = "# Shocking Battery Monitor Configuration\n\n# Refresh interval in seconds\nrefresh_interval = 5\n\n# Battery name (leave empty for auto-detect)\nbattery_name = \"\"\n\n# Color theme: \"default\", \"minimal\", \"colorful\"\ntheme = \"default\"\n\n# Show history panel\nshow_history = true\n\n# History duration in minutes\nhistory_minutes = 60"

Constructors

load
Source
new(refresh_interval : Int32 = 5, battery_name : String = "", theme : String = "default", show_history : Bool = true, history_minutes : Int32 = 60)
Source
parse(content : String) : Settings
Source

Class methods

config_file_path
Source
create_default_config(path : String)
Source

Instance methods

battery_name
Source
battery_name=(battery_name : String)
Source
history_minutes
Source
history_minutes=(history_minutes : Int32)
Source
refresh_interval
Source
refresh_interval=(refresh_interval : Int32)
Source
save
Source
show_history
Source
show_history=(show_history : Bool)
Source
theme
Source
theme=(theme : String)
Source
to_toml
Source