summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/bottomleft
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-05 12:02:55 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-05 12:02:55 -0500
commitdd4ece50d833ffe04b655ea5546142e2d1520d45 (patch)
treed1704979a7d7d22f89c0e97a4453ff4d0b7d1360 /.scripts/i3cmds/bottomleft
parent64c1f26b01de74b088c329444c322e5245dd8e24 (diff)
downloadeibhear-dd4ece50d833ffe04b655ea5546142e2d1520d45.tar.gz
eibhear-dd4ece50d833ffe04b655ea5546142e2d1520d45.tar.zst
eibhear-dd4ece50d833ffe04b655ea5546142e2d1520d45.zip
bottom right/left location calculation fixes
Diffstat (limited to '.scripts/i3cmds/bottomleft')
-rwxr-xr-x.scripts/i3cmds/bottomleft4
1 files changed, 2 insertions, 2 deletions
diff --git a/.scripts/i3cmds/bottomleft b/.scripts/i3cmds/bottomleft
index be12b63..c73a59a 100755
--- 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