diff --git a/.config/ags/modules/.configuration/user_options.js b/.config/ags/modules/.configuration/user_options.js index 17b2d502d..418c352c4 100644 --- a/.config/ags/modules/.configuration/user_options.js +++ b/.config/ags/modules/.configuration/user_options.js @@ -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': { diff --git a/.config/ags/modules/cheatsheet/keybinds.js b/.config/ags/modules/cheatsheet/keybinds.js index af3076fa3..838d95309 100644 --- a/.config/ags/modules/cheatsheet/keybinds.js +++ b/.config/ags/modules/cheatsheet/keybinds.js @@ -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}`);