From e7cff59d369617ad5cabbae96e53817d0159f57e Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:12:44 +0100 Subject: [PATCH 01/10] Added diary --- diary | 1 + 1 file changed, 1 insertion(+) create mode 100644 diary diff --git a/diary b/diary new file mode 100644 index 0000000..d525488 --- /dev/null +++ b/diary @@ -0,0 +1 @@ +&%%(org-diary :scheduled :timestamp :deadline) From 59a17c6afeb4efb24bb532d875c047b30b8ed42d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:14:02 +0100 Subject: [PATCH 02/10] Added xsession --- .xsession | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .xsession diff --git a/.xsession b/.xsession new file mode 100755 index 0000000..8f554c5 --- /dev/null +++ b/.xsession @@ -0,0 +1,3 @@ +#!/bin/bash + +exec /bin/bash --login -i "$HOME/.xinitrc" From 45f09976d46c4156b5cfef1f0b9118d1fe522535 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:20:31 +0100 Subject: [PATCH 03/10] Added w3m --- .w3m/.gitignore | 1 + .w3m/config | 141 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 .w3m/.gitignore create mode 100644 .w3m/config diff --git a/.w3m/.gitignore b/.w3m/.gitignore new file mode 100644 index 0000000..c375d5b --- /dev/null +++ b/.w3m/.gitignore @@ -0,0 +1 @@ +history diff --git a/.w3m/config b/.w3m/config new file mode 100644 index 0000000..9c4a8a2 --- /dev/null +++ b/.w3m/config @@ -0,0 +1,141 @@ +simple_preserve_space 0 +gb18030_as_ucs 0 +strict_iso2022 1 +use_jisx0213 0 +use_jisx0212 0 +use_jisx0201k 0 +use_jisc6226 0 +use_jisx0201 0 +use_gb12345_map 0 +fix_width_conv 1 +search_conv 1 +pre_conv 0 +ucs_conv 1 +use_language_tag 1 +east_asian_width 0 +use_combining 1 +use_wide 1 +ext_halfdump 0 +follow_locale 1 +system_charset UTF-8 +auto_detect 2 +document_charset UTF-8 +display_charset UTF-8 +cookie_avoid_wrong_number_of_dots +cookie_accept_domains +cookie_reject_domains +accept_bad_cookie 0 +accept_cookie 0 +show_cookie 1 +use_cookie 0 +ssl_ca_file +ssl_ca_path +ssl_key_file +ssl_cert_file +ssl_verify_server 0 +ssl_forbid_method +no_cache 0 +noproxy_netaddr 1 +no_proxy +ftp_proxy +https_proxy +http_proxy +use_proxy 1 +max_news 50 +nntpmode +nntpserver +dns_order 0 +meta_refresh 0 +follow_redirection 10 +default_url 0 +retry_http 1 +argv_is_url 0 +accept_media text/html, text/*;q=0.5, image/* +accept_encoding gzip, compress, bzip, bzip2, deflate +accept_language en;q=1.0 +no_referer 0 +user_agent +pre_form_file ~/.w3m/pre_form +ftppass_hostnamegen 1 +ftppasswd +disable_secret_security_check 0 +passwd_file ~/.w3m/passwd +use_lessopen 0 +bgextviewer 1 +extbrowser3 +extbrowser2 +extbrowser /usr/bin/mozilla +mailer /usr/bin/mail +mailto_options 1 +editor /usr/bin/vi +urimethodmap ~/.w3m/urimethodmap, /usr/etc/w3m/urimethodmap +mailcap ~/.w3m/mailcap, /usr/etc/w3m/mailcap +mime_types ~/.mime.types, /usr/etc/mime.types +index_file +cgi_bin +personal_document_root +document_root +keymap_file keymap +preserve_timestamp 1 +auto_uncompress 0 +decode_cte 0 +clear_buffer 1 +ignorecase_search 1 +wrap_search 0 +mark_all_pages 0 +vi_prec_num 0 +emacs_like_lineedit 0 +mark 0 +close_tab_back 0 +confirm_qq 1 +save_hist 1 +history 100 +use_history 1 +pagerline 10000 +visited_color magenta +visited_anchor 0 +active_color cyan +active_style 0 +bg_color terminal +mark_color cyan +form_color red +image_color green +anchor_color blue +basic_color terminal +color 1 +nextpage_topline 0 +label_topline 0 +show_srch_str 1 +show_lnum 0 +fold_line 0 +image_map_list 1 +imgdisplay w3mimgdisplay +image_scale 100 +ext_image_viewer 1 +max_load_image 4 +auto_image 1 +pseudo_inlines 1 +display_image 1 +view_unseenobject 0 +ignore_null_img_alt 1 +display_ins_del 1 +fold_textarea 0 +graphic_char 0 +alt_entity 1 +multicol 0 +dictcommand file:///$LIB/w3mdict.cgi +use_dictcommand 0 +dirlist_cmd file:///$LIB/dirlist.cgi +ext_dirlist 1 +display_lineinfo 0 +decode_url 1 +display_link_number 1 +display_link 1 +open_tab_dl_list 0 +open_tab_blank 0 +target_self 0 +frame 0 +pixel_per_line 17 +pixel_per_char 8 +indent_incr 4 +tabstop 8 From 66907c42d91836437ed489c63bc7db82e8fd434b Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:23:07 +0100 Subject: [PATCH 04/10] Added urlview --- .urlview | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .urlview diff --git a/.urlview b/.urlview new file mode 100644 index 0000000..35d5f34 --- /dev/null +++ b/.urlview @@ -0,0 +1,2 @@ +REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):] +COMMAND conkeror %s From 43ff5641f176bdab18576c94e3be51490507b2b8 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:26:38 +0100 Subject: [PATCH 05/10] Add tmux --- .tmux.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..ef38f70 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,3 @@ +set -g default-terminal "screen-256color" +set-option -g status-bg 2 +set-option -g status-fg 7 From c9141e2bca6fe15bf269dcf4625d9db0c316fde1 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:27:02 +0100 Subject: [PATCH 06/10] Added screen --- .screenrc | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .screenrc diff --git a/.screenrc b/.screenrc new file mode 100644 index 0000000..16e3032 --- /dev/null +++ b/.screenrc @@ -0,0 +1,4 @@ +startup_message off +vbell off + +hardstatus alwayslastline "%{= d}%{r}screen%{g}%H %{r}>> %{g}${USER}@%H: %L>%1`%? %?%{.g}%u%? %-18=%?%{m} %{g}%-=%{g}%-w%{r}%n %t%{g}%+w %{g}|%C" From b0c4ca4a8a6075ba05414053a85f51857c293d9c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:29:42 +0100 Subject: [PATCH 07/10] Added mercurial --- .hgrc | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .hgrc diff --git a/.hgrc b/.hgrc new file mode 100644 index 0000000..4fa66ab --- /dev/null +++ b/.hgrc @@ -0,0 +1,4 @@ +[ui] +username = Tom Willemsen +[extensions] +hgext.bookmarks = From ede6953a47d17027f156055a3f65eef4e42ee346 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:29:58 +0100 Subject: [PATCH 08/10] Added guile --- .guile | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .guile diff --git a/.guile b/.guile new file mode 100644 index 0000000..bcbc981 --- /dev/null +++ b/.guile @@ -0,0 +1,2 @@ +(use-modules (ice-9 readline)) +(activate-readline) From 412b27682dc1552a97bfd32b06cb8994af06666d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:33:04 +0100 Subject: [PATCH 09/10] Ignore some more stuff --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index f3175e8..f52128a 100644 --- a/.gitignore +++ b/.gitignore @@ -99,3 +99,8 @@ tmp/ usr/ var/ xhtml-loader.rnc +.unison/ +.pencil/ +.emacs.d/ +.cuyo +.lgames From 3c43c86150e7e58be6f024c8f5d320c3b810fc04 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:34:38 +0100 Subject: [PATCH 10/10] Added some WM functions --- bin/kill_tag | 10 ++++++++++ bin/switch_tags | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 bin/kill_tag create mode 100755 bin/switch_tags diff --git a/bin/kill_tag b/bin/kill_tag new file mode 100755 index 0000000..79bbf5a --- /dev/null +++ b/bin/kill_tag @@ -0,0 +1,10 @@ +#!/bin/zsh + +TAGS=( $(herbstclient tag_status 0 | tr ":\!.+#" " ") ) +FOO=$(for i in "${TAGS[@]}"; do echo $i; done | dmenu) + +if [[ "${TAGS[@]}" == *"$FOO"* ]]; then + herbstclient merge_tag $FOO +else + notify-send "Unknown tag: $FOO" +fi diff --git a/bin/switch_tags b/bin/switch_tags new file mode 100755 index 0000000..55eda0a --- /dev/null +++ b/bin/switch_tags @@ -0,0 +1,10 @@ +#!/bin/zsh + +TAGS=( $(herbstclient tag_status 0 | tr ":\!.+#" " ") ) +FOO=$(for i in "${TAGS[@]}"; do echo $i; done | dmenu) + +if [[ "${TAGS[@]}" != *"$FOO"* ]]; then + herbstclient add $FOO +fi + +herbstclient use $FOO