forked from Shinonome/dots-hyprland
feat: sound alerts for battery and pomodoro (#2223)
This commit is contained in:
@@ -113,6 +113,20 @@ ContentPage {
|
||||
}
|
||||
}
|
||||
}
|
||||
ConfigRow {
|
||||
uniform: true
|
||||
ConfigSpinBox {
|
||||
icon: "charger"
|
||||
text: Translation.tr("Full warning")
|
||||
value: Config.options.battery.full
|
||||
from: 0
|
||||
to: 101
|
||||
stepSize: 5
|
||||
onValueChanged: {
|
||||
Config.options.battery.full = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ContentSection {
|
||||
@@ -241,6 +255,30 @@ ContentPage {
|
||||
}
|
||||
}
|
||||
|
||||
ContentSection {
|
||||
icon: "notification_sound"
|
||||
title: Translation.tr("Sounds")
|
||||
ConfigRow {
|
||||
uniform: true
|
||||
ConfigSwitch {
|
||||
buttonIcon: "battery_android_full"
|
||||
text: Translation.tr("Battery")
|
||||
checked: Config.options.sounds.battery
|
||||
onCheckedChanged: {
|
||||
Config.options.sounds.battery = checked;
|
||||
}
|
||||
}
|
||||
ConfigSwitch {
|
||||
buttonIcon: "av_timer"
|
||||
text: Translation.tr("Pomodoro")
|
||||
checked: Config.options.sounds.pomodoro
|
||||
onCheckedChanged: {
|
||||
Config.options.sounds.pomodoro = checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ContentSection {
|
||||
icon: "nest_clock_farsight_analog"
|
||||
title: Translation.tr("Time")
|
||||
|
||||
Reference in New Issue
Block a user