Add "power" page

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-13 12:10:09 +02:00
parent d54817d62c
commit 7067717b51
23 changed files with 1005 additions and 20 deletions
+3 -2
View File
@@ -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"`
+5
View File
@@ -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"
+6
View File
@@ -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"`
}