From 728e00c3824e72de85a8642f3cc959dfb3932224 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 16 Jun 2024 21:43:24 +0700 Subject: [PATCH] change user option name for cheatsheet keybind path --- .config/ags/modules/.configuration/user_options.js | 6 ++++-- .config/ags/modules/cheatsheet/keybinds.js | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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}`);