From 39d8abefa41d1ba7ce3e92f94dc7a521dc15d1e7 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 7 Jan 2016 01:18:47 -0600 Subject: [PATCH] man pages with vim, more work on wm : --- sh/bashrc | 11 +++++++++++ wm/bspwm_config | 18 ++++++++++-------- wm/bspwmrc | 2 ++ wm/sxhkdrc | 12 ++++-------- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/sh/bashrc b/sh/bashrc index 74bcf9b..0f47252 100644 --- a/sh/bashrc +++ b/sh/bashrc @@ -61,6 +61,17 @@ prompt_command_func() } export PROMPT_COMMAND="prompt_command_func" +# man pages with vim +vman() { + vim -c "SuperMan $*" + + if [ "$?" != "0" ]; then + echo "No manual entry for $*" + fi +} +alias _man="man" +alias man="vman" + # allow a per-device script that is pulled in if [ -a "$HOME/.bashrc_env" ]; then . "$HOME/.bashrc_env" diff --git a/wm/bspwm_config b/wm/bspwm_config index 0f352d5..ccd6d3e 100755 --- a/wm/bspwm_config +++ b/wm/bspwm_config @@ -2,15 +2,17 @@ source "$DOTFILES_PATH/variables.bash" source "$DOTFILES_PATH/scripts/get_color.sh" +source "$DOTFILES_PATH/scripts/get_x_fonts.sh" -bspc config normal_border_color "#$(get_color 05)" -bspc config focused_border_color "#$(get_color 0D)" -bspc config active_border_color "#$(get_color 0D)" -bspc config border_width "$BORDER_WIDTH" -bspc config split_ratio 0.50 -bspc config borderless_monocle true -bspc config gapless_monocle true -bspc config focus_by_distance true +bspc config normal_border_color "#$(get_color 05)" +bspc config focused_border_color "#$(get_color 0D)" +bspc config active_border_color "#$(get_color 0D)" +bspc config presel_feedback_color "#$(get_color 0D)" +bspc config border_width "$BORDER_WIDTH" +bspc config split_ratio 0.50 +bspc config borderless_monocle true +bspc config gapless_monocle true +bspc config focus_by_distance true bspc config window_gap "$WINDOW_GAP" diff --git a/wm/bspwmrc b/wm/bspwmrc index ea8aef5..1af7d77 100755 --- a/wm/bspwmrc +++ b/wm/bspwmrc @@ -3,6 +3,8 @@ source "$DOTFILES_PATH/variables.bash" source "$DOTFILES_PATH/wm/bspwm_config" +source "$DOTFILES_PATH/scripts/get_color.sh" +source "$DOTFILES_PATH/scripts/get_x_fonts.sh" urxvtd & sxhkd & diff --git a/wm/sxhkdrc b/wm/sxhkdrc index 354e8f9..3f89de4 100755 --- a/wm/sxhkdrc +++ b/wm/sxhkdrc @@ -1,20 +1,16 @@ # node manager shortcuts -# kill the node manager +# kill the wm super + ctrl + Escape bspc quit -# kill the current node +# kill the current application super + c bspc node -c -# swap layouts -#super + y -# bspc desktop -l next - # balance node surface area on current desktop super + b - bspc desktop -B + bspc node -B # toggle floating/fullscreen modes for current node super + {s,f} @@ -48,7 +44,7 @@ super + {p,n} # rotate node placement on current desktop super + r - bspc desktop -R 90 + bspc node -R 90 # preselect the splitting area for the current node super + ctrl + {h,j,k,l}