summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/fish/config.fish85
-rwxr-xr-x.config/herbstluftwm/autostart123
-rwxr-xr-x.config/herbstluftwm/panel.sh96
-rw-r--r--.config/newsbeuter/.gitignore3
-rw-r--r--.config/newsbeuter/config27
-rw-r--r--.config/newsbeuter/urls124
6 files changed, 458 insertions, 0 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
new file mode 100755
index 0000000..247daad
--- /dev/null
+++ b/.config/fish/config.fish
@@ -0,0 +1,85 @@
+#! /usr/bin/fish
+
+function fish_prompt -d "Write out the prompt"
+ set last_status $status
+ set current_directory (prompt_pwd)
+ set git_branch (git branch --contains HEAD 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
+ set pac_cnt (cat /var/cache/pacman/updates.cnt)
+ set aur_cnt (cat /var/cache/pacman/aur.cnt)
+ set cnormal (set_color white)
+
+ echo -n $cnormal
+
+ if test $pac_cnt -gt 0 -o $aur_cnt -gt 0
+ printf '%s%d%s/%s%d%s:' (set_color cyan) $pac_cnt $cnormal (set_color cyan) $aur_cnt $cnormal
+ end
+
+ printf '%s%s%s' (set_color magenta) (hostname|cut -d . -f 1) $cnormal
+
+ if test -n "$current_directory"
+ printf ':%s%s%s' (set_color $fish_color_cwd) $current_directory $cnormal
+ end
+
+ if test -n "$git_branch"
+ printf '@%s%s%s' (set_color yellow) $git_branch $cnormal
+ end
+
+ if test $last_status -eq 0
+ printf '%s%s' (set_color --bold green)
+ else
+ printf '%s%s' (set_color --bold red)
+ end
+
+ printf '>%s ' (set_color normal)
+end
+
+function cower
+ /usr/bin/cower --color=always --target=$HOME/var/aur $argv
+end
+
+function grep
+ /bin/grep --color=always $argv
+end
+
+function less
+ /bin/less -FXRS $argv
+end
+
+function ls
+ /bin/ls -F --color=always $argv
+end
+
+function mysql
+ /usr/bin/mysql --pager $argv
+end
+
+function slrn
+ set -x NNTPSERVER 'news.gmane.org'
+ /usr/bin/slrn $argv
+end
+
+function shutdown
+ dbus-send --system --print-reply \
+ --dest="org.freedesktop.ConsoleKit" \
+ /org/freedesktop/ConsoleKit/Manager \
+ org.freedesktop.ConsoleKit.Manager.Stop
+end
+
+function reboot
+ dbus-send --system --print-reply \
+ --dest="org.freedesktop.ConsoleKit" \
+ /org/freedesktop/ConsoleKit/Manager \
+ org.freedesktop.ConsoleKit.Manager.Restart
+end
+
+function engage
+ play -n -c1 synth whitenoise band -n 100 20 band -n 50 20 gain +25 fade h 1 864000 1
+end
+
+function lscompmod -d "List kernel modules used by hardware"
+ lspci -mvk | awk '/^Module/ {print $2}' | sort -u
+end
+
+set -x PAGER 'less -FXRS'
+set -x BROWSER firefox
+set -x EDITOR 'emacs -nw'
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
new file mode 100755
index 0000000..d93a60a
--- /dev/null
+++ b/.config/herbstluftwm/autostart
@@ -0,0 +1,123 @@
+#!/usr/bin/guile
+!#
+
+(define (hc command)
+ (system (string-append "herbstclient " command)))
+
+(define (keybind modkey key command)
+ (display (string-append "keybind " modkey "-" key " " command "\n"))
+ (hc (string-append "keybind " modkey "-" key " " command)))
+
+(define (mousebind modkey button command)
+ (hc (string-append "mousebind " modkey "-" button " " command)))
+
+(define (add-tag name)
+ (hc (string-append "add " name)))
+
+(define (set variable value)
+ (hc (string-append "set " variable " " value)))
+
+(define (unrule)
+ (hc "unrule -F"))
+
+(define (rule spec)
+ (hc (string-append "rule " spec)))
+
+(define modkey "Mod4")
+
+(define (create-tag name)
+ (add-tag name)
+ (keybind modkey name (string-append "use " name))
+ (keybind modkey
+ (string-append "Shift-" name)
+ (string-append "move " name)))
+
+(define (dmenu-command fn nb nf)
+ (string-append "dmenu_run -fn '" fn "' -nb '" nb "' -nf '" nf "'"))
+
+(define (set-layout layout)
+ (display (string-append "set_layout " layout "\n"))
+ (hc (string-append "set_layout " layout)))
+
+;; colors
+(set "frame_border_active_color" "\\#2e3436")
+(set "frame_border_normal_color" "\\#0c191c")
+(set "frame_bg_normal_color" "\\#2e3436")
+(set "frame_bg_active_color" "\\#0c191c")
+(set "frame_border_width" "0")
+(set "window_border_width" "2")
+(set "window_border_normal_color" "\\#0c191c")
+(set "window_border_active_color" "\\#800000")
+
+;; other settings
+(set "default_frame_layout" "2")
+(set-layout "max")
+
+;; keybindings
+(keybind modkey "Mod1-q" "quit")
+(keybind modkey "Mod1-r" "reload")
+(keybind modkey "Shift-Mod1-c" "close")
+(keybind modkey "Return" "spawn urxvt")
+(keybind modkey "r"
+ (string-append
+ "spawn "
+ (dmenu-command
+ "-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*"
+ "#252a2b" "#eeeeec")))
+(keybind "Control" "Mod1-l" "spawn i3lock -c 000000")
+(keybind modkey "t" "spawn ~/bin/hlwm/capture-todo")
+(keybind modkey "Shift-t" "spawn ~/bin/hlwm/show-todo")
+
+;; tags
+(hc "rename default q")
+(for-each create-tag '("q" "w" "e" "a" "s" "d" "z" "x" "c"))
+
+;; layout
+(hc "remove_monitor 1")
+(hc "move_monitor 0 1680x1050+0+0")
+(hc "add_monitor 1280x1024+1680+0 w")
+
+;; layouting
+(keybind modkey "Shift-r" "remove")
+(keybind modkey "space" "cycle_layout 1")
+(keybind modkey "u" "split vertical 0.5")
+(keybind modkey "o" "split horizontal 0.5")
+(keybind modkey "f" "floating toggle")
+(keybind modkey "Shift-f" "fullscreen toggle")
+(keybind modkey "p" "pseudotile toggle")
+
+;; resizing
+(define resizestep "0.05")
+(keybind modkey "Control-h" (string-append "resize left +" resizestep))
+(keybind modkey "Control-j" (string-append "resize down +" resizestep))
+(keybind modkey "Control-k" (string-append "resize up +" resizestep))
+(keybind modkey "Control-l" (string-append "resize right +" resizestep))
+
+;; mouse
+(mousebind modkey "Button1" "move")
+(mousebind modkey "Button2" "resize")
+(mousebind modkey "Button3" "zoom")
+
+;; focus
+(keybind modkey "BackSpace" "cycle_monitor")
+(keybind modkey "Tab" "cycle_all +1")
+(keybind modkey "Shift-Tab" "cycle_all -1")
+(keybind modkey "Mod1-c" "cycle")
+(keybind modkey "h" "focus left")
+(keybind modkey "j" "focus down")
+(keybind modkey "k" "focus up")
+(keybind modkey "l" "focus right")
+(keybind modkey "Shift-h" "shift left")
+(keybind modkey "Shift-j" "shift down")
+(keybind modkey "Shift-k" "shift up")
+(keybind modkey "Shift-l" "shift right")
+
+;; rules
+(unrule)
+(rule "focus=on") ; normally do not focus new clients
+(rule "windowtype=_NET_WM_WINDOW_TYPE_DIALOG focus=on pseudotile=on")
+(rule "class=Xephyr pseudotile=on")
+
+;; Show panel
+
+(system "~/.config/herbstluftwm/panel.sh &")
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
new file mode 100755
index 0000000..c955a0c
--- /dev/null
+++ b/.config/herbstluftwm/panel.sh
@@ -0,0 +1,96 @@
+#!/bin/bash
+
+monitor=${1:-0}
+geometry=( $(herbstclient monitor_rect "$monitor") )
+if [ -z "$geometry" ] ;then
+ echo "Invalid monitor $monitor"
+ exit 1
+fi
+# geometry has the format: WxH+X+Y
+x=${geometry[0]}
+y=${geometry[1]}
+width=${geometry[2]}
+height=16
+font="-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*"
+fgcolor='#eeeeec'
+bgcolor='#252a2b'
+hintcolor="#0c191c"
+
+function uniq_linebuffered() {
+ awk '$0 != l { print ; l=$0 ; fflush(); }' "$@"
+}
+
+herbstclient pad $monitor $height
+{
+ # events:
+ #mpc idleloop player &
+ while true ; do
+ date +'date ^fg($fgcolor)%H:%M^fg(#909090), %Y-%m-^fg($fgcolor)%d'
+ sleep 1 || break
+ done > >(uniq_linebuffered) &
+ childpid=$!
+ herbstclient --idle
+ kill $childpid
+} 2> /dev/null | {
+ TAGS=( $(herbstclient tag_status $monitor) )
+ date=""
+ while true ; do
+ bordercolor="#26221C"
+ separator="^fg(#141414)^ro(1x$height)^fg()"
+ # draw tags
+ echo -n "$separator"
+ for i in "${TAGS[@]}" ; do
+ case ${i:0:1} in
+ '#')
+ echo -n "^bg(#0c191c)^fg(#eeeeec)"
+ ;;
+ '+')
+ echo -n "^bg(#2e3436)^fg(#555753)"
+ ;;
+ ':')
+ echo -n "^bg(#2e3436)^fg($fgcolor)"
+ ;;
+ '!')
+ echo -n "^bg(#a40000)^fg(#edd400)"
+ ;;
+ *)
+ echo -n "^bg()^fg()"
+ ;;
+ esac
+ echo -n " ${i:1} "
+ echo -n "$separator"
+ done
+ echo -n "^bg()^p(_CENTER)"
+ # small adjustments
+ nfmail=`ls ~/documents/mail/ninthfloor/INBOX/new/ | wc -l`
+ gmail=`ls ~/documents/mail/gmail/INBOX/new/ | wc -l`
+ archmail=`ls ~/documents/mail/arch/INBOX/new/ | wc -l`
+ aethonmail=`ls ~/documents/mail/aethon/INBOX/new/ | wc -l`
+ right="$separator 9f: $nfmail $separator gmail: $gmail $separator arch: $archmail $separator aethon: $aethonmail $separator^bg($hintcolor) $date $separator"
+ right_text_only=$(echo -n "$right"|sed 's.\^[^(]*([^)]*)..g')
+ # get width of right aligned text.. and add some space..
+ width=$(textwidth "$font" "$right_text_only ")
+ echo -n "^p(_RIGHT)^p(-$width)$right"
+ echo
+ # wait for next event
+ read line || break
+ cmd=( $line )
+ # find out event origin
+ case "${cmd[0]}" in
+ tag*)
+ #echo "reseting tags" >&2
+ TAGS=( $(herbstclient tag_status $monitor) )
+ ;;
+ date)
+ #echo "reseting date" >&2
+ date="${cmd[@]:1}"
+ ;;
+ quit_panel)
+ exit
+ ;;
+ #player)
+ # ;;
+ esac
+ done
+} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
+ -ta l -bg "$bgcolor" -fg "$fgcolor"
diff --git a/.config/newsbeuter/.gitignore b/.config/newsbeuter/.gitignore
new file mode 100644
index 0000000..8afd898
--- /dev/null
+++ b/.config/newsbeuter/.gitignore
@@ -0,0 +1,3 @@
+cache.*
+credentials
+history.*
diff --git a/.config/newsbeuter/config b/.config/newsbeuter/config
new file mode 100644
index 0000000..acb8715
--- /dev/null
+++ b/.config/newsbeuter/config
@@ -0,0 +1,27 @@
+auto-reload yes
+browser "$BROWSER"
+confirm-exit yes
+feedlist-format "%-35t %?d?- %-35d&? %> %u"
+max-items 500
+notify-program notify-send
+notify-beep yes
+reload-threads 3
+reload-time 60
+show-read-feeds no
+show-read-articles no
+articlelist-format "%-4i %f %t"
+feedlist-title-format "%N %V %> %u feeds with new articles"
+articlelist-title-format "%T"
+article-sort-order date-desc
+html-renderer "w3m -dump -T text/HTML -cols 80"
+text-width 80
+
+# colors
+color listfocus black green bold
+color info white red
+
+# highlight
+highlight article "^(Feed|Title|Author|Link|Date):.*" green default bold
+
+# keys
+bind-key i prev-dialog
diff --git a/.config/newsbeuter/urls b/.config/newsbeuter/urls
new file mode 100644
index 0000000..bf48bea
--- /dev/null
+++ b/.config/newsbeuter/urls
@@ -0,0 +1,124 @@
+# -*- mode: conf; mode: outline-minor -*-
+
+#-----[ Followed projects ]-------------------------------------------
+https://github.com/ryuslash.private.atom?token=7362ca0604736cd92b5441949e8c9cd4
+http://gitorious.org/~ryuslash/watchlist.atom
+
+#-----[ Blogs ]-------------------------------------------------------
+http://julien.danjou.info/blog/index.xml blogs
+http://kakaroto.homelinux.net/feed/ blogs
+http://awhan.wordpress.com/feed/ blogs
+http://beej.us/blog/feed/ blogs
+http://torvalds-family.blogspot.com/feeds/posts/default blogs
+http://emacs.wordpress.com/feed/ blogs
+http://feedproxy.google.com/SaferCode blogs
+http://blog.gitorious.org/feed/ blogs
+http://dieter.plaetinck.be/index.rss blogs
+
+#-----[ CVS Changes ]-------------------------------------------------
+http://git.naquadah.org/?p=naquadah-theme.git;a=rss cvs
+#http://git.naquadah.org/?p=rainbow.git;a=rss cvs
+http://code.google.com/feeds/p/autopair/svnchanges/basic cvs
+http://code.google.com/feeds/p/go/hgchanges/basic cvs
+http://git.cs.fau.de/?p=re06huxa/herbstluftwm;a=atom cvs
+https://github.com/diaspora/diaspora/commits/master.atom cvs
+https://github.com/knopwob/dunst/commits/master.atom cvs
+
+#-----[ Programming ]-------------------------------------------------
+http://www.reddit.com/r/cpp/.rss devel
+http://services.devx.com/outgoing/devxfeed.xml devel
+http://www.dzone.com/feed/frontpage/rss.xml devel
+http://www.reddit.com/r/ExpertProgramming/.rss devel
+http://www.reddit.com/r/programming/.rss devel
+http://steve-yegge.blogspot.com/feeds/posts/default devel
+http://www.reddit.com/r/systems/.rss devel
+http://www.reddit.com/r/coding/.rss devel
+http://www.reddit.com/r/git/.rss devel
+http://www.reddit.com/r/C_Programming/.rss devel
+http://feeds.feedburner.com/FalloutTutorials devel
+http://www.devarticles.com/rss.xml devel
+http://www.script-tutorials.com/feed/rss/
+http://news.ycombinator.com/rss
+
+#-----[ Linux and FLOSS ]---------------------------------------------
+http://www.reddit.com/r/commandline/.rss linux
+http://www.desktoplinux.com/backend/headlines.rss linux
+http://distrowatch.com/news/dw.xml linux
+http://www.howtoforge.com/node/feed linux
+http://www.ibm.com/developerworks/views/linux/rss/libraryview.jsp?type_by=Articles linux
+http://www.ibm.com/developerworks/views/linux/rss/libraryview.jsp?type_by=Tutorials linux
+http://feeds.feedburner.com/LinuxMagazine linux
+http://www.linuxprogrammingblog.com/rss.xml linux
+http://linuxtoday.com/backend/biglt.rss linux
+http://www.linux.com/rss/feeds.php linux
+http://www.linuxinsider.com/perl/syndication/rssfull.pl linux
+http://lwn.net/headlines/newrss linux
+http://blogs.zdnet.com/open-source/wp-rss2.php linux
+http://ostatic.com/blog/feed linux
+http://www.reddit.com/r/linux/.rss linux
+http://www.theopenforce.com/atom.xml linux
+http://www.ubuntugeek.com/feed/ linux
+http://www.warpedsystems.sk.ca/backend/index.xml linux
+http://www.reddit.com/r/archlinux/.rss linux
+http://www.reddit.com/r/linuxquestions/.rss linux
+http://www.echolinux.com/rss
+http://www.tuxradar.com/rss
+
+#-----[ Emacs ]-------------------------------------------------------
+http://wordpress.com/tag/emacs/feed/ emacs
+http://www.reddit.com/r/emacs/.rss emacs
+http://planet.emacsen.org/atom.xml emacs
+http://emacsblog.org/feed/ emacs
+http://www.emacswiki.org/emacs?action=rss emacs
+
+#-----[ N900 ]--------------------------------------------------------
+http://www.reddit.com/r/n900/.rss n900
+http://maemo.org/news/planet-maemo/rss.xml n900
+http://www.reddit.com/r/maemo/.rss n900
+
+#-----[ iPhone ]------------------------------------------------------
+http://icodeblog.com/feed/ iphone
+http://iphonesdkdev.blogspot.com/feeds/posts/default iphone
+http://iphonedevelopertips.com/feed iphone
+
+#-----[ Other Software ]----------------------------------------------
+http://www.archlinux.org/feeds/news/ software
+http://gitlog.wordpress.com/feed/ software
+http://rollingrelease.com/?feed=rss software
+http://sourceforge.net/export/rss2_keepsake.php?group_id=134378 software
+http://valajournal.blogspot.com/feeds/posts/default software
+
+#-----[ Games ]-------------------------------------------------------
+http://feeds.feedburner.com/qj/qjnet game
+
+#-----[ Funny ]-------------------------------------------------------
+http://feeds.feedburner.com/ClientsFromHell funny
+http://feeds.feedburner.com/VeryDemotivational funny
+
+#-----[ Comics ]------------------------------------------------------
+http://feeds.feedburner.com/AbstruseGoose comics
+http://www.cad-comic.com/rss/rss.xml comics
+http://feeds.dilbert.com/DilbertDailyStrip comics
+http://feedproxy.google.com/uclick/garfield comics
+http://feeds.feedburner.com/GeekAndPoke comics
+http://feeds.feedburner.com/NotInventedHere comics
+http://syndicated.livejournal.com/oglaf/data/rss comics
+http://feeds.feedburner.com/omaketheater comics
+http://www.penny-arcade.com/rss.xml comics
+http://www.pvponline.com/rss/?section=article comics
+http://www.questionablecontent.net/QCRSS.xml comics
+http://feeds.feedburner.com/ScenesFromAMultiverse comics
+http://www.vgcats.com/vgcats.rdf.xml comics
+http://feeds2.feedburner.com/virtualshackles comics
+http://xkcd.com/rss.xml comics
+http://feeds.feedburner.com/maximumble?format=xml comics
+http://bearmageddon.com/feed/ comics
+http://feeds.feedburner.com/ProgsLife comics
+http://www.rsspect.com/rss/asw.xml
+http://pbfcomics.com/feed/feed.xml
+http://feeds.feedburner.com/thisisindexed/SGWm
+
+#-----[ Misc ]--------------------------------------------------------
+http://wallbase.cc/rss misc
+http://www.mailinator.com/rss.jsp?email=ryuslash misc
+http://rss.slashdot.org/Slashdot/slashdot