diff --git a/.chezmoiexternal.yaml b/.chezmoiexternal.yaml index f891fce..1e6deb7 100644 --- a/.chezmoiexternal.yaml +++ b/.chezmoiexternal.yaml @@ -18,15 +18,7 @@ refreshPeriod: 168h # colors -.config/qutebrowser/catppuccin: - type: git-repo - url: "https://github.com/catppuccin/qutebrowser.git" - refreshPeriod: 168h .config/kitty/catppuccin: type: git-repo url: "https://github.com/catppuccin/kitty.git" refreshPeriod: 168h -.config/alacritty/catppuccin: - type: git-repo - url: "https://github.com/catppuccin/alacritty.git" - refreshPeriod: 168h diff --git a/dot_config/alacritty/alacritty.yml b/dot_config/alacritty/alacritty.yml deleted file mode 100644 index b0ff8ad..0000000 --- a/dot_config/alacritty/alacritty.yml +++ /dev/null @@ -1,27 +0,0 @@ -import: - - ~/.config/alacritty/catppuccin/catppuccin-frappe.yml - -font: - normal: - family: VictorMono Nerd Font - style: Regular - - bold: - family: VictorMono Nerd Font - style: Bold - - italic: - family: VictorMono Nerd Font - style: Italic - - bold_italic: - family: VictorMono Nerd Font - style: Bold Italic - - size: 16 - -window: - decorations: buttonless - padding: - x: 0 - y: 0 diff --git a/dot_config/private_qutebrowser/config.py b/dot_config/private_qutebrowser/config.py deleted file mode 100644 index 952f590..0000000 --- a/dot_config/private_qutebrowser/config.py +++ /dev/null @@ -1,111 +0,0 @@ -import catppuccin - -config.load_autoconfig() -catppuccin.setup(c, "mocha") - -### general stuff -# macOS keybinds :kekw: -c.bindings.commands = { - "normal": { - "": "open -t", - "": "tab-close", - "": "reload", - "": "tab-focus 1", - "": "tab-focus 2", - "": "tab-focus 3", - "": "tab-focus 4", - "": "tab-focus 5", - "": "tab-focus 6", - "": "tab-focus 7", - "": "tab-focus 8", - "": "tab-focus 9", - "": "tab-focus 10", - "": "quit", - } -} -# search when typing in the address bar, and use DDG -c.url.auto_search = "naive" -c.url.searchengines = {"DEFAULT": "https://duckduckgo.com/?q={}"} - -### rice -# a teensy bit more padding... -c.statusbar.padding = {"bottom": 4, "left": 4, "right": 4, "top": 4} -c.tabs.padding = {"bottom": 4, "left": 4, "right": 4, "top": 4} -# don't show the tab indicator -c.tabs.indicator.width = 0 -## fonts -c.fonts.default_size = "14pt" -# default Comic Code -c.fonts.default_family = "Victor Mono" -# Inter for UI -c.fonts.tabs.selected = "default_size Inter var" -c.fonts.tabs.unselected = "default_size Inter var" -c.fonts.hints = "default_size Inter var" -# uppercase for hints, a la vimium -c.hints.uppercase = True - -### other stuff -# use brave blocker + hosts file -c.content.blocking.method = "both" - -# self explanatory -c.content.javascript.can_access_clipboard = True -c.content.pdfjs = True - -# flags -c.qt.args = [ - "--force-color-profile=srgb", -] - -# experimental Privacy-Redirect -from pprint import pprint -import re -from PyQt5.QtCore import QUrl -from qutebrowser.api import interceptor - -privacy_mappings = [ - { - "pattern": r'.*\.youtube.com', - "redirect": "https://iv.winston.sh", - } -] - -# compile the regexes -privacy_mappings_re = [re.compile(host["pattern"]) for host in privacy_mappings] - - -def redirect_to_proxies(info: interceptor.Request): - """keep me productive by redirecting certain hosts""" - global privacy_mappings - req_host = info.request_url.host() - print(info.request_url) - - if any(host.match(req_host) for host in privacy_mappings_re): - try: - print([host for host in privacy_mappings_re if host["pattern"].match(req_host)]) - # info.redirect(new_url) - except: - pass - return True - - -def redirect_80_to_443(info: interceptor.Request): - url = info.request_url - scheme = url.scheme() - req_host = url.host() - allowlist = [ - "localhost", - "127.0.0.1" - ] - - if scheme == "http" and req_host not in allowlist: - url.setScheme("https") - try: - info.redirect(url) - except: - pass - return True - - -# interceptor.register(redirect_to_proxies) -interceptor.register(redirect_80_to_443) diff --git a/symlink_dot_qutebrowser.tmpl b/symlink_dot_qutebrowser.tmpl deleted file mode 100644 index a71b2d0..0000000 --- a/symlink_dot_qutebrowser.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{ .chezmoi.homeDir }}/.config/qutebrowser