From ebbf7b632056979f1c8cd273bcbfd3570316818a Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Mon, 25 Aug 2014 17:50:07 +0200 Subject: pentadactyl more ergonomic bindings --- pentadactylrc | 47 ++++++++++++++--------------------------------- ratpoison/volind | 2 +- 2 files changed, 15 insertions(+), 34 deletions(-) diff --git a/pentadactylrc b/pentadactylrc index 1040fbe..8cd97e9 100644 --- a/pentadactylrc +++ b/pentadactylrc @@ -1,4 +1,4 @@ -"hg6942 +"hg7101 loadplugins '\.(js|penta)$' group user @@ -65,6 +65,7 @@ highlight -link=s_green Object color: maroon; highlight -link=s_base1 Preview color: gray; highlight -link=s_cyan Question highlight s_base0 color: #839496 !important; +highlight s_base0_back background-color: #839496 !important; highlight s_base00 color: #657b83 !important; highlight s_base00_back background-color: #657b83 !important; highlight s_base01 color: #586e75 !important; @@ -73,7 +74,6 @@ highlight s_base02 color: #073642 !important; highlight s_base02_back background-color: #073642 !important; highlight s_base03 color: #002b36 !important; highlight s_base03_back background-color: #002b36 !important; -highlight s_base0_back background-color: #839496 !important; highlight s_base1 color: #93a1a1 !important; highlight s_base1_back background-color: #93a1a1 !important; highlight s_base2 color: #eee8d5 !important; @@ -94,16 +94,16 @@ highlight s_orange color: #cb4b16 !important; highlight s_orange_back background-color: #cb4b16 !important; highlight s_red color: #dc322f !important; highlight s_red_back background-color: #dc322f !important; +highlight s_violet color: #6c71c4 !important; +highlight s_violet_back background-color: #6c71c4 !important; +highlight s_yellow color: #b58900 !important; +highlight s_yellow_back background-color: #b58900 !important; highlight -link=s_base3,s_orange_back StatusLineBroken highlight -link=s_base3,s_violet_back StatusLineExtended highlight -link=s_base00,s_base2_back StatusLineNormal highlight -link=s_base3,s_blue_back StatusLineSecure highlight StatusQuestion color: inherit !important; background: transparent !important; background-color: inherit !important; highlight -link=s_base3,s_magenta_back StatusWarningMsg -highlight s_violet color: #6c71c4 !important; -highlight s_violet_back background-color: #6c71c4 !important; -highlight s_yellow color: #b58900 !important; -highlight s_yellow_back background-color: #b58900 !important; highlight -link=s_base3 TabIconNumber cursor: default; width: 16px; margin: 0 2px 0 -18px !important; font-weight: bold; color: white; text-align: center; text-shadow: #002b36 -1px 0 1px, #002b36 0 1px 1px, #002b36 1px 0 1px, #002b36 0 -1px 1px; highlight -link=s_blue Tag color: blue; highlight -link=s_red Title color: magenta; font-weight: bold; @@ -113,36 +113,17 @@ highlight UsageItem:nth-of-type(2n) background: rgba(0, 43, 54, .04); highlight -link=s_base3,s_yellow_back WarningMsg map -count -modes=n,v h gT map -count -modes=n,v l gt -map -count -modes=n,v d -builtin -map -count -modes=n,v D -builtin d -map -count -modes=n,v u -builtin -map -count -modes=n,v U -builtin u +map -count -modes=n,v s -builtin +map -count -modes=n,v d -builtin d +map -count -modes=n,v e -builtin +map -count -modes=n,v u -builtin u map -count -modes=n,v x -builtin d -map -count -modes=n,v w owikipedia +map -count -modes=n,v w owikipedia +map -count -modes=n,v ( H +map -count -modes=n,v ) L set autocomplete= -set defsearch=startpage-https +set defsearch=duckduckgo set editor='rxvt -e sh -c "vim + +\"sil! call cursor(0, )\" "' - - set strictfocus=*:despotic -set runtimepath=~/.pentadactyl -au DownloadPost * :silent !~/.ratpoison/ranger_browser.sh - - - " vim: set ft=pentadactyl: - - -" Toggle images with A-i -javascript <"], - "Toggle images display", - function () { - if (prefs.get('permissions.default.image') == 1) - prefs.set("permissions.default.image", 2); - else - prefs.set("permissions.default.image", 1); - tabs.reload(config.browser.mCurrentTab); - }); -EOF diff --git a/ratpoison/volind b/ratpoison/volind index c562ef6..3444201 100755 --- a/ratpoison/volind +++ b/ratpoison/volind @@ -4,7 +4,7 @@ bottom=`echo $volm | awk '{print int($1 * 0.2 + 0.5)}'` top=$((20-$bottom)) if [[ "$volm" -eq "100" ]]; then - let volm=99 + let volm=M+ fi -- cgit v1.2.3-54-g00ecf