From dec57afd46312bc21000cc7e6ea28486e7bc0093 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 30 Jul 2014 23:53:42 +0200 Subject: Add pentadactylrc --- makefile | 3 ++- pentadactyl/pentadactylrc | 66 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 pentadactyl/pentadactylrc diff --git a/makefile b/makefile index 126fb3b..bae02d1 100644 --- a/makefile +++ b/makefile @@ -1,2 +1,3 @@ install: - ln -s .config/zsh/.zshenv "$(HOME)/.zshenv" + ln -sf .config/zsh/.zshenv "$(HOME)/.zshenv" + ln -sf .config/pentadactyl/pentadactylrc "$(HOME)/.pentadactylrc" diff --git a/pentadactyl/pentadactylrc b/pentadactyl/pentadactylrc new file mode 100644 index 0000000..e2bad71 --- /dev/null +++ b/pentadactyl/pentadactylrc @@ -0,0 +1,66 @@ +" ~/.pentadactylrc + +set runtimepath=~/.config/pentadactyl + +loadplugins '\.(js|penta)$' +group user +highlight FontFixed font-family: monospace !important; font: 12px "Source Code Pro" !important; +map -modes=n -silent C -javascript commands.execute('!(mpv "' + \ + content.location.href.replace(/([$`"\\])/g, "\\$1") + \ + '") &'); +set defsearch=duckduckgoog + + +" ui +source ~/.config/pentadactyl/chrome.css +set guioptions=Csn +set hlfind + +" Speed up scrolling +nmap -b h 5h +nmap -b j 5j +nmap -b k 5k +nmap -b l 5l + +" Tab control +nmap -e :tabprev +nmap -e :tabnext +nmap -e :tabmove -1 +nmap -e :tabmove +1 + +" Toggle bookmark toolbar +nmap -e :toolbartoggle Bookmarks Toolbar + +" Easily show downloads +nmap -e :downloads + +" Stop and doing whatever it does +nmap +nmap + +nmap + +" Open the current URL as an argument to yt-dl +nmap -e :launchv + +" Same above but with quvi +nmap -e :launchvq + +" Use vim instead of gvim for now +set editor='termite -e "vim + "' + +" Hide the status bar when using fullscreen +au fullscreen on set go-=s +au fullscreen off set go+=s + +" Change some default about:configs +set! noscript.keys.tempAllowPage="alt z" +set! noscript.keys.revokeTemp="alt c" +"set! noscript.notify=false +set! plugins.click_to_play=true +set! plugin.default.state=1 + +" Require websites preform safe ssl negotiation +set! security.ssl.treat_unsafe_negotiation_as_broken=true + +" vim: ft=pentadactyl -- cgit v1.2.3-70-g09d2