forked from Shinonome/dots-hyprland
waffles: start menu apps
This commit is contained in:
@@ -106,9 +106,9 @@ Singleton {
|
||||
if (newVolume - lastVolume > maxAllowedIncrease) {
|
||||
sink.audio.volume = lastVolume;
|
||||
root.sinkProtectionTriggered(Translation.tr("Illegal increment"));
|
||||
} else if (Math.round(newVolume * 100) / 100 > maxAllowed || newVolume > root.hardMaxValue) {
|
||||
} else if (newVolume > maxAllowed || newVolume > root.hardMaxValue) {
|
||||
root.sinkProtectionTriggered(Translation.tr("Exceeded max allowed"));
|
||||
sink.audio.volume = maxAllowed;
|
||||
sink.audio.volume = Math.min(lastVolume, maxAllowed);
|
||||
}
|
||||
lastVolume = sink.audio.volume;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,17 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// https://specifications.freedesktop.org/menu/latest/category-registry.html
|
||||
property list<string> mainRegisteredCategories: ["AudioVideo", "Development", "Education", "Game", "Graphics", "Network", "Office", "Science", "Settings", "System", "Utility"]
|
||||
property list<string> appCategories: DesktopEntries.applications.values.reduce((acc, entry) => {
|
||||
for (const category of entry.categories) {
|
||||
if (!acc.includes(category) && mainRegisteredCategories.includes(category)) {
|
||||
acc.push(category);
|
||||
}
|
||||
}
|
||||
return acc;
|
||||
}, []).sort()
|
||||
|
||||
property var searchActions: [
|
||||
{
|
||||
action: "accentcolor",
|
||||
|
||||
Reference in New Issue
Block a user