dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit 4c8fe53d18cbe9da8419239ed578f06e716a7df7
parent d6414130fd5a9f87a8e0e5b77052aaac5410325a
Author: z3bra <willy@mailoo.org>
Date:   Thu Jul  3 18:15:13 2014

Merge branch 'master' of z3bra.org:dotfiles

Diffstat:
 bashrc         |  11 +-
 css/nixers.css | 184 ++++++++++++++++-
 css/reddit.css | 675 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 sxhkdrc        |   4 +-
 theme/bow      |  12 +-
 vimrc          |  10 +-
 6 files changed, 885 insertions(+), 11 deletions(-)

diff --git a/bashrc b/bashrc @@ -37,7 +37,7 @@ complete -cf pgrep ## FUNCTIONS {{{ monit() { - test $# -lt 1 && exit 1 + test $# -lt 1 && return 1 ps -eo pcpu,pmem,size,vsize,pid,args | sed -n "1p;/$1/p" | grep -v 'sed -n' } @@ -109,11 +109,18 @@ ttycolors() { fi } +# my computer is talking say () { uri='http://translate.google.com/translate_tts?tl=en&q=' - mplayer -really-quiet "${uri}$*" + mpv -really-quiet "${uri}$*" } +# get a short definition from wikipedia +wiki () { + dig +short txt "$*".wp.dg.cx +} + +# consult vim's help :h () { vim +"h $1" +only +'map q ZQ' } diff --git a/css/nixers.css b/css/nixers.css @@ -0,0 +1,184 @@ +// jmbi's css + +.postbottom{ + border-top: 1px hidden #f0f0f0 !important; +} + +.post_content { + border-top: 1px solid #e7e7e7; +} + +#guesthead{ + border-top: none !important; +} + +.post_management_buttons > a > input{ + background-color: #f0f0f0 !important; + margin-top: 3px !important; +} + +fieldset { + border: 1px solid #d3d3d3; +} + +.membertable{ + border: none !important; + font-size: 14px !important; + color: #666 !important; + background: #f5f5f5 !important; + border-collapse: collapse !important; + border-color: none !important; +} + +body { + font-family: Helvetica !important; + background-color: #eeeeee !important; + color: #666666 !important; +} + +#container { + color: #444 !important; + font-size: 14px !important; +} + +#header { + background-color: #FFFFFF !important; +} + +#infobar { + background-color: #2d2e2e; + background-color: #e8e8e8 !important; + border-bottom: 1px solid #d3d3d3 !important; + width: 100%; + margin: auto; +} + +#nixerlogo { + display: inline; + float: left; + font-size: 18px; + font-weight: bold; + margin-top: 1px; +} + +#navcontainer { + width: 850px; + margin-left: auto; + margin-right: auto; + height: 25px; +} + +#navlinks { + display: inline; + float: right; + margin-top: 5px; +} + +a:visited { + text-shadow: none !important; + color: #dddddd !important; +} + +a:link { + text-shadow: none !important; + color: #888888 !important; +} + + +a:hover { + background-color: none !important; + color: #2288cc !important; +} + +#sep{ + color: rgb(206, 206, 206) !important; +} + +.tcat { + color: #555 !important; + text-shadow: none !important; + background: #e8e8e8 !important; + border-bottom: 1px solid #d3d3d3 !important; +} + +.trow1 { + background: #f5f5f5 !important; + border-bottom: 1px solid #d3d3d3 !important; +} + +.trow2 { + background: #f5f5f5 !important; + border-bottom: 1px solid #d3d3d3 !important; +} + +.posttop { + border: none !important; +} + +.thead, .tfoot { + background: #e8e8e8 !important; + color: #666 !important; +} + +table { + font-size: 14px; + color: #666; + background-color: #f5f5f5; + background: #f5f5f5; + border-collapse: collapse; + border: 1px solid #d3d3d3; + border-color: #d3d3d3; +} + +div.name_topic { + background-color: #e8e8e8 !important; + border: 1px solid #d3d3d3 !important; + color: #666; +} + +hr { + border: 0; + border-bottom: 1px dashed #d3d3d3; + background: #f5f5f5; + width: 100%; +} + +input[type="submit"], input[type="button"], input[type="checkbox"] { + background-color: #e8e8e8 !important; + color: #666 !important; + border: 0 !important; + outline: none !important; +} + +blockquote { + background-color: #e8e8e8 !important; + border: 1px solid #d3d3d3 !important; + outline: none !important; + max-width: inherit !important; +} + + +blockquote cite { + border-bottom: 1px dashed #d3d3d3 !important; + text-shadow: none !important; +} + +textarea { + background-color: #e8e8e8 !important; + border-color: #d3d3d3 !important; + border: 1px solid #d3d3d3 !important; + color: #555 !important; +} + +select { + background-color: #e8e8e8 !important; + color: #666 !important; +} + +.pagination a:hover { + background: none !important; +} + +.subject_new, a.subject_new { + color: #2288cc !important; +} diff --git a/css/reddit.css b/css/reddit.css @@ -0,0 +1,675 @@ +/* Naughtsee's Edit of Imouto */ + +/* I despise outlines */ +*{ + outline: none !important; + /* outline: DIE DIE DIE DIE DIE !MUY IMPORTANTE; */ + font-family: "Open Sans" !important; +} + +p { + font-size: 8pt !important; +} + + +#header-img, +#sr-more-link, +.trending-subreddits, +.debuginfo, +.dropdown, +.commentarea .title, +.next-suggestions { + display: none !important; +} + +.content { /* fix margin above posts / comments etc */ + margin-top: 70px !important; +} + +.midcol { + height:80px !important; + font-size: 20px !important; + font-weight: normal !important; + text-align: center !important; +} +.midcol .score { + margin-top: 5px !important; + font-size: 8px !important; +} + +.upmod, +.up { /* up arrow */ + width: 0 !important; + height: 15px !important; +} + +.up:before, +.upmod:before { /* replaces up arrow */ + content: "\26aa" !important; + margin-left: -8px !important; + color: #ccc ; +} + +.upmod:before{ + color: #f3a77f; +} +.midcol .likes{ + color: #f3a77f !important;; +} + +.down, +.downmod{ + width: 0 !important; + margin-top: -5px !important; + height: 15px !important; +} +.down:before, +.downmod:before { + content: "\26aa" !important; + margin-left: -8px !important; + color: #ccc !important;; + margin-top: -5px +} +.downmod:before{ + color: #8691f5 !important; +} +.midcol .dislikes{ + color: #8691f6 !important; +} + + +/* + ______ _ _____ + | ____| | | | __ \ + | |__ _ __ ___ _ __ | |_ | |__) |_ _ __ _ ___ + | __| '__/ _ \| '_ \| __| | ___/ _` |/ _` |/ _ \ + | | | | | (_) | | | | |_ | | | (_| | (_| | __/ + |_| |_| \___/|_| |_|\__| |_| \__,_|\__, |\___| + __/ | + |___/ +*/ + +.front-page .content { + margin-top: 80px !important; +} + +.front-page .tabmenu { /* fix alignment */ + margin-bottom: 5px !important; + margin-left: 0 !important; +} + +.font-page #header{ /* Bar @ top */ + top: -75px !important; + background: #efefef !important; + position: fixed !important; + height:130px !important; + width:100%!important; + margin: 0 0 20px 0 !important; + border: none !important; + box-shadow: 0 2px 2px #afafaf !important; +} +.front-page #header:hover{ + top: -75px !important; +} + +.front-page { /* Adds room to top of posts for the bar */ + position:absolute !important; + margin-top: -10px !important; +} + +.front-page .side{ /* fix alignment */ + margin-top: 40px !important; +} +/* + _ _ _ + | | | | | | + | |__| | ___ __ _ __| | ___ _ __ + | __ |/ _ \/ _` |/ _` |/ _ \ '__| + | | | | __/ (_| | (_| | __/ | + |_| |_|\___|\__,_|\__,_|\___|_| +*/ + +.pagename a{ /* Name of the Subreddit */ + position: absolute !important; + top: -80px !important; + text-decoration: none !important; + color: #91b6c6 !important; + font-family: fantasy !important; + font-weight: 300 !important; + font-size: 25pt !important; + text-align: center !important; + width: 100% !important; +} +.pagename a:before{ /* Puts /r/ before each title */ + content: "/r/" !important; +} + +#header { /* Bar @ top */ + top: -75px !important; + background: #efefef !important; + position: fixed !important; + height:130px !important; + width:100%!important; + margin: 0 0 -20px 0 !important; + border: none !important; + box-shadow: 0 2px 2px #afafaf !important; + transition: 0.5s ease all !important; +} +#header:hover { + top: 0 !important; + /* transition-delay: 0.5s !important; */ +} + +#header-bottom-left{ /* Stretches accross bar contains "hot new rising" etc */ + position: absolute !important; + background: #fafafa !important; + border-radius: 0 !important; + bottom: 0 !important; + width: 100% !important; +} + +#header-bottom-right{ /* Right side bar. Contains user etc */ + height: 10px !important; + position: absolute !important; + border:0!important; + background: transparent !important; + bottom: 5px !important; + right: 5px !important; +} + +.tabmenu *{ /* Fixes "hot new rising" links */ + background: transparent !important; + border: 0 !important; + font-weight: normal !important; + font-size: 8pt !important; +} +.tabmenu { /* fix alignment */ + margin-bottom: 5px !important; + margin-left: -9px !important; +} +.tabmenu li { + margin: -3px !important; +} + +.tabmenu .selected a{ /* Selected subreddit */ + color: #91b6c6 !important; +} + +img#header-img { /* Logo */ + display: none !important; +} + + +.content .menuarea { /* When on "top" etc, controls "links from ..." */ + border: 0 !important; + margin-top: -5px !important; + text-align: center !important; +} + +.content > .menuarea > .spacer span{ /* Font inside above^ */ + text-decoration: none !important; + font-weight: normal !important; + color: #c69195 !important; + font-size: 8pt !important; +} + +#sr-header-area { /* look of menu */ + width: 98% !important; + margin:auto !important; + position: relative !important; + top: 80px !important; + border: 0 !important; + box-shadow: none !important; +} + +span.separator { opacity: 0 !important; } + +#sr-header-area li a:link { color: #888888 !important; } +#sr-header-area li a:hover { color: #2288cc !important; } +#sr-header-area li.selected a { color: #2288cc !important; } + +body.messages-page #sr-header-area { display: none !important; } + +/* + _____ _ + | __ \ | | + | |__) |__ ___| |_ ___ + | ___/ _ \/ __| __/ __| + | | | (_) \__ \ |_\__ \ + |_| \___/|___/\__|___/ + +*/ + +body{ /* Sets BG of most things */ + background: #efefef !important; + width:100% !important; +} + +#siteTable > .thing { /* Post Containers */ + background: #fafafa !important; + padding: 10px !important; + box-shadow: #afafaf 0 0 2px !important; + border: 0 !important; + margin: 10px 10px 0 10px !important; +} + +.listing-chooser-collapsed .content .spacer{ /* Fixes left margin between + front page and subreddits */ + margin-left: -10px !important; +} + +a.title, +a.author { /* Links in posts */ + color: #648ea7 !important; +} + +.stickied-tagline{ /* stickied post text color */ + color:#637f53!important; +} +a.title { /* Title Size */ + font-size: 14px !important; +} + + +/* + _____ _ _ _ + / ____(_) | | | | + | (___ _ __| | ___| |__ __ _ _ __ + \___ \| |/ _` |/ _ \ '_ \ / _` | '__| + ____) | | (_| | __/ |_) | (_| | | + |_____/|_|\__,_|\___|_.__/ \__,_|_| + +*/ + +div.side { /* Actual Sidebar */ + padding: 10px!important; + padding-right: 30px !important; + background: #fafafa !important; + transition: 0.5s ease all 0.5s!important; + opacity: 0 !important; + top: 55px !important; + right: -325px !important; + float: left !important; + position: absolute !important; + box-shadow: -2px 3px 2px #afafaf!important; + z-index: 99999 !important; +} +div.side:hover { + right: -5px !important; + opacity: 1 !important; + /* transition-delay: 1.5s !important; */ +} + +.side *{ /* Fixes fonts */ + font-weight: normal !important; +} + +#searchexpando { /* fixes font sizes on sidebar, in searchbox expanded */ + font-size: 8pt !important; +} +.sidecontentbox { /* "Moderators" etc */ + text-align: center !important; +} + +.morelink .nub { /* Something on the submit button */ + display: none !important; +} + +#search input { /* Searchbox */ + background: #fafafa !important; + border: none !important; + border-radius: 0 !important; + box-shadow: #afafaf 0 0 2px !important; + font-size: 8pt !important; +} + +.submit-link a, +.submit-text a, +.morelink { /* Buttons on sidebar */ + color: #333 !important; + background: #efefef !important; + border: 0 !important; + box-shadow: 0 0 2px #afafaf !important; + transition: 0.5s ease all !important; +} +.submit-link a:hover, +.submit-text a:hover { + box-shadow: 0 0 5px #afafaf !important; +} +.submit-link a:active, +.submit-text a:active { /* When clicked, looks inset */ + box-shadow: inset 0 0 5px 2px #afafaf !important; +} + +/* + _____ _ + / ____| | | + | | ___ _ __ ___ _ __ ___ ___ _ __ | |_ ___ + | | / _ \| '_ ` _ \| '_ ` _ \ / _ \ '_ \| __/ __| + | |___| (_) | | | | | | | | | | | __/ | | | |_\__ \ + \_____\___/|_| |_| |_|_| |_| |_|\___|_| |_|\__|___/ + +*/ + +.panestack-title { /* Section above comments */ + border: 0 !important; +} + +.comments-page .menuarea { /* "sorted by" */ + width: 99.3% !important; /* overflows otherwise */ + margin-top: 0 !important; + text-align: center !important; + border: 0 !important; +} + +.usertext-edit > div > textarea { /* fixes spacing with input */ + margin-top: 20px !important; +} + +.comment .entry { /* comments inside a thread */ + background: #fafafa !important; + box-shadow: #afafaf 0 0 2px !important; + padding: 10px !important; + transition: 0.5s ease all 0s !important; +} + +.md { /* text in comments */ + border: 0 !important; + text-align: left !important; + color: #333 !important; +} +.md > p > a { /* links in comments */ + color: #c69195 !important; +} + +.md h1 { + visibility: visible !important; + font-size: 120% !important; + font-weight: bold !important; + color: #888 !important; +} + +.md pre code{ /* Code blocks */ + font-family: monospace !important; + display: inline-block !important; /* important */ + white-space: pre-wrap !important; /* allows code to wrap */ + background: #efefef !important; + padding: 5px !important; + color: #666 !important; +} + +.comments-page .up, +.comments-page .upmod{ /* fixes arrows */ + margin-bottom: 10px !important; + height: 15px !important; +} +.comments-page .down, +.comments-page .downmod{ /* Fixes arrows */ + margin-top: 0 !important; + height: 15px !important; +} + +/* + _ _ _____ + | | | | | __ \ + | | | |___ ___ _ __ | |__) |_ _ __ _ ___ + | | | / __|/ _ \ '__| | ___/ _` |/ _` |/ _ \ + | |__| \__ \ __/ | | | | (_| | (_| | __/ + \____/|___/\___|_| |_| \__,_|\__, |\___| + __/ | + |___/ +*/ + +.linklisting .comment { /* space out user posts in profile */ + margin: 5px !important; +} +.linklisting .unvoted, +.linklisting .entry { /* no double box shadows */ + box-shadow: none !important; +} + +/* + _ _ __ __ _ _____ _ _ _ + ( | ) \/ | | | | __ \ | |( | ) + V V| \ / | __ _| | _____ __ _ | |__) |__ ___| |_V V + | |\/| |/ _` | |/ / _ \ / _` | | ___/ _ \/ __| __| + | | | | (_| | < __/ | (_| | | | | (_) \__ \ |_ + |_| |_|\__,_|_|\_\___| \__,_| |_| \___/|___/\__| + +*/ + +.submit-page h1{ /* remove useless title */ + visibility: hidden !important; +} + +.submit-page .redditname { /* color :SUBMIT */ + color: #c69195 !important; +} + +.submit-page #header { /* Bar @ top */ + top: -55px !important; + background: #efefef !important; + position: fixed !important; + height:80px !important; + width:100%!important; + margin: 0 0 -20px 0 !important; + border: none !important; + box-shadow: 0 2px 2px #afafaf !important; + transition: 0.5s ease all !important; +} +.submit-page #header:hover { + top: 0 !important; + transition-delay: 1.5s !important; +} + +.submit-page #header-bottom-left { /* Stretches accross bar + contains "hot new rising" etc*/ + position: absolute !important; + background: #fafafa !important; + border-radius: 0 !important; + bottom: 0 !important; + width: 100% !important; +} + +.submit-page #header-bottom-right{ /* Right side bar. Contains user etc */ + height: 8px !important; + position: absolute !important; + border:0!important; + background: transparent !important; + bottom: 5px !important; + right: 5px !important; +} + +#link-desc, /* BS about what makes a good post */ +#suggested-reddits, /* list of reddits */ +#newlink > .info-notice { /* reddiquette BS */ + display: none !important; +} + +.submit-page .spacer{ /* Everything is a fucking spacer */ + margin: 0 !important; +} + +.formtabs-content { /* remove uglee line @ top */ + border: 0 !important; +} + +.submit-page textarea, +.submit-page input { /* Input areas */ + border: 0 !important; + box-shadow: none !important; + background: #efefef !important; + font-size: 8pt !important; + color: #666 !important; +} + +#title-field .title, +#url-field .title, +#reddit-field .title, +.submit-page .roundfield .title{ /* Headings on fields */ + font-size: 12pt !important; + color: #666 !important; +} + +#title-field, +#url-field, +#reddit-field, +.submit-page .roundfield{ /* "Tite" "url" etc */ + background: #fafafa !important; + box-shadow: #afafaf 0 0 2px !important; + border-radius: 0 !important; + margin-bottom: 10px !important; +} + +.submit-page .roundfield label { + color: #666 !important; + font-size: 8pt !important; +} + +/* + __ __ + | \/ | + | \ / | ___ ___ ___ __ _ __ _ ___ ___ + | |\/| |/ _ \/ __/ __|/ _` |/ _` |/ _ \/ __| + | | | | __/\__ \__ \ (_| | (_| | __/\__ \ + |_| |_|\___||___/___/\__,_|\__, |\___||___/ + __/ | + |___/ +*/ + +.messages-page #header{ /* Bar @ top */ + top: -55px !important; + background: #efefef !important; + position: fixed !important; + height:80px !important; + width:100%!important; + margin: 0 0 -20px 0 !important; + border: none !important; + box-shadow: 0 2px 2px #afafaf !important; +} + +.messages-page .tabmenu{ /* fix "compose" etc alignment */ + margin-left: 0 !important; +} + +.messages-page .content{ /* view " all unread etc " */ + margin-top: 35px !important; +} + +.messages-page .menuarea{ /* Fix spacing with Menu */ + margin-bottom: -5px !important; +} + +.messages-page .thing{ /* Spacing on messages */ + margin: 10px 5px 0 5px !important; + padding: 0 !important; +} + +.message .unvoted, +.message .entry { /* no double box shadows & appearance of message */ + box-shadow: none !important; + border: 0 !important; + background-color: #efefef !important; + margin: 5px !important; +} + +/* + _____ + / ____| + | | ___ _ __ ___ _ __ ___ ___ ___ + | | / _ \| '_ ` _ \| '_ \ / _ \/ __|/ _ \ + | |___| (_) | | | | | | |_) | (_) \__ \ __/ + \_____\___/|_| |_| |_| .__/ \___/|___/\___| + | | + |_| +*/ +h1{ + visibility: hidden !important; +} + +#compose-message .spacer .roundfield{ + background: #fafafa !important; + box-shadow: #afafaf 0 0 2px !important; + border-radius: 0 !important; + margin-bottom: 10px !important; +} + +#compose-message .title{ + color: #666 !important; + font-size: 12pt !important; +} + +#compose-message textarea, +#compose-message input { /* Input areas */ + border: 0 !important; + box-shadow: none !important; + background: #efefef !important; + font-size: 8pt !important; + color: #666 !important; +} + +.loggedin #header-bottom-left > .selected { /* bold messages thing */ + display:none !important; +} + + +/* + __ __ _ + | \/ (_) + | \ / |_ ___ ___ + | |\/| | / __|/ __| + | | | | \__ \ (__ _ + |_| |_|_|___/\___(_) + +*/ + +.message .subject, +.messages-page .pagename { /* ugly stuff on messages */ + display: none !important; +} +.messages-page .menuarea a, +.messages-page .noncollapsed > .tagline { /* Size in Messages */ + color: #648ea7 !important; + font-size: 8pt !important; +} + +.with-listing-chooser .listing-chooser{ /* Hide ugly left sidebar */ + display: none !important; +} + +#offsite { /* Imgur & embedded stuff */ + box-shadow: #666 0 0 2px !important; +} + +form.toggle.flairtoggle, +div.tagline, +span.flair, +.expando-button{ /* Hide flair */ + display: none !important; +} + +div.md p del, +.sidebox.create { /* Clean up sidebar */ + display: none !important; +} + +#ad_main, +.goldvertisement, +.promoted, +.show-placeholder { /* Clean up ads */ + display: none !important; +} + +div.footer-parent { /* Footer */ + display: none !important; +} + +div.nav-buttons{ + margin: 10px 0 0 15px !important +} + +.nextprev a{ + border-radius: 0 !important; + border: none !important; + color: #648ea7 !important; +} diff --git a/sxhkdrc b/sxhkdrc @@ -12,11 +12,11 @@ Menu XF86Audio{Raise,Lower}Volume amixer set Master 5%{+,-} unmute; \ - ~/bin/popup volumebar + ~/bin/popup -t volume volumebar XF86AudioMute amixer set Master toggle; \ - ~/bin/popup volumebar + ~/bin/popup -t volume volumebar control + {Prior,Next,Home} ~/bin/gamma.sh {up 0.25,down 0.25, reset} diff --git a/theme/bow b/theme/bow @@ -11,12 +11,12 @@ *color7: #888888 *color8: #bbbbbb -*color9: #6688bb -*color10: #6688bb -*color11: #6688bb -*color12: #6688bb -*color13: #6688bb -*color14: #6688bb +*color9: #2288cc +*color10: #2288cc +*color11: #2288cc +*color12: #2288cc +*color13: #2288cc +*color14: #2288cc *color15: #111111 URxvt*highlightColor: #aaaaaa diff --git a/vimrc b/vimrc @@ -88,6 +88,14 @@ nmap <leader>f :echomsg expand('%:p')<CR> nmap <leader>= yyp:s/./=/g<CR> nmap <leader>- yyp:s/./-/g<CR> +" comment out lines +nmap <leader># I# <ESC> +nmap <leader>/ I/* <ESC>A */<ESC> + +" same for blocks +vmap <leader># :s/^\s*/&# /<CR> +vmap <leader>/ <ESC>'<O/*<ESC>'>o */<ESC>:'<,'>s/^\s*/& * /<CR> + " upload to sprunge.us (without range, upload the whole file) command! -range=% Sprunge <line1>,<line2>w !curl -F 'sprunge=<-' http://sprunge.us " }}} @@ -142,7 +150,7 @@ endfu " Toggle between make and cc for compiling with :make fu! ToggleCCompiler() if &makeprg =~ '^make*$' - set makeprg=cc\ -o\ %<.out\ %\ -Wall + set makeprg=tcc\ -o\ %<.out\ %\ -Wall else set makeprg=make endif