wip
This commit is contained in:
parent
0f5321f5d9
commit
6fd7e168a8
@ -8,7 +8,14 @@ for mode in ['normal','insert','hint','passthrough','command','prompt','yesno','
|
||||
config.bind('<Cut>', 'fake-key -g <Ctrl-x>', mode)
|
||||
config.bind('<Copy>', 'fake-key -g <Ctrl-c>', mode)
|
||||
config.bind('<Paste>', 'fake-key -g <Ctrl-v>', mode)
|
||||
# colors
|
||||
# styles
|
||||
config.set('colors.webpage.preferred_color_scheme','dark')
|
||||
config.set('colors.webpage.darkmode.enabled', True)
|
||||
config.set('colors.webpage.bg','#$THEME_COLOR_BG')
|
||||
config.set('fonts.default_family','Roboto')
|
||||
# engines
|
||||
config.set('url.searchengines', {
|
||||
'DEFAULT': 'https://lite.duckduckgo.com/lite?&q={}'
|
||||
})
|
||||
config.set('url.default_page', 'file:///home/yrzam/.config/qutebrowser/start.html')
|
||||
config.set('url.start_pages', ['file:///home/yrzam/.config/qutebrowser/start.html'])
|
||||
|
19
arch-user/config/qutebrowser/start.html.tmpl
Normal file
19
arch-user/config/qutebrowser/start.html.tmpl
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
html { background:#$THEME_COLOR_BG; color:#$THEME_COLOR_FG; }
|
||||
body { margin: 8px; }
|
||||
form { display: flex; column-gap: 8px; }
|
||||
label, input { font-size: ${THEME_SIZE_FONT_LARGE_MULT}rem; }
|
||||
input { flex:2; min-width:100px; background: none; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form onsubmit="location.href='https://lite.duckduckgo.com/lite/?q='+encodeURIComponent(document.getElementById('q').value); return false">
|
||||
<label for="id">web :open</label>
|
||||
<input type="text" name="q" id="q" autofocus>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -37,6 +37,7 @@ cp_subst config/sway/config.tmpl ~/.config/sway/config
|
||||
cp_subst config/foot/foot.ini.tmpl ~/.config/foot/foot.ini
|
||||
cp_subst config/mako/config.tmpl ~/.config/mako/config
|
||||
cp_subst config/qutebrowser/config.py.tmpl ~/.config/qutebrowser/config.py
|
||||
cp_subst config/qutebrowser/start.html.tmpl ~/.config/qutebrowser/start.html
|
||||
|
||||
# dynamic
|
||||
cp -rf config/profile ~/.profile
|
||||
|
@ -7,6 +7,7 @@ if [ "$USER" = "yrzam" ]; then
|
||||
"web" "web projects"
|
||||
"web" "web life"
|
||||
)
|
||||
WEB_HAS_PROFILES=1
|
||||
else
|
||||
LIST+=(
|
||||
"web" "web"
|
||||
@ -70,7 +71,11 @@ exec_term() {
|
||||
}
|
||||
# custom
|
||||
exec_web() {
|
||||
qutebrowser "https://google.com"
|
||||
shift
|
||||
if [ "$WEB_HAS_PROFILES" ]; then
|
||||
shift
|
||||
fi
|
||||
qutebrowser "$@"
|
||||
}
|
||||
exec_man() {
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user