From 5aa3ec23c5037ac8ab0bd080123760c1b3df81b5 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 7 Feb 2012 20:07:39 +0100 Subject: [PATCH 01/22] Cleanup --- .xbindkeysrc.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm index 3bea5fe..38d33a1 100644 --- a/.xbindkeysrc.scm +++ b/.xbindkeysrc.scm @@ -8,6 +8,8 @@ (define dmenu-cmd "dmenu") (define dmenu-args (string-append "-b -nb '#000000' -nf '#15abc3' -sb '#e0c625' -sf '#000000' -fn '" font "'")) +(define dzen-cmd "dzen2") +(define dzen-args (string-append " -fn '" font "' -x 5 -y 5 -bg '#000000' -fg '#15abc3'")) (define dzen-pipe '()) ;;; Macros @@ -26,6 +28,7 @@ (grab-all-keys)) (define (get-tags) + "Get a list of tags" (let* ((file (open-input-pipe "TAGS=( $(herbstclient tag_status 0 | tr \":\\!.+#\" \" \") ); echo ${TAGS[@]}")) (tags (string-split (read-line file) #\ ))) @@ -84,8 +87,8 @@ (define (gui-print text) (let ((width (+ (text-width font text) 10))) (set! dzen-pipe (open-output-pipe - (string-append "dzen2 -w " (number->string width) - " -fn '" font "' -x 5 -y 5 -bg '#000000' -fg '#15abc3'")))) + (string-append dzen-cmd " -w " (number->string width) + " " dzen-args)))) (display text dzen-pipe) (newline dzen-pipe)) From 01a0c630672d869a7df0f4aae835433c7e68e939 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 7 Feb 2012 22:10:35 +0100 Subject: [PATCH 02/22] XBINDKEYS: Macro-ify --- .xbindkeysrc.scm | 114 +++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 64 deletions(-) diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm index 38d33a1..9d87a2e 100644 --- a/.xbindkeysrc.scm +++ b/.xbindkeysrc.scm @@ -18,6 +18,14 @@ (run-command ,command) (reset-main-binding))) +(define-macro (create-map name binding . more) + `(define (,name) + (ungrab-all-keys) + (remove-all-keys) + (begin ,binding . ,more) + (xbindkey-function `(,modkey g) reset-main-binding) + (grab-all-keys))) + ;;; Functions (define (reset-main-binding) "reset first binding" @@ -85,6 +93,7 @@ -1))) (define (gui-print text) + (close-gui-window) (let ((width (+ (text-width font text) 10))) (set! dzen-pipe (open-output-pipe (string-append dzen-cmd " -w " (number->string width) @@ -102,9 +111,9 @@ (define (main-binding) "First binding" (xbindkey `(,modkey shift "1") (string-append "dmenu_run -p 'Run:' " dmenu-args)) - (xbindkey-function `(,modkey x) X-functions) - (xbindkey-function `(,modkey w) W-functions) - (xbindkey-function `(,modkey s) S-functions) + (xbindkey-function `(,modkey x) X-function-map) + (xbindkey-function `(,modkey w) W-function-map) + (xbindkey-function `(,modkey s) S-function-map) (xbindkey `(,modkey Return) "urxvt") (xbindkey '(control alt l) "i3lock -c 000000") (xbindkey '(XF86HomePage) "conkeror") @@ -119,70 +128,47 @@ (xbindkey '(XF86Tools) "ncmpcpp") (xbindkey-function `(,modkey g) reset-main-binding)) -(define (X-functions) - "Second binding" - (gui-print "S-x") - (ungrab-all-keys) - (remove-all-keys) - (xbindkey-function '(b) switch-tags) - (xbindkey-function `(,modkey c) (cmd "herbstclient quit")) - (xbindkey-function `(,modkey r) (cmd "herbstclient reload")) - (xbindkey-function '(k) kill-tag) - (xbindkey-function '("0") (cmd "herbstclient remove")) - (xbindkey-function '("3") (cmd "herbstclient split horizontal 0.5")) - (xbindkey-function '("2") (cmd "herbstclient split vertical 0.5")) - (xbindkey-function '(space) (cmd "herbstclient cycle_layout 1")) - (xbindkey-function '(f) (cmd "herbstclient floating toggle")) - (xbindkey-function '(shift f) (cmd "herbstclient fullscreen toggle")) - (xbindkey-function '(p) (cmd "herbstclient pseudotile toggle")) - (xbindkey-function '(r) resize-map) - (xbindkey-function '(m) move-to-tag) - (xbindkey-function `(,modkey g) reset-main-binding) - (grab-all-keys)) +(create-map X-function-map + (gui-print "S-x") + (xbindkey-function '(b) switch-tags) + (xbindkey-function `(,modkey c) (cmd "herbstclient quit")) + (xbindkey-function `(,modkey r) (cmd "herbstclient reload")) + (xbindkey-function '(k) kill-tag) + (xbindkey-function '("0") (cmd "herbstclient remove")) + (xbindkey-function '("3") (cmd "herbstclient split horizontal 0.5")) + (xbindkey-function '("2") (cmd "herbstclient split vertical 0.5")) + (xbindkey-function '(space) (cmd "herbstclient cycle_layout 1")) + (xbindkey-function '(f) (cmd "herbstclient floating toggle")) + (xbindkey-function '(shift f) (cmd "herbstclient fullscreen toggle")) + (xbindkey-function '(p) (cmd "herbstclient pseudotile toggle")) + (xbindkey-function '(r) resize-map) + (xbindkey-function '(m) move-to-tag)) -(define (W-functions) - (gui-print "S-w") - (ungrab-all-keys) - (remove-all-keys) - (xbindkey-function '(k) (cmd "herbstclient close")) - (xbindkey-function '(w) (cmd "herbstclient cycle")) - (xbindkey-function '(o) (cmd "herbstclient cycle_all +1")) - (xbindkey-function '(b) (cmd "herbstclient focus left")) - (xbindkey-function '(n) (cmd "herbstclient focus down")) - (xbindkey-function '(p) (cmd "herbstclient focus up")) - (xbindkey-function '(f) (cmd "herbstclient focus right")) - (xbindkey-function '(shift b) (cmd "herbstclient shift left")) - (xbindkey-function '(shift n) (cmd "herbstclient shift down")) - (xbindkey-function '(shift p) (cmd "herbstclient shift up")) - (xbindkey-function '(shift f) (cmd "herbstclient shift right")) - (xbindkey-function `(,modkey g) reset-main-binding) - (grab-all-keys)) +(create-map W-function-map + (gui-print "S-w") + (xbindkey-function '(k) (cmd "herbstclient close")) + (xbindkey-function '(w) (cmd "herbstclient cycle")) + (xbindkey-function '(o) (cmd "herbstclient cycle_all +1")) + (xbindkey-function '(b) (cmd "herbstclient focus left")) + (xbindkey-function '(n) (cmd "herbstclient focus down")) + (xbindkey-function '(p) (cmd "herbstclient focus up")) + (xbindkey-function '(f) (cmd "herbstclient focus right")) + (xbindkey-function '(shift b) (cmd "herbstclient shift left")) + (xbindkey-function '(shift n) (cmd "herbstclient shift down")) + (xbindkey-function '(shift p) (cmd "herbstclient shift up")) + (xbindkey-function '(shift f) (cmd "herbstclient shift right"))) -(define (S-functions) - (gui-print "S-s") - (ungrab-all-keys) - (remove-all-keys) - (xbindkey-function '(o) (cmd "herbstclient cycle_monitor")) - (xbindkey-function `(,modkey g) reset-main-binding) - (grab-all-keys)) +(create-map S-function-map + (gui-print "S-s") + (xbindkey-function '(o) (cmd "herbstclient cycle_monitor"))) -(define (P-functions) - (ungrab-all-keys) - (remove-all-keys) - - (grab-all-keys)) - -(define (resize-map) - (gui-print "Resizing") - (ungrab-all-keys) - (remove-all-keys) - (xbindkey `(,modkey b) "herbstclient resize left +0.05") - (xbindkey `(,modkey n) "herbstclient rezise down +0.05") - (xbindkey `(,modkey p) "herbstclient resize up +0.05") - (xbindkey `(,modkey f) "herbstclient resize right +0.05") - (xbindkey-function '(Return) reset-main-binding) - (xbindkey-function `(,modkey g) reset-main-binding) - (grab-all-keys)) +(create-map resize-map + (gui-print "Resizing") + (xbindkey `(,modkey b) "herbstclient resize left +0.05") + (xbindkey `(,modkey n) "herbstclient resize down +0.05") + (xbindkey `(,modkey p) "herbstclient resize up +0.05") + (xbindkey `(,modkey f) "herbstclient resize right +0.05") + (xbindkey-function '(Return) reset-main-binding)) ;;; Main (main-binding) From c2942fa8cf20b7c7fbefdb18b2c4fc9e1934fde8 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 8 Feb 2012 00:55:02 +0100 Subject: [PATCH 03/22] XBINDKEYS: Place current tag last and last picked tag first. --- .xbindkeysrc.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm index 9d87a2e..5e7efca 100644 --- a/.xbindkeysrc.scm +++ b/.xbindkeysrc.scm @@ -12,6 +12,9 @@ (define dzen-args (string-append " -fn '" font "' -x 5 -y 5 -bg '#000000' -fg '#15abc3'")) (define dzen-pipe '()) +(define previous-tag '()) +(define current-tag "default") + ;;; Macros (define-macro (cmd command) `(lambda () @@ -41,7 +44,11 @@ "TAGS=( $(herbstclient tag_status 0 | tr \":\\!.+#\" \" \") ); echo ${TAGS[@]}")) (tags (string-split (read-line file) #\ ))) (close-port file) - tags)) + (set! tags (delete current-tag tags)) + (set! tags (delete previous-tag tags)) + (if (not (null? previous-tag)) + (append `(,previous-tag) (append tags `(,current-tag))) + (append tags `(,current-tag))))) (define (choose-tag prompt tags) "Ask to choose a tag" @@ -60,6 +67,8 @@ (begin (if (not (member tag tags)) (system (string-append "herbstclient add " tag))) + (set! previous-tag current-tag) + (set! current-tag tag) (run-command (string-append "herbstclient use " tag)))) (reset-main-binding))) From 7728389084634358e817ea6b2e12c4c4067529b6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 9 Feb 2012 09:09:50 +0100 Subject: [PATCH 04/22] .xbindkeysrc.scm --- .xbindkeysrc.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm index 5e7efca..651479d 100644 --- a/.xbindkeysrc.scm +++ b/.xbindkeysrc.scm @@ -4,12 +4,19 @@ ;;; Variables (define modkey 'mod4) -(define font "-misc-tamsyn-medium-r-normal-*-17-*-*-*-*-*-iso8859-*") +(define dmenu-font + "-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*") (define dmenu-cmd "dmenu") (define dmenu-args - (string-append "-b -nb '#000000' -nf '#15abc3' -sb '#e0c625' -sf '#000000' -fn '" font "'")) + (string-append + "-b -nb '#000000' -nf '#15abc3' -sb '#e0c625' -sf '#000000' -fn '" + dmenu-font "'")) +(define dzen-font + "-misc-tamsyn-medium-r-normal-*-17-*-*-*-*-*-iso8859-*") (define dzen-cmd "dzen2") -(define dzen-args (string-append " -fn '" font "' -x 5 -y 5 -bg '#000000' -fg '#15abc3'")) +(define dzen-args + (string-append " -fn '" dzen-font + "' -x 5 -y 5 -bg '#000000' -fg '#15abc3'")) (define dzen-pipe '()) (define previous-tag '()) From e4f69ad9fdb9027070fe4fa3788b6c6dff073f04 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 9 Feb 2012 09:11:43 +0100 Subject: [PATCH 05/22] .xbindkeysrc.scm --- .xbindkeysrc.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xbindkeysrc.scm b/.xbindkeysrc.scm index 651479d..9e17422 100644 --- a/.xbindkeysrc.scm +++ b/.xbindkeysrc.scm @@ -110,7 +110,7 @@ (define (gui-print text) (close-gui-window) - (let ((width (+ (text-width font text) 10))) + (let ((width (+ (text-width dzen-font text) 10))) (set! dzen-pipe (open-output-pipe (string-append dzen-cmd " -w " (number->string width) " " dzen-args)))) From 523043be4994fb9cf463d4c7e8ca4b85c87ed4a3 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 9 Feb 2012 09:14:01 +0100 Subject: [PATCH 06/22] .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 52bcaa5..56d06fc 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -94,7 +94,7 @@ function print_services() { servicetxt="$servicetxt$separator$(status $j)" done servicetxt_only=$(echo -n "$servicetxt" | sed 's.\^[^(]*([^)]*)..g') - let servicetxt_width=$(textwidth "$font" "$servicetxt_only")/2 + let servicetxt_width=($(textwidth "$font" "$servicetxt_only")+7)/2 echo -n "^p(_CENTER)^p(-$servicetxt_width)$servicetxt" } @@ -150,3 +150,7 @@ herbstclient pad $monitor2 -5 -5 -5 -5 done } 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \ -ta l -bg "$bgcolor" + +# Local Variables: +# eval: (git-auto-commit-mode 1) +# End: From ba545eb849accd0038e2b68a1d76774fa76341ab Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 9 Feb 2012 09:14:56 +0100 Subject: [PATCH 07/22] .conkerorrc/modeline.js --- .conkerorrc/modeline.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.conkerorrc/modeline.js b/.conkerorrc/modeline.js index cac9b85..25c008e 100644 --- a/.conkerorrc/modeline.js +++ b/.conkerorrc/modeline.js @@ -1,4 +1,6 @@ +// -*- eval: (git-auto-commit-mode 1) -*- require("favicon"); add_hook("mode_line_hook", mode_line_adder(buffer_icon_widget, true)); add_hook("mode_line_hook", mode_line_adder(buffer_count_widget, true)); +add_hook("mode_line_hook", mode_line_adder(downloads_status_widget)); From 50b69d8d9c909516126a6167cb73ee8d1e770acc Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 9 Feb 2012 09:15:33 +0100 Subject: [PATCH 08/22] .conkerorrc/settings.js --- .conkerorrc/settings.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.conkerorrc/settings.js b/.conkerorrc/settings.js index 4dc32c4..1a0684f 100644 --- a/.conkerorrc/settings.js +++ b/.conkerorrc/settings.js @@ -1,3 +1,4 @@ +// -*- eval: (git-auto-commit-mode 1) -*- cwd = make_file("/home/slash/downloads/"); url_remoting_fn = load_url_in_new_buffer; read_buffer_show_icons = true; @@ -12,3 +13,5 @@ add_hook("before_quit_hook", $options = ["y", "n"])); yield co_return(result); }); + +remove_hook("download_added_hook", open_download_buffer_automatically); From b6ad942f5cc7ee990ed4b94be22f33cb2bc2d179 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 17:08:30 +0100 Subject: [PATCH 09/22] .conkerorrc/settings.js --- .conkerorrc/settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.conkerorrc/settings.js b/.conkerorrc/settings.js index 1a0684f..b9f4ad6 100644 --- a/.conkerorrc/settings.js +++ b/.conkerorrc/settings.js @@ -1,7 +1,7 @@ // -*- eval: (git-auto-commit-mode 1) -*- -cwd = make_file("/home/slash/downloads/"); -url_remoting_fn = load_url_in_new_buffer; -read_buffer_show_icons = true; +cwd = make_file("/home/slash/downloads/"); +url_remoting_fn = load_url_in_new_buffer; +read_buffer_show_icons = true; hints_display_url_panel = true; add_hook("before_quit_hook", From a01ec3d5b521c2e178a9161787387a3f0c18b490 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 17:08:59 +0100 Subject: [PATCH 10/22] .conkerorrc/settings.js --- .conkerorrc/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.conkerorrc/settings.js b/.conkerorrc/settings.js index b9f4ad6..6f8cd8a 100644 --- a/.conkerorrc/settings.js +++ b/.conkerorrc/settings.js @@ -1,6 +1,6 @@ // -*- eval: (git-auto-commit-mode 1) -*- cwd = make_file("/home/slash/downloads/"); -url_remoting_fn = load_url_in_new_buffer; +//url_remoting_fn = load_url_in_new_buffer; read_buffer_show_icons = true; hints_display_url_panel = true; From a556cef94b868f638ff7cb5e8744a7cbf9e49c28 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 17:38:04 +0100 Subject: [PATCH 11/22] .conkerorrc/settings.js --- .conkerorrc/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.conkerorrc/settings.js b/.conkerorrc/settings.js index 6f8cd8a..b9f4ad6 100644 --- a/.conkerorrc/settings.js +++ b/.conkerorrc/settings.js @@ -1,6 +1,6 @@ // -*- eval: (git-auto-commit-mode 1) -*- cwd = make_file("/home/slash/downloads/"); -//url_remoting_fn = load_url_in_new_buffer; +url_remoting_fn = load_url_in_new_buffer; read_buffer_show_icons = true; hints_display_url_panel = true; From 63f1b98555c8d488274c1a6808032bf1859a60ad Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 17:46:37 +0100 Subject: [PATCH 12/22] .zshenv --- .zshenv | 1 - 1 file changed, 1 deletion(-) diff --git a/.zshenv b/.zshenv index 5b25215..7463693 100644 --- a/.zshenv +++ b/.zshenv @@ -9,7 +9,6 @@ export LESS_TERMCAP_so=$'\e[1;47;30m' export LESS_TERMCAP_ue=$'\e[0m' export LESS_TERMCAP_us=$'\e[0;36m' -export BROWSER=firefox export PAGER=$LESSCMD export EDITOR="emacsclient -c" From 0f9ea88a3f2d425ec8c3507ce91535f5621cdca9 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 17:46:46 +0100 Subject: [PATCH 13/22] .zshrc --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index d6b03e3..d7b12bc 100644 --- a/.zshrc +++ b/.zshrc @@ -4,6 +4,7 @@ PATH="${HOME}/bin:${PATH}:/usr/local/bin" INFOPATH="${HOME}/documents/info:${INFOPATH}" export INFOPATH +export BROWSER=conkeror HISTFILE=~/.zsh/histfile HISTSIZE=1000 From 36dbf46f0297f5b79376e47a34cabad4b350deeb Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 17:51:52 +0100 Subject: [PATCH 14/22] .zshrc --- .zshrc | 2 -- 1 file changed, 2 deletions(-) diff --git a/.zshrc b/.zshrc index d7b12bc..a50a5ab 100644 --- a/.zshrc +++ b/.zshrc @@ -99,5 +99,3 @@ if [ -z $EMACS ]; then ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue' ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue' fi - -welcome From 077eec973273bf105c545495cba6a8b5e6b2d182 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 10 Feb 2012 21:26:51 +0100 Subject: [PATCH 15/22] .config/newsbeuter/urls --- .config/newsbeuter/urls | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/newsbeuter/urls b/.config/newsbeuter/urls index 3356087..19da173 100644 --- a/.config/newsbeuter/urls +++ b/.config/newsbeuter/urls @@ -75,6 +75,7 @@ http://planet.emacsen.org/atom.xml emacs http://emacsblog.org/feed/ emacs http://www.emacswiki.org/emacs?action=rss emacs http://feeds.feedburner.com/XahsEmacsBlog +http://www.masteringemacs.org/feed/ #-----[ N900 ]-------------------------------------------------------- http://www.reddit.com/r/n900/.rss n900 From 7ddb26b590b7a752fa7c1778231bba6ff27e1320 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:40:10 +0100 Subject: [PATCH 16/22] .zsh/functions/prompt --- .zsh/functions/prompt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index a474679..32b7cd4 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -17,4 +17,5 @@ fi printf '%s %s%s%s:%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ - "%{${fg[green]}%}" "%~" "%{${fg[default]}%}" + "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" \ + "%{${fg[default]}%}" From 297d692457ac46bb350fd73ecd576f01043fcd68 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:40:14 +0100 Subject: [PATCH 17/22] .zsh/functions/prompt --- .zsh/functions/prompt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 32b7cd4..9b17c46 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -17,5 +17,4 @@ fi printf '%s %s%s%s:%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ - "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" \ - "%{${fg[default]}%}" + "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" From 14b420c99e9d864a70d3df9b4c14c5df81596d1d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:42:36 +0100 Subject: [PATCH 18/22] .zsh/functions/prompt --- .zsh/functions/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 9b17c46..6af344e 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -15,6 +15,6 @@ if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then "%{${fg[cyan]}%}" $aur_cnt "%{${fg[default]}%}" fi -printf '%s %s%s%s:%s%s%s ' \ +printf '%s %s%s:%s%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" From da4f346c67d66d9fae593c6bce1eec57712b9a0c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:43:19 +0100 Subject: [PATCH 19/22] .zsh/functions/prompt --- .zsh/functions/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 6af344e..9b96699 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -15,6 +15,6 @@ if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then "%{${fg[cyan]}%}" $aur_cnt "%{${fg[default]}%}" fi -printf '%s %s%s:%s%s%s%s ' \ +printf '%s%s%s:%s%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" From 107b6ff0aff6d8843183a5ac5d439de9bdf547d2 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:43:41 +0100 Subject: [PATCH 20/22] .zsh/functions/prompt --- .zsh/functions/prompt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 9b96699..6fe927b 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -4,11 +4,6 @@ local pac_cnt=$(get_cnt updates) local aur_cnt=$(get_cnt aur) local hostname=$(hostname | cut -d . -f 1) -printf "%s " \ - "%B%(?.%{${fg[green]}%}^_^.%{${fg[red]}%}T_T)%b%{${fg[default]}%}" -line 4 15 -printf " %s " "$(date +%Y%m%d%H.%M)" - if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then printf "%s%d%s/%s%d%s:" \ "%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \ From d937a6b593791f8106eee5ee874f9fa0703b5a7f Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 13 Feb 2012 23:15:41 +0100 Subject: [PATCH 21/22] .zshrc --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index a50a5ab..24168ba 100644 --- a/.zshrc +++ b/.zshrc @@ -92,6 +92,8 @@ bindkey "\e0F" end-of-line bindkey "\e[H" beginning-of-line bindkey "\e[F" end-of-line +bindkey "^W" backward-delete-char + # Show syntax highlighting when we're not running in emacs if [ -z $EMACS ]; then source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh From 3d8f0dffd0fbb4d928e20d8322f4010c8f0804da Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 14 Feb 2012 10:20:51 +0100 Subject: [PATCH 22/22] .config/newsbeuter/config --- .config/newsbeuter/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/newsbeuter/config b/.config/newsbeuter/config index acb8715..a5ab4c7 100644 --- a/.config/newsbeuter/config +++ b/.config/newsbeuter/config @@ -1,5 +1,6 @@ +# -*- eval: (git-auto-commit-mode 1) -*- auto-reload yes -browser "$BROWSER" +browser conkeror confirm-exit yes feedlist-format "%-35t %?d?- %-35d&? %> %u" max-items 500