forked from Shinonome/dots-hyprland
cheatsheet: rename keybindListFunc -> getKeybindList
This commit is contained in:
@@ -8,7 +8,7 @@ const { Box, Label, Scrollable } = Widget;
|
|||||||
const HYPRLAND_KEYBIND_CONFIG_FILE = userOptions.configPaths.keybinds ?
|
const HYPRLAND_KEYBIND_CONFIG_FILE = userOptions.configPaths.keybinds ?
|
||||||
userOptions.configPaths.keybinds : `${GLib.get_user_config_dir()}/hypr/hyprland/keybinds.conf`;
|
userOptions.configPaths.keybinds : `${GLib.get_user_config_dir()}/hypr/hyprland/keybinds.conf`;
|
||||||
const KEYBIND_SECTIONS_PER_PAGE = 3;
|
const KEYBIND_SECTIONS_PER_PAGE = 3;
|
||||||
const keybindListfunc = () => {
|
const getKeybindList = () => {
|
||||||
let data = Utils.exec(`${App.configDir}/scripts/hyprland/get_keybinds.py --path ${HYPRLAND_KEYBIND_CONFIG_FILE}`);
|
let data = Utils.exec(`${App.configDir}/scripts/hyprland/get_keybinds.py --path ${HYPRLAND_KEYBIND_CONFIG_FILE}`);
|
||||||
if (data == "\"error\"") {
|
if (data == "\"error\"") {
|
||||||
Utils.timeout(2000, () => Utils.execAsync(['notify-send',
|
Utils.timeout(2000, () => Utils.execAsync(['notify-send',
|
||||||
@@ -20,7 +20,7 @@ const keybindListfunc = () => {
|
|||||||
}
|
}
|
||||||
return JSON.parse(data);
|
return JSON.parse(data);
|
||||||
};
|
};
|
||||||
const keybindList = keybindListfunc();
|
const keybindList = getKeybindList();
|
||||||
|
|
||||||
const keySubstitutions = {
|
const keySubstitutions = {
|
||||||
"Super": "",
|
"Super": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user