From 30fb374849f8c98379d6fbc076fd0af6641a7a84 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 27 Jul 2017 14:07:18 -0500 Subject: [PATCH] Mouse fixes --- de/bspwm_config | 1 + de/bspwmrc | 2 +- de/sxhkdrc | 36 ++++++++++++++++++------------------ de/xinitrc | 2 -- scripts/bin/murxvt | 3 +++ 5 files changed, 23 insertions(+), 21 deletions(-) create mode 100755 scripts/bin/murxvt diff --git a/de/bspwm_config b/de/bspwm_config index 904633f..8299439 100755 --- a/de/bspwm_config +++ b/de/bspwm_config @@ -22,6 +22,7 @@ bspc config border_width "$BORDER_WIDTH" bspc config split_ratio 0.666666 bspc config borderless_monocle true bspc config gapless_monocle true +bspc config pointer_modifier "mod4" bspc config window_gap "$WINDOW_GAP" diff --git a/de/bspwmrc b/de/bspwmrc index e49752b..2c32843 100755 --- a/de/bspwmrc +++ b/de/bspwmrc @@ -27,7 +27,7 @@ fi if command -v sxhkd >/dev/null 2>&1; then # export HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1) - sxhkd & + sxhkd -m -1 & fi if [ -f "$DOTFILES_PATH/de/xloadresources" ]; then diff --git a/de/sxhkdrc b/de/sxhkdrc index c56e3dd..ed1d0c7 100755 --- a/de/sxhkdrc +++ b/de/sxhkdrc @@ -37,7 +37,7 @@ super + bracket{left,right} bspc desktop -f {prev,next} # preselect the splitting area for the current node -super + ctrl + {h,j,k,l}c +super + ctrl + {h,j,k,l} bspc node -p {west,south,north,east} # clear the splitting area @@ -53,40 +53,40 @@ super + alt + shift + {h,j,k,l} bspc node {@east -r -10,@north -r +10,@south -r -10,@west -r +10} # set node split ratio -super + ctrl + {1-9,0} - bspc node --ratio 0.{1-9,10} +super + ctrl + {1-9} + bspc node -o 0.{1-9} # move a floating window very slowly super + shift + {Left,Down,Up,Right} - xdo move {-x -1,-y +1,-y -1,-x +1} + bspc node --move {-1 0, 0 1, 0 -1, 1 0} # move a floating window super + {Left,Down,Up,Right} - xdo move {-x -20,-y +20,-y -20,-x +20} + bspc node --move {-20 0, 0 20, 0 -20, 20 0} # focus/move node to the selected desktop super + {_,shift + }{1-9,0} bspc {desktop -f,node -d} ^{1-9,10} -# focus clicked node +# # focus clicked node ~button1 bspc node -f pointed -# mouse controls for node movement and resizing -super + button{1-3} - bspc pointer -g {move,resize_side,resize_corner} +# # mouse controls for node movement and resizing +# super + button{1-3} +# bspc pointer -g {move,resize_side,resize_corner} -# simulate mouse2 -shift + super + button1 - bspc pointer -g resize_corner +# # simulate mouse2 +# shift + super + button1 +# bspc pointer -g resize_corner -# ??? -super + !button{1-3} - bspc pointer -t %i %i +# # ??? +# super + !button{1-3} +# bspc pointer -t %i %i -# ??? -super + @button{1-3} - bspc pointer -u +# # ??? +# super + @button{1-3} +# bspc pointer -u # change node gap and desktop padding super + plus diff --git a/de/xinitrc b/de/xinitrc index 792a474..489ff5d 100644 --- a/de/xinitrc +++ b/de/xinitrc @@ -20,8 +20,6 @@ if [ -f "$HOME/.xmodmap" ]; then xmodmap "$HOME/.xmodmap" fi -[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap - pulseaudio --start & # fire up wm diff --git a/scripts/bin/murxvt b/scripts/bin/murxvt new file mode 100755 index 0000000..43b692b --- /dev/null +++ b/scripts/bin/murxvt @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +urxvtc -fn "xft:Monaco:pixelsize=16" -letsp -2