feat: play system bell on volume change

it can be disabled within the colorshell's configuration file, under the `misc` section: misc:play_bell_on_volume_change: (true|false)
This commit is contained in:
retrozinndev
2025-07-18 12:32:30 -03:00
parent 07d30747bf
commit a06fb5f9e7
3 changed files with 28 additions and 9 deletions
+9 -1
View File
@@ -28,7 +28,7 @@ export type ConfigEntries = Partial<{
}>;
clock: Partial<{
/** use the same formats as gnu's `date` command */
/** use the same format as gnu's `date` command */
date_format: string;
}>;
@@ -42,6 +42,10 @@ export type ConfigEntries = Partial<{
/** whether to save night light values to disk */
save_on_shutdown: boolean;
}>;
misc: Partial<{
play_bell_on_volume_change: boolean;
}>;
}>;
type ValueTypes = "string" | "boolean" | "object" | "number" | "undefined" | "any";
@@ -79,6 +83,10 @@ class Config extends GObject.Object {
clock: {
date_format: "%A %d, %H:%M"
},
misc: {
play_bell_on_volume_change: true
}
};