Marty Oehme
6fabac6cd8
Finally made the switch from alacritty to kitty. I have been thinking about this for a while. Both, fundamentally, serve my purposes just fine. Both are fast, customizable, gpu accelerated, and so on. Kitty feels a little faster on the input, but this should not provide major differences. One big difference, however, is now very apparent and I can feel it: Alacritty, on wayland, does not support any picture preview. It does not support sixel, and things like w3mimg or ueberzug are based on and require X11 to run. Kitty brings its own graphics display library and it seems both pretty stable and fast. I have not done much more with it than use it in things like vifm image previews but it should be much more stable than things like ueberzug, much faster than things like sixel. Time will tell. Switched other modules to make use of kitty instead of alacritty: vifm uses kitty previews, river spawns kitty instances, systemd units use kitty instances, waybar presents extra mouse-click interactions through kitty, and styler contains a processor to style kitty permanently. I would love to converge this all a bit more on the `$TERMINAL` env var, but this is unfortunately difficult for things like systemd and waybar. For waybar I currently see no real way except for a custom `ideal-terminal` script which just goes down the list of terminal emulators I want to run, depending on which is installed, since it does not read env vars, while for systemd it might be feasible to import user environment variables, but also connected to additional complexity and overhead which it does not seem worth for the currently two simple service units it affects. Also removed some obsolete sxhkd and sh settings from the move to wayland.
72 lines
1.6 KiB
Python
72 lines
1.6 KiB
Python
import os
|
|
|
|
from qutebrowser.config.config import ConfigContainer # noqa: F401
|
|
from qutebrowser.config.configfiles import ConfigAPI # noqa: F401
|
|
|
|
# Autogenerated config.py
|
|
# Documentation:
|
|
# qute://help/configuring.html
|
|
# qute://help/settings.html
|
|
|
|
# load additional settings configured via autoconfig.yml
|
|
config.load_autoconfig()
|
|
|
|
term = os.getenv("TERMINAL", "xterm")
|
|
|
|
c.completion.web_history.max_items = 1000
|
|
c.hints.uppercase = True
|
|
c.editor.command = [
|
|
term,
|
|
"-e",
|
|
"nvim",
|
|
"-f",
|
|
"{file}",
|
|
"-c",
|
|
"normal {line}G{column0}l",
|
|
]
|
|
|
|
# change filepicker
|
|
c.fileselect.handler = "external"
|
|
picker = [
|
|
term,
|
|
"--class",
|
|
"float",
|
|
"-e",
|
|
"vifm",
|
|
"--choose-files",
|
|
"{}",
|
|
]
|
|
c.fileselect.single_file.command = picker
|
|
c.fileselect.multiple_files.command = picker
|
|
|
|
c.downloads.location.directory = os.getenv("XDG_DOWNLOAD_DIR", "~/downloads")
|
|
c.downloads.location.prompt = False
|
|
|
|
config.source("alias.py")
|
|
config.source("maps.py")
|
|
config.source("content.py")
|
|
config.source("url.py")
|
|
|
|
# Tab-Bar
|
|
# have tab bar on the right, not on the top
|
|
c.tabs.background = True
|
|
c.tabs.title.format = "{index} {audio}{perc}{current_title}"
|
|
c.tabs.position = "right"
|
|
c.tabs.width = "15%"
|
|
|
|
c.colors.webpage.bg = "#555555"
|
|
|
|
# Prevents *all* tabs from being loaded on restore, only loads on activating them
|
|
c.session.lazy_restore = True
|
|
|
|
|
|
# for code_select.py userscript
|
|
# Allows copying code sections to clipboard easily
|
|
c.hints.selectors["code"] = [
|
|
# Selects all code tags whose direct parent is not a pre tag
|
|
":not(pre) > code",
|
|
"pre",
|
|
]
|
|
|
|
# give the browser nice theme colors
|
|
config.source("colorscheme.py")
|