mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2025-03-05 00:59:58 +01:00
add luakit config
This commit is contained in:
parent
d7bb0c00e9
commit
0164be6ba6
3 changed files with 126 additions and 0 deletions
111
.config/luakit/theme.lua
Normal file
111
.config/luakit/theme.lua
Normal file
|
@ -0,0 +1,111 @@
|
|||
local dracula = {
|
||||
bg = "#282a36",
|
||||
fg = "#f8f8f2",
|
||||
bright_bg = "#44475a",
|
||||
very_bright_bg = "#6272a4",
|
||||
cyan = "#8be9fd",
|
||||
green = "#50fa7b",
|
||||
orange = "#ffb86c",
|
||||
pink = "#ff79c6",
|
||||
purple = "#bd93f9",
|
||||
red = "#ff5555",
|
||||
yellow = "#f1fa8c",
|
||||
}
|
||||
|
||||
local theme = {}
|
||||
|
||||
-- Default settings
|
||||
theme.font = "12px Iosevka"
|
||||
theme.fg = dracula.fg
|
||||
theme.bg = dracula.bg
|
||||
|
||||
-- Genaral colors
|
||||
theme.success_fg = dracula.green
|
||||
theme.loaded_fg = dracula.cyan
|
||||
|
||||
-- Error colors
|
||||
theme.error_fg = dracula.red
|
||||
theme.error_bg = dracula.bright_bg
|
||||
|
||||
-- Warning colors
|
||||
theme.warning_fg = dracula.orange
|
||||
theme.warning_bg = dracula.bright_bg
|
||||
|
||||
-- Notification colors
|
||||
theme.notif_fg = dracula.very_bright_bg
|
||||
theme.notif_bg = dracula.bg
|
||||
|
||||
-- Menu colors
|
||||
theme.menu_fg = dracula.fg
|
||||
theme.menu_bg = dracula.bg
|
||||
theme.menu_selected_fg = dracula.fg
|
||||
theme.menu_selected_bg = dracula.bright_bg
|
||||
theme.menu_title_bg = dracula.bg
|
||||
theme.menu_primary_title_fg = dracula.red
|
||||
theme.menu_secondary_title_fg = dracula.bright_bg
|
||||
|
||||
theme.menu_disabled_fg = dracula.very_bright_bg
|
||||
theme.menu_disabled_bg = dracula.purple
|
||||
theme.menu_enabled_fg = theme.menu_fg
|
||||
theme.menu_enabled_bg = theme.menu_bg
|
||||
theme.menu_active_fg = dracula.very_bright_bg
|
||||
theme.menu_active_bg = theme.menu_bg
|
||||
|
||||
-- Proxy manager
|
||||
theme.proxy_active_menu_fg = dracula.fg
|
||||
theme.proxy_active_menu_bg = dracula.bg
|
||||
theme.proxy_inactive_menu_fg = dracula.bright_bg
|
||||
theme.proxy_inactive_menu_bg = dracula.very_bright_bg
|
||||
|
||||
-- Statusbar specific
|
||||
theme.sbar_fg = dracula.fg
|
||||
theme.sbar_bg = dracula.bg
|
||||
|
||||
-- Downloadbar specific
|
||||
theme.dbar_fg = dracula.fg
|
||||
theme.dbar_bg = dracula.bg
|
||||
theme.dbar_error_fg = dracula.red
|
||||
|
||||
-- Input bar specific
|
||||
theme.ibar_fg = dracula.fg
|
||||
theme.ibar_bg = dracula.bg
|
||||
|
||||
-- Tab label
|
||||
theme.tab_fg = dracula.fg
|
||||
theme.tab_bg = dracula.bg
|
||||
theme.tab_hover_bg = dracula.orange
|
||||
theme.tab_ntheme = "#ddd"
|
||||
theme.selected_fg = dracula.fg
|
||||
theme.selected_bg = dracula.bright_bg
|
||||
theme.selected_ntheme = "#ddd"
|
||||
theme.loading_fg = dracula.cyan
|
||||
theme.loading_bg = dracula.bg
|
||||
|
||||
theme.selected_private_tab_bg = dracula.pink
|
||||
theme.private_tab_bg = dracula.purple
|
||||
|
||||
-- Trusted/untrusted ssl colors
|
||||
theme.trust_fg = dracula.green
|
||||
theme.notrust_fg = dracula.red
|
||||
|
||||
-- Follow mode hints
|
||||
theme.hint_font = "12px Iosevka, monospace, courier, sans-serif"
|
||||
theme.hint_fg = dracula.fg
|
||||
theme.hint_bg = dracula.very_bright_bg
|
||||
theme.hint_border = "2px dashed " .. dracula.green
|
||||
theme.hint_opacity = "0.3"
|
||||
theme.hint_overlay_bg = "rgba(255,255,153,0.3)"
|
||||
theme.hint_overlay_border = "1px dotted #000"
|
||||
theme.hint_overlay_selected_bg = "rgba(0,255,0,0.3)"
|
||||
theme.hint_overlay_selected_border = theme.hint_overlay_border
|
||||
|
||||
-- General colour pairings
|
||||
theme.ok = { fg = dracula.fg, bg = dracula.bg }
|
||||
theme.warn = { fg = dracula.orange, bg = dracula.bg }
|
||||
theme.error = { fg = dracula.red, bg = dracula.bright_bg }
|
||||
|
||||
-- Gopher page style (override defaults)
|
||||
theme.gopher_light = { bg = "#E8E8E8", fg = "#17181C", link = "#03678D" }
|
||||
theme.gopher_dark = { bg = "#17181C", fg = "#E8E8E8", link = "#f90" }
|
||||
|
||||
return theme
|
1
.config/luakit/userconf.lua
Normal file
1
.config/luakit/userconf.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require "usersettings"
|
14
.config/luakit/usersettings.lua
Normal file
14
.config/luakit/usersettings.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
local settings = require "settings"
|
||||
|
||||
settings.application.prefer_dark_mode = true
|
||||
|
||||
settings.webview.javascript_can_access_clipboard = true
|
||||
settings.webview.enable_accelerated_2d_canvas = true
|
||||
|
||||
settings.webview.default_font_family = "Iosevka"
|
||||
settings.webview.monospace_font_family = "Iosevka"
|
||||
settings.webview.sans_serif_font_family = "Iosevka"
|
||||
settings.webview.serif_font_family = "Iosevka"
|
||||
|
||||
settings.window.default_search_engine = "duckduckgo"
|
||||
settings.window.home_page = "luakit://newtab"
|
Loading…
Add table
Reference in a new issue