mirror of
https://github.com/danbulant/dotfiles
synced 2026-05-19 04:18:55 +00:00
remove system keybind loading
This commit is contained in:
parent
60f8ecf9b5
commit
91c9ea9df6
1 changed files with 18 additions and 18 deletions
|
|
@ -16,13 +16,13 @@ import Quickshell.Hyprland
|
|||
Singleton {
|
||||
id: root
|
||||
property string keybindParserPath: FileUtils.trimFileProtocol(`${Directories.config}/quickshell/scripts/hyprland/get_keybinds.py`)
|
||||
property string defaultKeybindConfigPath: FileUtils.trimFileProtocol(`${Directories.config}/hypr/hyprland/keybinds.conf`)
|
||||
// property string defaultKeybindConfigPath: FileUtils.trimFileProtocol(`${Directories.config}/hypr/hyprland/keybinds.conf`)
|
||||
property string userKeybindConfigPath: FileUtils.trimFileProtocol(`${Directories.config}/hypr/hyprland.conf`)
|
||||
property var defaultKeybinds: {"children": []}
|
||||
// property var defaultKeybinds: {"children": []}
|
||||
property var userKeybinds: {"children": []}
|
||||
property var keybinds: ({
|
||||
children: [
|
||||
...(defaultKeybinds.children ?? []),
|
||||
// ...(defaultKeybinds.children ?? []),
|
||||
...(userKeybinds.children ?? []),
|
||||
]
|
||||
})
|
||||
|
|
@ -32,27 +32,27 @@ Singleton {
|
|||
|
||||
function onRawEvent(event) {
|
||||
if (event.name == "configreloaded") {
|
||||
getDefaultKeybinds.running = true
|
||||
// getDefaultKeybinds.running = true
|
||||
getUserKeybinds.running = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: getDefaultKeybinds
|
||||
running: true
|
||||
command: ["python3", root.keybindParserPath, "--path", root.defaultKeybindConfigPath,]
|
||||
// Process {
|
||||
// id: getDefaultKeybinds
|
||||
// running: true
|
||||
// command: ["python3", root.keybindParserPath, "--path", root.defaultKeybindConfigPath,]
|
||||
|
||||
stdout: SplitParser {
|
||||
onRead: data => {
|
||||
try {
|
||||
root.defaultKeybinds = JSON.parse(data)
|
||||
} catch (e) {
|
||||
console.error("[CheatsheetKeybinds] Error parsing keybinds:", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// stdout: SplitParser {
|
||||
// onRead: data => {
|
||||
// try {
|
||||
// root.defaultKeybinds = JSON.parse(data)
|
||||
// } catch (e) {
|
||||
// console.error("[CheatsheetKeybinds] Error parsing keybinds:", e)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Process {
|
||||
id: getUserKeybinds
|
||||
|
|
|
|||
Loading…
Reference in a new issue