mirror of
https://github.com/anotherhadi/settuings.git
synced 2026-10-05 16:18:24 +02:00
@@ -23,8 +23,9 @@ type Config struct {
|
||||
} `mapstructure:"app"`
|
||||
|
||||
TUI struct {
|
||||
UseNerdfontIcons bool `mapstructure:"use_nerdfont_icons"`
|
||||
DefaultSidebarState string `mapstructure:"default_sidebar_state"`
|
||||
UseNerdfontIcons bool `mapstructure:"use_nerdfont_icons"`
|
||||
DefaultSidebarState string `mapstructure:"default_sidebar_state"`
|
||||
HiddenPages []string `mapstructure:"hidden_pages"`
|
||||
} `mapstructure:"tui"`
|
||||
|
||||
Keybindings Keybindings `mapstructure:"keybindings"`
|
||||
|
||||
@@ -4,6 +4,7 @@ app:
|
||||
tui:
|
||||
use_nerdfont_icons: true
|
||||
default_sidebar_state: "expanded" # hidden, collapsed, expanded
|
||||
hidden_pages: [] # page names to hide from the sidebar, e.g. ["Audio", "Power"]
|
||||
|
||||
keybindings:
|
||||
global:
|
||||
@@ -54,3 +55,7 @@ keybindings:
|
||||
refresh: "r"
|
||||
mute: "m"
|
||||
test: "t"
|
||||
|
||||
power:
|
||||
select: "enter"
|
||||
refresh: "r"
|
||||
|
||||
@@ -54,10 +54,16 @@ type AudioKeys struct {
|
||||
Test string `mapstructure:"test"`
|
||||
}
|
||||
|
||||
type PowerKeys struct {
|
||||
Select string `mapstructure:"select"`
|
||||
Refresh string `mapstructure:"refresh"`
|
||||
}
|
||||
|
||||
type Keybindings struct {
|
||||
Global GlobalKeys `mapstructure:"global"`
|
||||
Docs DocsKeys `mapstructure:"docs"`
|
||||
Network NetworkKeys `mapstructure:"network"`
|
||||
Bluetooth BluetoothKeys `mapstructure:"bluetooth"`
|
||||
Audio AudioKeys `mapstructure:"audio"`
|
||||
Power PowerKeys `mapstructure:"power"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user