Adds clock to zsh and documents tmux functions

This commit is contained in:
Brad Anderson
2016-03-01 15:14:05 -06:00
parent 69ec75fc70
commit 7dc862656d
7 changed files with 27 additions and 12 deletions
+6
View File
@@ -84,11 +84,17 @@ C: Display calendar
T: Make current window index 1
h, j, k, l: Vim style movement between panes
<num>: Switch to <num> window
q: Display split numbers (follow with <num> to switch)
z: Toggle pane zoom
t: Toggle pane clock
s: Switch tmux session
a: Toggle synchronize keyboard input across panes
```
### zsh
```
Ctrl-o: Open ranger and cd to exit directory
Ctrl-t: Display pretty clock
K: Open man page (from command mode)
commands: Open list of useful commands
sc: Open list of aliases
+3
View File
@@ -1,3 +1,6 @@
lc3*
gibo
Ascolorii
brown_noise.sh
brownnoise.plt
guitar.sh
+1
View File
@@ -16,6 +16,7 @@ Mousepad
orage
gconf
pavucontrol.ini
projectM
pulse
QtProject.conf
ranger/bookmarks
BIN
View File
Binary file not shown.
+3
View File
@@ -64,6 +64,9 @@ bindsym $mod+v exec pavucontrol
# open new volume mixer to scratchpad in case of accidental closing
# bindsym $mod+Control+v exec pavucontrol
# Show/hide scratchpad terminal
bindsym $mod+y [instance="^scratchpad$"] scratchpad show
# take screenshot
bindsym Print exec scrot -e 'mv $f ~/Downloads'
+3
View File
@@ -64,6 +64,9 @@ bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Synchonize keyboard input across panes
bind a setw synchronize-panes
# open calendar
bind-key C run-shell "cal $(date +%Y)"
+11 -12
View File
@@ -147,30 +147,29 @@ COWPATH="$COWPATH:$HOME/dotfiles/cowfiles"
# fortune -a | fmt -80 -s | cowthink -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n
# Make shell cd to ranger directory
# ranger-cd() {
# tempfile=$(mktemp)
# ranger --choosedir="$tempfile" "${@:-$(pwd)}" < $TTY
# test -f "$tempfile" &&
# if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
# cd -- "$(cat "$tempfile")"
# fi
# rm -f -- "$tempfile"
# }
ranger-cd() {
tempfile=$(mktemp)
ranger --choosedir="$tempfile" "${@:-$(pwd)}" < $TTY
test -f "$tempfile" &&
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
cd $(cat $tempfile)
printf '\n'
zle reset-prompt
# cd -- "$(cat "$tempfile")"
fi
zle reset-prompt
printf '\n'
rm -f -- "$tempfile"
}
terminal-clock() {
tty-clock -tc < $TTY
zle reset-prompt
printf '\n'
}
# This binds Ctrl-O to ranger-cd:
zle -N ranger-cd
bindkey '^o' ranger-cd
zle -N terminal-clock
bindkey '^t' terminal-clock
alias sl="sl -laF"