From cc1886725631fcebe7ed76a8897c1baa3927b3fe Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 18 Jun 2015 14:17:09 -0400 Subject: Save more history. --- zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 3d57bcf..41ae7aa 100755 --- a/zshrc +++ b/zshrc @@ -8,7 +8,7 @@ if ! zgen saved; then echo "Creating a zgen save" zgen oh-my-zsh # plugins - zgen oh-my-zsh plugins/git + # zgen oh-my-zsh plugins/git zgen oh-my-zsh plugins/sudo zgen oh-my-zsh plugins/history zgen oh-my-zsh plugins/autojump @@ -24,7 +24,10 @@ if ! zgen saved; then zgen save fi +setopt extendedglob LANG=en_US.UTF-8 +HISTSIZE=1000000 +SAVEHIST=1000000 if (( $+commands[ack-grep] )) ; then alias ack=ack-grep -- cgit v1.2.3 From 3157e3a206fc5af43943d020208da7589498f2f5 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 18 Jun 2015 14:31:55 -0400 Subject: Use antialiased font in i3 --- i3/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i3/config b/i3/config index 1d9f7e7..2bc040e 100644 --- a/i3/config +++ b/i3/config @@ -10,7 +10,8 @@ # # font for window titles. ISO 10646 = Unicode -font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +font xft:Droid Sans Mono 10 # use Mouse+Mod4 to drag floating windows to their wanted position floating_modifier Mod4 @@ -149,6 +150,7 @@ bindsym Mod4+r mode "resize" # finds out, if available) bar { status_command i3status + font xft:Droid Sans Mono 10 } exec xrdb -merge $HOME/.Xresources -- cgit v1.2.3 From 86c566c5271a45f024d0684708cd3d6020e004d4 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Tue, 23 Jun 2015 15:53:00 -0400 Subject: Add colors to i3 config. --- i3/config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index 2bc040e..20506c6 100644 --- a/i3/config +++ b/i3/config @@ -11,7 +11,7 @@ # font for window titles. ISO 10646 = Unicode # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -font xft:Droid Sans Mono 10 +font xft:Droid Sans Bold 9 # use Mouse+Mod4 to drag floating windows to their wanted position floating_modifier Mod4 @@ -106,6 +106,13 @@ bindsym Mod4+Shift+r restart # exit i3 (logs you out of your X session) bindsym Mod4+Shift+e exit +# # class border backgr. text indicator +client.focused #000000 #76c7b7 #000000 #2e9ef4 +client.focused_inactive #333333 #999999 #000000 #484e50 +client.unfocused #333333 #cccccc #333333 #292d2e +client.urgent #2f343a #900000 #ffffff #900000 +# client.placeholder #000000 #0c0c0c #ffffff #000000 + # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode @@ -144,7 +151,8 @@ mode "resize" { bindsym Escape mode "default" } -bindsym Mod4+r mode "resize" +# NOTE(orbekk): Disable resize mode: I never use it and sometimes I accidentally trigger it. +# bindsym Mod4+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -- cgit v1.2.3 From ab9a5d8939e7bf26af6da1b72b5ffc9dfd354ba0 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Tue, 23 Jun 2015 15:53:21 -0400 Subject: Load zshrc.local before plugin initialization. This is to allow zshrc.local to add things to fpath before compinit. --- zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index 41ae7aa..a5570a2 100755 --- a/zshrc +++ b/zshrc @@ -2,6 +2,10 @@ # ulimit -v 4194304 # 4G # ulimit -u 1024 +if [[ -f $HOME/.zshrc.local ]]; then + source $HOME/.zshrc.local +fi + source $HOME/dotfiles/zgen/zgen.zsh # check if there's no init script if ! zgen saved; then @@ -47,10 +51,6 @@ fi alias ff="fileutil --gfs_user=gfp-reporting" alias diff=colordiff -if [[ -f $HOME/.zshrc.local ]]; then - source $HOME/.zshrc.local -fi - export EDITOR=vim export PAGER=less export TZ='America/New_York' -- cgit v1.2.3 From 996d2be17792d3108954dbff132934adcdeb0e81 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 24 Jun 2015 14:11:08 -0400 Subject: Add taskrc to dotfiles. --- taskrc | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 taskrc diff --git a/taskrc b/taskrc new file mode 100644 index 0000000..4db517f --- /dev/null +++ b/taskrc @@ -0,0 +1,80 @@ +# [Created by task 2.2.0 6/9/2015 11:33:17] +# Taskwarrior program configuration file. +# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-faq', +# 'man task-tutorial', 'man task-color', 'man task-sync' or 'man taskrc' + +# Here is an example of entries that use the default, override and blank values +# variable=foo -- By specifying a value, this overrides the default +# variable= -- By specifying no value, this means no default +# #variable=foo -- By commenting out the line, or deleting it, this uses the default + +# Use the command 'task show' to see all defaults and overrides + +# Files +data.location=~/.task + +report.gtd.columns=tags,id,description,project,due +report.gtd.description=List GTD style task +report.gtd.filter=status:pending limit:page +report.gtd.labels=Context,ID,Task,Project,Due +report.gtd.sort=tags+,due+,project+,description+ + +# Color theme (uncomment one to use) +#include /usr/share/task/light-16.theme +# include /usr/share/task/light-256.theme +#include /usr/share/task/dark-16.theme +#include /usr/share/task/dark-256.theme +#include /usr/share/task/dark-red-256.theme +#include /usr/share/task/dark-green-256.theme +#include /usr/share/task/dark-blue-256.theme +#include /usr/share/task/dark-violets-256.theme +#include /usr/share/task/dark-yellow-green.theme +#include /usr/share/task/dark-gray-256.theme +#include /usr/share/task/solarized-light-256.theme +# Copy of light-256.theme: +color=on +color.header=color4 +color.footnote=color4 +color.error=color4 +color.debug=color4 +color.summary.bar=black on rgb141 +color.summary.background=white on color0 +color.history.add=color0 on rgb500 +color.history.done=color0 on rgb050 +color.history.delete=color0 on rgb550 +color.burndown.pending=on rgb200 +color.burndown.started=on rgb520 +color.burndown.done=on rgb011 +color.sync.added=rgb011 +color.sync.changed=rgb520 +color.sync.rejected=rgb200 +color.undo.before=color1 +color.undo.after=color2 +color.calendar.today=color15 on rgb013 +color.calendar.due=color0 on color9 +color.calendar.due.today=color15 on color1 +color.calendar.overdue=color0 on color1 +color.calendar.weekend=on color253 +color.calendar.holiday=color0 on color3 +color.calendar.weeknumber=rgb013 +color.recurring=rgb013 +color.overdue=color1 +color.due.today=rgb400 +color.due=color9 +color.active=rgb555 on rgb520 +color.pri.none= +color.pri.H=color232 +color.pri.M=color237 +color.pri.L=color242 +color.tagged=rgb020 +color.blocked=gray12 on gray4 +color.blocking=gray12 on gray6 +color.project.none= +color.tag.none= +color.alternate=on color254 + +# Custom colors +color.blocking=rgb111 on rgb543 +color.blocked=rgb222 +due=4 +urgency.user.tag.waiting.coefficient=-6.0 -- cgit v1.2.3 From 10c4e50d87e2fdb7b2730c5c4b625df5c35f3f39 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 24 Jun 2015 15:07:50 -0400 Subject: Add taskrc symlink. --- bin/setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/setup.sh b/bin/setup.sh index ee52c20..918c41b 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -41,6 +41,7 @@ create_symlink() { } create_symlink dotfiles/gitconfig .gitconfig +create_symlink dotfiles/taskrc .taskrc create_symlink /dev/null .vimrc.local if [[ "${SHELL}" = *zsh* ]]; then -- cgit v1.2.3 From 94f70c4c2ed3d65c9f07c4976fa7123a773b98f7 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 25 Jun 2015 11:39:24 -0400 Subject: Add i3lock configuration to lock screen manually or after inactivity. --- i3/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i3/config b/i3/config index 20506c6..61290fb 100644 --- a/i3/config +++ b/i3/config @@ -19,6 +19,8 @@ floating_modifier Mod4 # start a terminal bindsym Mod4+Return exec urxvt +bindsym Pause exec i3lock + # kill focused window bindsym Mod4+Shift+q kill @@ -164,3 +166,4 @@ bar { exec xrdb -merge $HOME/.Xresources exec setxkbmap us -variant dvorak -option compose:ralt -option caps:ctrl_modifier exec google-chrome & +exec xautolock -time 10 -locker 'i3lock' & -- cgit v1.2.3 From 26792463b3e1281cb3b58c8bfcb7d712d576f0e1 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Mon, 6 Jul 2015 17:36:52 -0400 Subject: ZSH get-parent-dir. Supports this: $ cp M-u M-u M-u foo ./ As a substitute for: $ cp ../../../foo ./ --- zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zshrc b/zshrc index a5570a2..8db2a50 100755 --- a/zshrc +++ b/zshrc @@ -59,3 +59,16 @@ export TZ='America/New_York' autoload -U edit-command-line zle -N edit-command-line bindkey "^V" edit-command-line + +function get-parent-dir() { + words=(${(z)LBUFFER}) + if [[ "${words[${#words}]}" = /* ]]; then + # There is already a path thing here. + words[${#words}]="${words[${#words}]:h}/" # Parent directory. + else + words=($words $PWD) + fi + LBUFFER="${words[@]}" +} +zle -N get-parent-dir +bindkey "^[u" get-parent-dir -- cgit v1.2.3