aboutsummaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-11-03 00:18:10 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-11-03 00:20:41 +0200
commitf3a4607d6a722a862af0eb9747a15dcdf624b6fb (patch)
tree9885709cdff55a865be6c03c591a9757680b0396 /Kconfig
parentChange spdlog from makedepends to depends (diff)
downloadsmolbote-f3a4607d6a722a862af0eb9747a15dcdf624b6fb.tar.xz
Drop boost dependency
- wrote not-invented-here config file parser and conf class - spent obscene amount of time plugging in said conf class
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig173
1 files changed, 167 insertions, 6 deletions
diff --git a/Kconfig b/Kconfig
index c7c0a1e..31ea895 100644
--- a/Kconfig
+++ b/Kconfig
@@ -5,19 +5,180 @@ menu "Application"
config POI_ICON
string "Path to icon"
default ":/icons/poi.svg"
+ config POI_CFG_PATH
+ string "Configuration location"
+ default "~/.config/smolbote/smolbote.cfg"
endmenu
-source 'lib/configuration/Kconfig'
+menu "Keyboard shortcuts"
+ comment "Main Window shortcuts"
+ config shortcuts.session.save
+ string "Save Session shortcut"
+ default "Ctrl+S,S"
+ config shortcuts.session.open
+ string "Load Session shortcut"
+ default "Ctrl+S,O"
+ config shortcuts.window.newgroup
+ string "New Group shortcut"
+ default "Ctrl+G"
+ config shortcuts.window.newwindow
+ string "New Window shortcut"
+ default "Ctrl+N"
+ config shortcuts.window.about
+ string "Show About Dialog"
+ default "Ctrl+H"
+ config shortcuts.window.quit
+ string "Quit shortcut"
+ default "Ctrl+Q"
+ config shortcuts.window.search
+ string "Show or hide search box"
+ default "F3"
+ config shortcuts.window.bookmarks.show
+ string "Show bookmarks dialog in this window"
+ default "Ctrl+B"
+ config shortcuts.window.downloads.show
+ string "Show downloads dialog in this window"
+ default "Ctrl+D"
-# Plugin loading
-source 'lib/pluginloader/Kconfig'
+ comment "Navigation Bar shortcuts"
+ config shortcuts.navigation.back
+ string "Go back in history"
+ default "Ctrl+Left"
+ config shortcuts.navigation.backmenu
+ string "Show Back history menu"
+ default "Ctrl+Down"
+ config shortcuts.navigation.forward
+ string "Go forward in history"
+ default "Ctrl+Right"
+ config shortcuts.navigation.forwardmenu
+ string "Show Forward history menu"
+ default "Ctrl+Up"
+ config shortcuts.navigation.refresh
+ string "Refresh the page"
+ default "F5"
+ config shortcuts.navigation.reload
+ string "Reload the page"
+ default "Ctrl+F5"
+ config shortcuts.navigation.home
+ string "Load homepage"
+ default "Ctrl+Home"
+
+ comment "Address Bar shortcuts"
+ config shortcuts.address.focus
+ string "Focus the Address Bar"
+ default "F4"
+ config shortcuts.address.menu
+ string "Show Address Bar menu"
+ default "F2"
+
+ comment "Subwindow shortcuts"
+ config shortcuts.subwindow.menu
+ string "Subwindow context menu"
+ default "F1"
+ config shortcuts.subwindow.tile
+ string "Tile subwindows"
+ default "F9"
+ config shortcuts.subwindow.cascade
+ string "Cascade subwindow"
+ default "F10"
+ config shortcuts.subwindow.fullscreen
+ string "Make current subwindow fullscreen"
+ default "F11"
+ config shortcuts.subwindow.newtab
+ string "Create new tab"
+ default "Ctrl+T"
+ config shortcuts.subwindow.closetab
+ string "Close current tab"
+ default "Ctrl+X"
+ config shortcuts.subwindow.restoretab
+ string "Restore last closed tab"
+ default "Ctrl+Shift+T"
+ config shortcuts.subwindow.tableft
+ string "Switch to the tab on the left"
+ default "Ctrl+O"
+ config shortcuts.subwindow.movetableft
+ string "Move tab to the left"
+ default "Ctrl+Shift+O"
+ config shortcuts.subwindow.tabright
+ string "Switch to the tab on the right"
+ default "Ctrl+P"
+ config shortcuts.subwindow.movetabright
+ string "Move tab to the right"
+ default "Ctrl+Shift+P"
+
+endmenu
+
+menu "Main Window"
+ config mainwindow.title
+ string "Main window title"
+ default "smolbote"
+ config mainwindow.width
+ int "Main window width"
+ default 1280
+ config mainwindow.height
+ int "Main window height"
+ default 720
+endmenu
+
+menu "Profile Settings"
+ config profile.path
+ string "Profile load location"
+ default "~/.config/smolbote/profiles.d"
+ config profile.default
+ string "Default profile"
+ default ""
+ config profile.search
+ string "Search engine"
+ default "https://duckduckgo.com/?q=%1&ia=web"
+ config profile.homepage
+ string "Homepage"
+ default "about:blank"
+ config profile.newtab
+ string "New tab page"
+ default "about:blank"
+endmenu
+
+config USEPLUGINS
+ bool "Enable plugins"
+ default y
+
+menu "Plugin Settings"
+ depends on USEPLUGINS
+ config plugins.path
+ string "Plugin load location"
+ default "~/.config/smolbote/plugins.d"
+ choice PLUGIN_SIGNATURE_CHECK
+ bool "Plugin Signature enforcement"
+ default PLUGIN_SIGNATURE_CHECKED
+ config PLUGIN_SIGNATURE_IGNORED
+ bool "Don't check plugin signatures"
+ config PLUGIN_SIGNATURE_CHECKED
+ bool "Don't load plugins with invalid signatures"
+ config PLUGIN_SIGNATURE_ENFORCED
+ bool "Only load plugins with valid signatures"
+ endchoice
+ config PLUGIN_SIGNATURE_HASH
+ string "Hashing algorithm used by the signature"
+ default "SHA256"
+endmenu
+
+comment "Default paths"
+config filter.path
+ string "Host filter path"
+ default "~/.config/smolbote/hosts.d"
+config bookmarks.path
+ string "Bookmarks location"
+ default "~/.config/smolbote/bookmarks.xbel"
+config downloads.path
+ string "Downloads location"
+ default "~/Downloads"
+config session.path
+ string "Session location"
+ default "~/.config/smolbote/session.d"
config USEPLASMA
bool "Enable KDE Frameworks integration"
default n
- select SHOW_KDE_INTEGRATION
- help
- This is a help message
menu "KDE Integration"
depends on USEPLASMA