commit 5134f1abd0ad934350153672dbf13692a22b9585
parent 3719378c872d774df1ce4e96285b7f3ccb0a5e61
Author: Anders Damsgaard <andersd@riseup.net>
Date: Fri, 3 Nov 2017 11:37:18 -0400
add mpc bindings to tmux
Diffstat:
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/links/.tmux.conf b/links/.tmux.conf
@@ -133,7 +133,7 @@ bind-key o split-window -p 25 '$SHELL -c "offlineimap -qf INBOX"' \; select-pane
bind-key O split-window -p 25 '$SHELL -c "offlineimap"' \; select-pane -l
bind-key -r n next-window
-bind-key -r N previous-window
+bind-key -r p previous-window
# cycle between preset layouts. select specific presets with select-layout <n>
bind-key -r y next-layout
@@ -147,14 +147,20 @@ bind-key -r r rotate-window
bind-key '"' split-window -c "#{pane_current_path}"
bind-key '%' split-window -h -c "#{pane_current_path}"
-# Show weather information in new window
+# Launch things in new windows
bind-key W new-window -n weather "curl 'wttr.in/?m'; echo -e '\nPress <enter> to quit'; read -n 1 -s"
bind-key M new-window -n mutt "mutt"
-bind-key V new-window -n vim "vim"
-bind-key P new-window -n vimpc "vimpc"
+bind-key E new-window -n vim "vim"
bind-key Enter new-window "tmux set status-right-length `echo $(tput cols)/3|bc|tr -d '\n'`; $SHELL"
#bind-key Enter new-window
+# Music control
+bind-key V new-window -n vimpc "vimpc"
+bind-key B new-window -n mpc "mpc prev"
+bind-key N new-window -n mpc "mpc next"
+bind-key P new-window -n mpc "mpc toggle"
+bind-key S new-window -n mpc "mpc stop"
+
#set-hook client-resized "tmux set status-right-length `echo $(tmux display -p '#{client_width}')/3|bc|tr -d '\n'`; tmux set status-left-length `echo $(tmux display -p '#{client_width}'put cols)/3|bc|tr -d '\n'`"
#set-hook client-resized "display '#{client_width}'"
#set-hook client-resized 'display "#(tmux display -p \'#{client_width}/3\'|bc|tr -d \'\n\')"'