From 452d22eba193e9914c6f3810d8d926cd041c741a Mon Sep 17 00:00:00 2001 From: ds6 Date: Mon, 5 Feb 2018 19:23:51 -0600 Subject: [PATCH] add mpc keybinds, .zshenv.local loading --- base/.zshenv | 14 +++++++++----- xdg/i3/config | 6 ++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/base/.zshenv b/base/.zshenv index e237b0e..96c6d52 100644 --- a/base/.zshenv +++ b/base/.zshenv @@ -1,9 +1,13 @@ +if [ -f ~/.zshenv.local ]; then + source ~/.zshenv.local +fi + export EDITOR=vim -export XDG_CONFIG_HOME="$HOME/etc" -export XDG_CONFIG_DIRS="$HOME/.config:/etc/xdg" -export XDG_DATA_HOME="$HOME/share" -export XDG_DATA_DIRS="$HOME/.local/share:/usr/local/share/:/usr/share/" -export XDG_CACHE_HOME="$HOME/tmp" +export XDG_CONFIG_HOME=~/etc +export XDG_CONFIG_DIRS=~/.config:/etc/xdg +export XDG_DATA_HOME=~/share +export XDG_DATA_DIRS=~/.local/share:/usr/local/share/:/usr/share/ +export XDG_CACHE_HOME=~/tmp export CLICOLOR= export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' diff --git a/xdg/i3/config b/xdg/i3/config index 8e78bfc..a37e72e 100644 --- a/xdg/i3/config +++ b/xdg/i3/config @@ -132,6 +132,12 @@ bindsym $mod+Shift+e exec --no-startup-id i3-nagbar -t warning -m Exit? -b Yes ' bindcode 198 exec --no-startup-id rotate set normal bindcode 204 exec --no-startup-id rotate right +# mpc +bindsym XF86AudioPlay exec --no-startup-id mpc -h /var/mpd/socket play +bindsym XF86AudioStop exec --no-startup-id mpc -h /var/mpd/socket pause +bindsym XF86AudioPrev exec --no-startup-id mpc -h /var/mpd/socket cdprev +bindsym XF86AudioNext exec --no-startup-id mpc -h /var/mpd/socket next + # move and resize [floating] windows mode "translate" { bindsym $left resize shrink width 20 px -- 2.47.0