dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit 94854171f0d4e42ac267a62310d08be2091dfcc0
parent 9597b54ffc4a43343d017d4972b72508e3b47f01
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat,  5 Jan 2019 12:02:55 -0500

bottom right/left location calculation fixes

Diffstat:
M.scripts/i3cmds/bottomleft | 4++--
M.scripts/i3cmds/bottomright | 6+++---
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.scripts/i3cmds/bottomleft b/.scripts/i3cmds/bottomleft @@ -8,9 +8,9 @@ current=$(xdotool getwindowfocus) newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3)) newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3)) -xdotool windowsize "$(xdotool getwindowfocus)" $newheight $newwidth +xdotool windowsize "$current" $newheight $newwidth -newsize=$(xdotool getwindowgeometry "$(xdotool getwindowfocus)" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}') +newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}') height=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) xdotool windowmove "$current" 0 $height diff --git a/.scripts/i3cmds/bottomright b/.scripts/i3cmds/bottomright @@ -8,10 +8,10 @@ current=$(xdotool getwindowfocus) newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3)) newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3)) -xdotool windowsize "$(xdotool getwindowfocus)" $newheight $newwidth +xdotool windowsize "$current" $newheight $newwidth -newsize=$(xdotool getwindowgeometry "$(xdotool getwindowfocus)" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}') -newwidth=$(xdotool getwindowgeometry "$(xdotool getwindowfocus)" | grep Geometry | grep -o " [0-9]*") +newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}') +newwidth=$(xdotool getwindowgeometry "$current" | grep Geometry | grep -o " [0-9]*") vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth))