update bookmarks and add play-with-mpv extensions/service

This commit is contained in:
Tyler Starr 2023-11-22 09:29:33 -08:00
parent e32184779f
commit 2fd5df7178
2 changed files with 35 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"newTabUrl": "https://blank.org/",
"searchEngines": "# Daily\ng: https://www.google.ie/search?q=%s Google\nyt: http://www.youtube.com/results?search_query=%s Youtube\ndw: http://www.merriam-webster.com/dictionary/%s Merriam-Webster\n\n# NixOS\npu: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=%s Nixos Packages (Unstable)\nps: https://search.nixos.org/packages?channel=23.05&from=0&size=50&sort=relevance&type=packages&query=%s Nixos Packages (23.05)",
"searchEngines": "# Daily\ngo: https://www.google.ie/search?q=%s Google\nyt: http://www.youtube.com/results?search_query=%s Youtube\n\n# NixOS\nnu: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=%s Nixos Packages (Unstable)\nns: https://search.nixos.org/packages?channel=23.05&from=0&size=50&sort=relevance&type=packages&query=%s Nixos Packages (23.05)\nno: https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=%s Nixos Options\n\n# Github\ngr: https://github.com/search?q=%s&type=repositories Github Repos\ngc: https://github.com/search?q=%s&type=code Github Code",
"settingsVersion": "2.0.5",
"userDefinedLinkHintCss": "/*\nDracula theme for Vimium\nby Trollwut (trollwut@trollwut.org). This code is in the public domain.\nTo use:\n 1. Copy the code.\n 2. Go to the Vimium options.\n 3. Click Show Advanced Options.\n 4. Under Advanced Options, scroll down to CSS for link hints.\n 5. Paste the code in the text field.\n 6. Click Save Changes.\n 7. Go to the website of your choice (or, if you have it open already, reload it) and check out the results.\n*/\n\n/* Link hint boxes */\ndiv > .vimiumHintMarker {\n background: #282a36;\n font-size: 12px;\n border: 0.25em solid #ffb86c;\n border-radius: 0.34em;\n box-shadow: 0em 0.1em 0.6em 0.1em rgba(0, 0, 0, 0.4);\n}\n\n/* Link hint text */\ndiv > .vimiumHintMarker span {\n color: #f8f8f2;\n font-size: inherit;\n text-shadow: none;\n}\n\n/* Link hint matching characters */\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #6272a4;\n}\n\n/* HUD (\"heads-up display\") bar */\ndiv.vimiumHUD {\n background: #282a36;\n border: 1px solid #6272a4;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background: #282a36;\n}\n\ndiv.vimiumHUD .hud-find {\n background: #282a36;\n border: none;\n color: #f8f8f2;\n}\n\ndiv.vimiumHUD span#hud-find-input{\n color: #f8f8f2; /* 'Foreground' color */\n}\n\ndiv.vimiumHUD span#hud-match-count {\n color: #6272a4; /* 'Comment' color */\n}\n\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #6272a4; /* 'Comment' color */\n}\n\n#vomnibar{\n background-color: #44475A;\n}\n\n#vomnibar input {\n color: #f8f8f2;\n font: -moz-window;\n /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/\n font-size: 20px;\n height: 34px;\n margin-bottom: 0;\n padding: 4px;\n background-color: #282a36;\n border-radius: 3px;\n border: 1px solid #6272a4;\n box-shadow: #bd93f9 0px 0px 1px;\n width: 100%;\n outline: none;\n box-sizing: border-box;\n}\n\n#vomnibar .vomnibarSearchArea {\n display: block;\n padding: 10px;\n background-color: #6272a4;\n border-radius: 4px 4px 0 0;\n border-bottom: 0px solid #bd93f9;\n}\n\n#vomnibar ul {\n background-color: #44475a;\n border-radius: 0 0 4px 4px;\n list-style: none;\n padding-top: 0;\n padding-bottom: 0;\n margin-block-start: 2px;\n margin-block-end: 0px;\n}\n\n#vomnibar li {\n border-bottom: 1px solid #6272a4;\n line-height: 1.1em;\n padding: 7px 10px;\n font-size: 16px;\n color: #f8f8f2;\n position: relative;\n display: list-item;\n margin: auto;\n}\n\n#vomnibar li .vomnibarBottomHalf {\n font-size: 15px;\n margin-top: 3px;\n padding: 2px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #bd93f9;\n margin-right: 4px;\n}\n#vomnibar li .vomnibarRelevancy {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n background-color: #282a36;\n color: #f8f8f2;\n font-family: monospace;\n width: 100px;\n overflow: hidden;\n}\n\n#vomnibar li .vomnibarUrl {\n white-space: nowrap;\n color: #50fa7b;\n}\n\n#vomnibar li .vomnibarMatch {\n font-weight: bold;\n color: #ffb86c;\n}\n\n#vomnibar li em, #vomnibar li .vomnibarTitle {\n color: #f8f8f2;\n margin-left: 4px;\n font-weight: normal;\n}\n#vomnibar li em { font-style: italic; }\n#vomnibar li em .vomnibarMatch, #vomnibar li .vomnibarTitle .vomnibarMatch {\n color: #ffb86c;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #6272a4;\n font-weight: normal;\n}\n\n#vomnibarInput::selection {\n background-color: #8be9fd;\n}"
}

View File

@ -8,6 +8,7 @@ in {
environment.systemPackages = with pkgs-unstable; [
chromium
google-chrome
play-with-mpv
];
programs.chromium = {
enable = true;
@ -38,9 +39,9 @@ in {
"gfapcejdoghpoidkfodoiiffaaibpaem" # Dracula Theme
"fkeaekngjflipcockcnpobkpbbfbhmdn" # Copy as Markdown
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
"hkgfoiooedgoejojocmhlaklaeopbecg" # Picture-in-Picture (by Google)
"dbepggeogbaibhgnhhndojpepiihcmeb" # Viumium
"icpgjfneehieebagbmdbhnlpiopdcmna" # New Tab Redirect
"hahklcmnfgffdlchjigehabfbiigleji" # Play with MPV
];
# Setup bookmarks
@ -52,6 +53,21 @@ in {
{ "url" = "https://www.youtube.com/feed/subscriptions"; name = "Youtube"; }
{ "url" = "https://gmail.com/"; name = "Mail"; }
{ "url" = "https://github.com/"; name = "GitHub"; }
{ "url" = "https://media.tstarr.us/web/index.html#!/home.html"; name = "Jellyfin"; }
{ "url" = "https://rss.tstarr.us"; name = "FreshRSS"; }
{ "url" = "https://share.tstarr.us"; name = "Share (dufs)"; }
{ "url" = "https://www.google.com/"; name = "Google"; }
{ "url" = "https://www.icloud.com/"; name = "iCloud"; }
]; }
{ "name" = "Games"; "children" = [
{ "url" = "https://www.protondb.com/"; name = "ProtonDB"; }
{ "url" = "https://vimm.net/"; name = "Vimm's Lair: Preserving the Classics"; }
]; }
{ "name" = "Homelab"; "children" = [
{ "url" = "http://localhost:8384"; name = "Syncthing"; }
{ "url" = "https://github.com/starr-dusT/dotfiles"; name = "Dotfiles"; }
{ "url" = "https://vault.tstarr.us"; name = "Vault (dufs)"; }
{ "url" = "https://rssbridge.tstarr.us"; name = "RSSBridge"; }
]; }
{ "name" = "Nix"; "children" = [
{ "url" = "https://nixos.org/nix/manual/"; name = "nix-manual"; }
@ -65,5 +81,22 @@ in {
];
};
};
# Start play-with-mpv as service
systemd.user.services.play-with-mpv = {
path = with pkgs; [ play-with-mpv mpv ];
environment = {
DISPLAY = ":0";
};
description = "play videos with mpv from chromium.";
wantedBy = [ "default.target" ];
restartIfChanged = true;
serviceConfig = {
Type = "simple";
Restart = "always";
ExecStart = "${pkgs.play-with-mpv}/bin/play-with-mpv";
};
};
};
}