exported useFlag from statusicons to user_options

This commit is contained in:
SuperSuslik312 2024-03-28 17:54:15 +03:00
parent 27213b6bc4
commit 4a14adbe6d
2 changed files with 5 additions and 1 deletions

View file

@ -273,7 +273,7 @@ const HyprlandXkbKeyboardLayout = async ({ useFlag } = {}) => {
const OptionalKeyboardLayout = async () => {
try {
return await HyprlandXkbKeyboardLayout({ useFlag: false });
return await HyprlandXkbKeyboardLayout({ useFlag: userOptions.layout.useFlag });
} catch {
return null;
}

View file

@ -100,6 +100,10 @@ let configOptions = {
'prevTab': "Ctrl+Page_Up",
},
},
'layout': {
// Use or not country flags instead of text in default hyprland kb_layout option
'useFlag': false
}
}
// Override defaults with user's options