forked from Shinonome/dots-hyprland
change user option name for cheatsheet keybind path
This commit is contained in:
@@ -56,8 +56,10 @@ let configOptions = {
|
||||
'default': "auto",
|
||||
},
|
||||
},
|
||||
'configPaths': {
|
||||
'keybinds': "", //custom path to keybinds.conf for the cheatsheet
|
||||
'cheatsheet': {
|
||||
'keybinds': {
|
||||
'configPath': "" // Path to hyprland keybind config file. Leave empty for default (~/.config/hypr/hyprland/keybinds.conf)
|
||||
}
|
||||
},
|
||||
'gaming': {
|
||||
'crosshair': {
|
||||
|
||||
@@ -5,8 +5,8 @@ import Widget from "resource:///com/github/Aylur/ags/widget.js";
|
||||
import { IconTabContainer } from "../.commonwidgets/tabcontainer.js";
|
||||
const { Box, Label, Scrollable } = Widget;
|
||||
|
||||
const HYPRLAND_KEYBIND_CONFIG_FILE = userOptions.configPaths.keybinds ?
|
||||
userOptions.configPaths.keybinds : `${GLib.get_user_config_dir()}/hypr/hyprland/keybinds.conf`;
|
||||
const HYPRLAND_KEYBIND_CONFIG_FILE = userOptions.cheatsheet.keybinds.configPath ?
|
||||
userOptions.cheatsheet.keybinds.configPath : `${GLib.get_user_config_dir()}/hypr/hyprland/keybinds.conf`;
|
||||
const KEYBIND_SECTIONS_PER_PAGE = 3;
|
||||
const getKeybindList = () => {
|
||||
let data = Utils.exec(`${App.configDir}/scripts/hyprland/get_keybinds.py --path ${HYPRLAND_KEYBIND_CONFIG_FILE}`);
|
||||
|
||||
Reference in New Issue
Block a user