forked from Shinonome/dots-hyprland
wbar: add right click menus
This commit is contained in:
@@ -563,6 +563,10 @@ Singleton {
|
||||
}
|
||||
|
||||
property JsonObject waffles: JsonObject {
|
||||
// Animations on Windoes are kinda janky. Set the following to
|
||||
// false will make (some) stuff also be like that for accuracy.
|
||||
// Example: the right-click menu of the Start button
|
||||
property bool smootherAnimations: true
|
||||
property JsonObject bar: JsonObject {
|
||||
property bool bottom: true
|
||||
property bool leftAlignApps: false
|
||||
|
||||
@@ -285,4 +285,14 @@ Singleton {
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
function toTitleCase(str) {
|
||||
// Replace "-" and "_" with space, then capitalize each word
|
||||
return str.replace(/[-_]/g, " ").replace(
|
||||
/\w\S*/g,
|
||||
function(txt) {
|
||||
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user