From b129a221b6b9f13785f846367b5f16006db09416 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Mon, 26 Feb 2018 17:46:28 +0100 Subject: [PATCH] remove pentadactyl config --- .gitmodules | 3 - install.sh | 2 +- pentadactyl/.pentadactylrc | 29 ------- pentadactyl/.stow-local-ignore | 3 - pentadactyl/external/pentadactyl-solarized | 1 - pentadactyl/plugins/launchv.js | 47 ----------- pentadactyl/user.css | 91 ---------------------- 7 files changed, 1 insertion(+), 175 deletions(-) delete mode 100644 pentadactyl/.pentadactylrc delete mode 100644 pentadactyl/.stow-local-ignore delete mode 160000 pentadactyl/external/pentadactyl-solarized delete mode 100644 pentadactyl/plugins/launchv.js delete mode 100644 pentadactyl/user.css diff --git a/.gitmodules b/.gitmodules index 144bf7f..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "pentadactyl/external/pentadactyl-solarized"] - path = pentadactyl/external/pentadactyl-solarized - url = https://github.com/claytron/pentadactyl-solarized diff --git a/install.sh b/install.sh index 3285af3..381374c 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash #!nix-shell -i bash -p stow -$(nix-build '' -A stow --no-out-link)/bin/stow -d `dirname $0` -t ~ nix git x pentadactyl gtk gpg mutt misc bash stow +$(nix-build '' -A stow --no-out-link)/bin/stow -d `dirname $0` -t ~ nix git x gtk gpg mutt misc bash stow nix-build -A $(hostname -s) diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc deleted file mode 100644 index 5693662..0000000 --- a/pentadactyl/.pentadactylrc +++ /dev/null @@ -1,29 +0,0 @@ -" vim: set ft=pentadactyl:ts=4:sw=4:tw=0: -set runtimepath=~/dotfiles/pentadactyl,~/dotfiles/pentadactyl/external/pentadactyl-solarized -colorscheme solarized-dark - -set go+=N - -source ~/dotfiles/pentadactyl/user.css - -" feedly: -group -description 'Feedly' -locations=feedly.com feedly -nmap -group feedly gm -nmap -group feedly ga -nmap -group feedly gg -nmap -group feedly gl - -set passkeys+=feedly.com:"r/jknpvmxs" - -" github: -set passkeys+=github.com:"r?jks" - -" reddit: -set passkeys+=reddit.com:"jk[]azp?.srfF" - - -com -d "Delete duplicate tabs" tabcloseduplicates,tabclosed -js let seen={},vtabs=tabs.visibleTabs,i=vtabs.length;while(i--){let loc=vtabs[i].linkedBrowser.contentDocument.location.href||"";if(Object.prototype.hasOwnProperty.call(seen, loc)){config.tabbrowser.removeTab(vtabs[i]);}else{seen[loc]=true;}} - - -" Open the current URL as an argument to mpv. -nmap -e :launchv diff --git a/pentadactyl/.stow-local-ignore b/pentadactyl/.stow-local-ignore deleted file mode 100644 index 6be1705..0000000 --- a/pentadactyl/.stow-local-ignore +++ /dev/null @@ -1,3 +0,0 @@ -external -plugins -user.css diff --git a/pentadactyl/external/pentadactyl-solarized b/pentadactyl/external/pentadactyl-solarized deleted file mode 160000 index bf2d2e5..0000000 --- a/pentadactyl/external/pentadactyl-solarized +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bf2d2e5d65cc97a11f0e2ca4c06d8041652c9fef diff --git a/pentadactyl/plugins/launchv.js b/pentadactyl/plugins/launchv.js deleted file mode 100644 index a6303de..0000000 --- a/pentadactyl/plugins/launchv.js +++ /dev/null @@ -1,47 +0,0 @@ -/* ~/.config/pentadactyl/plugins/launchv.js - - From Earnestly. - - Quick function to help reduce duplication in my config, thanks mostly to - holomorph who started pretty much all of this. - - Requires: livestreamer, mpv, youtube-dl. - - Command: - * :launchv Attempts to start the current buffer URL as a video. - - Hint: - * ;q Likewise but for the selected hint. -*/ - -function launchv(target){ - // Escape anything which could be used to inject shell commands before - // passing it to the commands. - var uri = target.replace(/([$`"\\])/g, "\\$1"); - var mpv = "mpv --loop-file --cache-file=TMP"; - - function exec(launcher, uri){ - // If we're using pentadactyl then echo the action as io.system won't. - if(typeof dactyl !== "undefined") - dactyl.echomsg("Executing: " + launcher + " \"" + uri + "\""); - - return io.system(launcher + ' "' + uri + '" &'); - } - - // Filter certain urls to more appropriate programs - if(uri.match(/twitch\.tv\/.*\/[bc]\/[0-9]+/)) - exec(mpv, uri); - - else if(uri.match(/hitbox\.tv\/video\/[0-9]+/)) - exec(mpv, uri); - - else if(uri.match(/(hitbox|twitch)\.tv/)) - exec("livestreamer", uri); - - // For everything else. - else - exec(mpv, uri); -} - -hints.addMode("q", "Launch video from hint", function(elem, loc) launchv(loc)); -commands.add(["launchv", "lv"], "Launches current buffer video", function(args){launchv(buffer.URL);}); diff --git a/pentadactyl/user.css b/pentadactyl/user.css deleted file mode 100644 index 7a22e46..0000000 --- a/pentadactyl/user.css +++ /dev/null @@ -1,91 +0,0 @@ -/*@-moz-document url-prefix(about:blank) {*{background-color:#002b36;}} */ - -@-moz-document url-prefix("http://www.reddit.com/"), url-prefix("https://www.reddit.com/") { - -body { - /*position: relative;*/ - overflow-y: hidden; -} - -html { - overflow-x: hidden; -} -.content { - z-index: -1 !important; -} -.side { - padding-left: 3px; - padding-bottom: 3px; - border-left: 1px solid rgb(230, 230, 230); - border-bottom: 1px solid rgb(230, 230, 230); - border-bottom-left-radius: 6px; - -} - -body>.content, body { - /* This MUST apply to prevent showing stuff through the side bar */ - position: relative !important; -} - -.res-nightmode .side { - border-left-color: rgb(102, 102, 102); - border-bottom-color: rgb(102, 102, 102); - -} - -.side { - margin-left: 0px !important; - - margin-right: -280px !important; - - z-index: 5; - - - - opacity: 0.6; - transition: opacity 0.5s, margin 0.5s; - - transition-delay: 1s; - - transition-timing-function: ease-in-out; - -} - -.side:hover, .side:focus { - transition: opacity 0.2s, margin 0.2s; - /* Apply a negative margin to the left to prevent the content from - being shuffled around by the side bar */ - margin-left: -280px !important; - margin-right: 0px !important; - opacity: 1; - transition-delay: 0s; - -} - -.content { - margin-right: 40px !important; -} - -} - -@-moz-document url-prefix("https://news.ycombinator.com") { - html,#hnmain { - background-color: #002b36 !important; - } - - #hnmain > tbody > tr:first-child > td { - background-color: #073642 !important; - } - - * { - color: #839496 !important; - font-family: "Source Code Pro"; - font-weight: 9pt; - } - - textarea,input { - background-color: #002b36 !important; - color: #839496; - border: 1pt solid #586e75; - } -}