From 0c2916705753605d2b935832b0fcad49afe93dd5 Mon Sep 17 00:00:00 2001 From: Madjid Taha Date: Sun, 2 Nov 2025 17:23:31 +0100 Subject: [PATCH] try something for the nyx-4 feedback --- .../modules/cheatsheet/CheatsheetKeybinds.qml | 37 ++++---- .../quickshell/ii/modules/common/Config.qml | 2 +- .../ii/modules/settings/InterfaceConfig.qml | 84 ++----------------- 3 files changed, 26 insertions(+), 97 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml b/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml index 80208df5e..d47acc9a0 100644 --- a/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml +++ b/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml @@ -17,25 +17,20 @@ Item { // Excellent symbol explaination and source : // http://xahlee.info/comp/unicode_computing_symbols.html // https://www.nerdfonts.com/cheat-sheet - property list superMap: [ - "󰖳", "󰌽", "⌘", "", "󰨡", "", "", - "󰣇", "", "", "", "", " ", "", - "󱄛", "󰀲", "󰟍", "" - ] property var macSymbolMap: ({ - "Ctrl": "󰘴" , - "Alt": "󰘵" , - "Shift": "󰘶" , - "Space": "󱁐" , - "Tab": "↹" , - "Equal": "󰇼" , - "Minus": "" , - "Print": "" , - "BackSpace": "󰭜" , - "Delete": "⌦" , - "Return": "󰌑" , - "Period": "." , - "Escape": "⎋" + "Ctrl": "󰘴", + "Alt": "󰘵", + "Shift": "󰘶", + "Space": "󱁐", + "Tab": "↹", + "Equal": "󰇼", + "Minus": "", + "Print": "", + "BackSpace": "󰭜", + "Delete": "⌦", + "Return": "󰌑", + "Period": ".", + "Escape": "⎋" }) property var functionSymbolMap: ({ "F1": "󱊫", @@ -53,7 +48,7 @@ Item { }) property var mouseSymbolMap: ({ - "mouse_up": "󱕐" , + "mouse_up": "󱕐", "mouse_down": "󱕑", "mouse:272": "L󰍽", "mouse:273": "R󰍽", @@ -74,8 +69,8 @@ Item { "Return": "Enter", // "Shift": "", }, - Config.options.appearance.keybinds.superKey > 0 ? { - "Super": superMap[Config.options.appearance.keybinds.superKey], + !!Config.options.appearance.keybinds.superKey ? { + "Super": Config.options.appearance.keybinds.superKey, }: {}, Config.options.appearance.keybinds.useMacSymbol ? macSymbolMap : {}, Config.options.appearance.keybinds.useFnSymbol ? functionSymbolMap : {}, diff --git a/dots/.config/quickshell/ii/modules/common/Config.qml b/dots/.config/quickshell/ii/modules/common/Config.qml index 6ae8d25f8..c4af0a850 100644 --- a/dots/.config/quickshell/ii/modules/common/Config.qml +++ b/dots/.config/quickshell/ii/modules/common/Config.qml @@ -128,7 +128,7 @@ Singleton { // 0: 󰖳 | 1: 󰌽 | 2: 󰘳 | 3:  | 4: 󰨡 // 5:  | 6:  | 7: 󰣇 | 8:  | 9:  // 10:  | 11:  | 12:  | 13:  | 14: 󱄛 - property int superKey: 0 + property string superKey: "󰖳" property bool useMacSymbol: false property bool useMacLikeShortcut: false property bool useMouseSymbol: false diff --git a/dots/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/dots/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 79b01bf95..b1d51063b 100644 --- a/dots/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/dots/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -1019,87 +1019,21 @@ ContentPage { ContentSubsection { title: Translation.tr("Super Key Symbol") + tooltip: Translation.tr("Choose a symbol from this list or edit config.json and add your own nerd symbol in appearance.keybinds.superKey.") ConfigSelectionArray { currentValue: Config.options.appearance.keybinds.superKey onSelected: newValue => { Config.options.appearance.keybinds.superKey = newValue; } // Use a nerdfont to see the icons - // 0: 󰖳 | 1: 󰌽 | 2: 󰘳 | 3:  | 4: 󰨡 - // 5:  | 6:  | 7: 󰣇 | 8:  | 9:  - // 10:  | 11:  | 12:  | 13:  | 14: 󱄛 - // 15: 󰀲 | 16: 󰟍 | 17:  | - options: [ - { - displayName: "󰖳", - value: 0 - }, - { - displayName: "", - value: 3 - }, - { - displayName: "󰨡", - value: 4 - }, - { - displayName: "", - value: 5 - }, - { - displayName: "󰣇", - value: 7 - }, - { - displayName: "", - value: 12 - }, - { - displayName: "", - value: 13 - }, - { - displayName: "", - value: 11 - }, - { - displayName: "", - value: 10 - }, - { - displayName: "", - value: 8 - }, - { - displayName: "󱄛", - value: 14 - }, - { - displayName: "", - value: 9 - }, - { - displayName: "", - value: 6 - }, - { - displayName: "󰘳", - value: 2 - }, - { - displayName: "󰀲", - value: 15 - }, - { - displayName: "󰟍", - value: 16 - }, - { - displayName: "", - value: 17 - }, - - ] + options: ([ + "󰖳", "", "󰨡", "", "󰌽", "󰣇", "", "", "", + "", "", "󱄛", "", "", "⌘", "󰀲", "󰟍", "" + ]).map(icon => { return { + displayName: icon, + value: icon + } + }) } }