NixOS-Configs/home/gui/qutebrowser.nix
2024-07-18 17:24:21 -05:00

282 lines
13 KiB
Nix

{...}: {
programs.qutebrowser = {
enable = true;
loadAutoconfig = true;
keyBindings = {
normal = {
",J" = "spawn /home/don/bin/vdi";
",L" = "spawn --userscript qute-bitwarden --password-only";
",O" = "spawn --userscript obsidian-import-lite";
",R" = "spawn --userscript obsidian-import -r";
",U" = "spawn --userscript sendurl";
",V" = "hint links spawn umpv {hint-url}";
",b" = "spawn rofi-buku";
",d" = "spawn --userscript open_download";
",j" = "spawn --userscript joplin-import";
",l" = "spawn --userscript qute-bitwarden";
",m" = "spawn --userscript mymail";
",n" = ''config-cycle content.user_stylesheets /home/don/src/solarized-everything-css/css/mine.css ""'';
",o" = "spawn --userscript obsidian-import";
",r" = "spawn --userscript recipe";
",t" = "spawn --userscript qute-bitwarden --totp-only";
",u" = "spawn --userscript sendphone";
",v" = "spawn /home/don/bin/myweb {url}";
",w" = "cmd-set-text -s :spawn --userscript taskadd";
";V" = "hint --rapid links spawn myweb {hint-url}";
"gF" = "spawn --userscript openfeeds";
"xb" = "config-cycle statusbar.show always in-mode";
"xt" = "config-cycle tabs.show always switching";
"xx" = "config-cycle statusbar.show always in-mode ;; config-cycle tabs.show always switching";
};
};
searchEngines = {
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
aw = "https://wiki.archlinux.org/?search={}";
nw = "https://nixos.wiki/index.php?search={}";
g = "https://www.google.com/search?hl=en&q={}";
};
quickmarks = {
apps = "https://www.apkmirror.com/";
awesome-nix = "https://github.com/nix-community/awesome-nix";
backstage = "http://beckbackstage.org/index.html";
bandwidth = "https://bandwidth.duckland.org/";
barbellasalon = "https://www.marbellasalonhouston.com/";
beck-absence = "https://www.katyisd.org/domain/4329";
buymusic = "https://us.7digital.com/?origin=uk";
buymusic2 = "https://www.hdtracks.com/";
cablemodem = "http://192.168.100.1/GenieLogin.asp";
cal = "https://cloud.duckland.org/apps/calendar/timeGridDay/now";
canvas = "https://katyisd.instructure.com/login/ldap";
centerpoint = "http://gis.centerpointenergy.com/outagetracker/?WT.ac=OC_Image_Callout";
cgpgrey = "https://www.youtube.com/@CGPGrey";
chase = "https://www.chase.com/";
chromeos = "https://cros-updates-serving.appspot.com/";
cloud = "https://cloud.duckland.org/apps/dashboard/";
connectme = "https://connectme.jpmchase.com/home";
crhs = "https://www.katyisd.org/CRHS";
crhs-absence = "https://www.katyisd.org/domain/5809";
cups = "http://localhost:631/printers/printer";
darkroom = "https://thedarkroom.com/photodashboard/";
darksky = "https://darksky.net/forecast/29.7875,-95.8233/us12/en";
dash = "https://dash.duckland.org/#/";
disk = "https://smart.duckland.org/web/dashboard";
dragon-sync = "http://dragon.tail:8384/#";
driversed = "https://driving.aceable.com/teacher/log?studentId=I89fno2YEZo4hQ40";
droplet = "https://cloud.digitalocean.com/droplets?i=a8b99f";
dtstyle = "https://dtstyle.net/";
dvd = "https://dvd.netflix.com/Queue";
emilio = "https://secure.psyquel.com/members/patlogin.asp?P=8205&G=3382";
ercot = "https://www.ercot.com/gridmktinfo/dashboards";
eve-sync = "http://eve.tail:8384/#";
fiesta = "https://www.fiestamart.com/weekly-ads/?store_code=66";
flood = "https://www.harriscountyfws.org/";
fred-sync = "http://fred.tail:8384/#";
gcal = "https://calendar.google.com/calendar/r";
gfamily = "https://familylink.google.com/member/112279402605706545724/highlights";
git = "https://git.duckland.org/?repo-search-query=m";
gphoto = "https://photos.google.com/";
gmail = "https://mail.google.com/mail/u/0/?pli=1#inbox";
hac = "https://homeaccess.katyisd.org/HomeAccess/Account/LogOn?ReturnUrl=%2FHomeAccess";
harper-sync = "https://harper.tail:8384/#device-sharing";
harper2-sync = "https://harper2.tail:8384/#device-sharing";
heb = "https://www.heb.com/collections/weekly-ad?customFilters=onAdFilter&shoppingStore=497&utm_source=1021275&utm_medium=email&utm_campaign=2023-11-24-weekly-ad&utm_content=weekly-ad-banner";
hurricane = "https://www.nhc.noaa.gov/";
ice = "https://ice.home.duckland.org/";
ilo = "https://mini-i.home.duckland.org/";
imdb = "https://www.imdb.com/";
inaturalist = "https://www.inaturalist.org/home";
instapot-cook-times = "https://temeculablogs.com/instant-pot-cooking-times/";
jelly = "https://jelly.duckland.org/web/index.html#!/home.html";
jellyreq = "https://jellyseerr.duckland.org/discover/trending";
jlb = "https://static1.squarespace.com/static/64374f02075d90078bb16979/t/65ee8fec5252ff5dbb014443/1710133232971/Baytown+Menu.png";
joplin = "https://joplin.duckland.org/home";
jzoom = "https://jpmchase.zoom.us/";
katy-bus = "https://busroutes.katyisd.org/wqsimweb/webquery/";
katy-bus-times = "https://busroutes.katyisd.org/wqsimweb/webquery/WebQueryRequestController?action=2&schoolcode=046&numofstops=1&schoolname=BECK+JUNIOR+HIGH&attendSchoolIndex=0#stops";
katy-pay = "https://katyisd.revtrak.net/";
kindle = "https://smile.amazon.com/mn/dcw/myx.html/ref=kinw_myk_redirect#/home/content/booksAll/dateDsc/";
kindle-read = "https://www.amazon.com/kindle-dbs/ku/ku-central/";
kisdcal = "https://www.katyisd.org/Page/2#calendar1/20230801/month";
kroger = "https://www.kroger.com/weeklyad";
linkedin = "https://www.linkedin.com/feed/";
linode = "https://cloud.linode.com/linodes";
loki-sync = "https://loki.tail:8384/";
mail = "https://cloud.duckland.org/apps/mail/box/5";
maps = "https://www.google.com/maps/";
mastodon = "https://fosstodon.org/home";
mastodon2 = "https://pinafore.social/federated";
messages = "https://messages.google.com/web/conversations";
mini-sync = "https://mini.tail:8384/#";
mpv = "https://mpv.io/manual/stable/";
mural = "https://houstonmuralmap.com/";
music = "https://music.duckland.org/index";
mykelsey = "https://www.mykelseyonline.com/MyChart/Authentication/Login?";
mynixos = "https://mynixos.com/";
nebula = "https://watchnebula.com/";
netalert = "http://harper.tail:20211/devices.php";
netflix = "https://www.netflix.com/browse";
newrss = "https://rss.duckland.org/i/?c=subscription&a=add";
nix-options = "https://search.nixos.org/options?";
nix-package = "https://search.nixos.org/packages";
nix-up-software = "https://nix.dev/tutorials/learning-journey/packaging-existing-software";
nix-versions = "https://lazamar.co.uk/nix-versions/";
nix-wiki = "https://nixos.wiki/";
nix-dev = "https://nix.dev/";
nixos-config = "https://nixos.org/manual/nixos/stable/options.html";
nixos-hardware = "https://github.com/duckunix/nixos-hardware";
nixos-home-manual = "https://nix-community.github.io/home-manager/options.xhtml";
nixos-manual = "https://nixos.org/manual/nixos/stable/index.html";
ntop = "https://ice.home.duckland.org:3001/";
octoprint = "http://octopi.tail/?#temp";
orders = "https://www.amazon.com/gp/css/order-history?ref_=nav_orders_first";
photos = "https://photos.duckland.org/";
pi = "http://pihole.tail/admin/";
pinetab2-releases = "https://wiki.pine64.org/wiki/PineTab2_Releases";
pinewelcome = "https://www.pine64.org/gettings-started/";
pipewire-tutorial = "https://github.com/mikeroyal/PipeWire-Guide";
plex = "https://plex.home.duckland.org/web/index.html#!/";
pocket-square = "https://www.ties.com/how-to-fold-a-pocket-square";
pocket2-sync = "https://pocket2.tail:8384/";
potbelly = "https://www.potbelly.com/stores/23410/cinco-ranch";
printer = "http://printer.home.duckland.org/";
renewinghope = "https://renewinghope.net/staff/emilio-gonzalez-jr";
rpilocator = "https://rpilocator.com/?country=US&cat=PI4";
rss = "https://rss.duckland.org/i/";
smart = "https://smart.duckland.org/web/dashboard";
smaug-sync = "http://smaug.tail:8384/#";
smile = "https://www.amazon.com/";
spacecity = "https://spacecityweather.com/";
sprouts = "https://www.sprouts.com/weekly-ad/";
star = "https://starpizzacinco.revelup.com/weborder/?establishment=1#index";
swayutil = "https://github.com/swaywm/sway/wiki/Useful-add-ons-for-sway";
tailhome = "http://homeassistant.tail:8123/lovelace-mine/default_view";
tailscale = "https://login.tailscale.com/admin/machines";
telegram = "https://webz.telegram.org/";
theatre = "https://www.cougartheatre.org/#/";
thingiverse = "https://www.thingiverse.com/";
ting = "https://tingmobile.com/iaccount";
traefik = "http://cloud.duckland.org:8081/dashboard/";
trafficmap = "https://abc13.com/traffic/";
translate = "https://libretranslate.com/";
trash = "https://www.best-trash.com/holiday-schedule/";
tutamail = "https://app.tuta.com/mail/Nw-oJEl--s-9";
unifi = "https://harper2.home.duckland.org:8443/manage/default/dashboard";
utube = "https://www.youtube.com/feed/subscriptions";
vault = "https://vault.duckland.org/#/";
vdi = "https://myworkspace.jpmchase.com/";
voice = "https://voice.google.com/u/0/calls";
vonage = "https://secure.vonage.com/account/login.html";
vortexic = "https://vortexic-university.sparkuniversity.co/Courses.aspx";
waze = "https://www.waze.com/livemap";
weather = "https://merrysky.net/forecast/Cinco%20Ranch%20High%20School,%20Katy,%20%20TX/us";
weather2 = "https://openweathermap.org/city/4681485";
weather3 = "https://www.wunderground.com/weather/us/tx/katy/29.79,-95.82";
weather4 = "https://www.weatherbug.com/weather-forecast/now/";
wikipedia = "https://www.wikipedia.org/";
zoom = "https://zoom.us/";
};
extraConfig = ''
import dracula.draw
dracula.draw.blood(c, {
'spacing': {
'vertical': 6,
'horizontal': 8
}
})
c.statusbar.padding = { 'top': 6, 'right': 8, 'bottom': 6, 'left': 8 }
c.tabs.padding = { 'top': 1, 'right': 8, 'bottom': 1, 'left': 8 }
#c.bindings = { key_mappings = ['<Ctrl+6>': '<Ctrl+^>' '<Ctrl+Enter>': '<Ctrl+Return>' '<Ctrl+j>': '<Return>' '<Ctrl+m>': '<Return>' '<Ctrl+[>': '<Escape>' '<Enter>': '<Return>' '<Shift+Enter>': '<Return>' '<Shift+Return>': '<Return>']}
'';
settings = {
auto_save = {
session = true;
};
#};
colors = {
webpage = {
bg = "#2d2d2d";
preferred_color_scheme = "dark";
darkmode = {
algorithm = "lightness-cielab";
enabled = true;
policy = {
images = "never";
page = "smart";
};
threshold = {
background = 128;
foreground = 128;
};
};
};
};
completion = {
open_categories = ["quickmarks" "searchengines" "bookmarks" "history"];
};
content = {
autoplay = false;
blocking = {
adblock = {
lists = ["https://secure.fanboy.co.nz/fanboy-annoyance.txt" "https://easylist.to/easylist/easylist.txt" "https://easylist.to/easylist/easyprivacy.txt"];
};
enabled = true;
};
};
downloads = {
prevent_mixed_content = true;
};
fileselect = {
folder = {
command = ["kitty" "-e" "ranger" "--choosedir={}"];
};
handler = "external";
multiple_files = {
command = ["kitty" "-e" "ranger" "--choosefile={}"];
};
single_file = {
command = ["kitty" "-e" "ranger" "--choosefile={}"];
};
};
qt = {
args = ["widevine-path=/home/don/.config/qutebrowser/lib/libwidevinecdm.so"];
workarounds = {
remove_service_workers = true;
};
};
spellcheck = {
languages = ["en-US"];
};
statusbar = {
show = "in-mode";
};
tabs = {
favicons = {
scale = 1;
};
indicator = {
width = 1;
};
mode_on_change = "restore";
position = "bottom";
select_on_remove = "next";
show = "always";
title = {
format = "{audio}{current_title}";
};
};
url = {
default_page = "about:blank";
};
};
};
home.file.qutebrowserlocal = {
recursive = true;
target = ".local/share/qutebrowser";
source = ./files/local-qutebrowser;
};
xdg.configFile."qutebrowserdracula" = {
recursive = true;
source = ./files/qutebrowser-dracula;
target = "qutebrowser/dracula";
};
}