summaryrefslogtreecommitdiffstats
path: root/.local/bin/i3cmds/hover
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-11-17 16:44:07 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-11-17 16:44:07 -0500
commitc7e3d61753201d48835cdc819dcd6557bc2cffe7 (patch)
tree5700fb5d11bd49f7d8919baa8d53af1b13d2a07b /.local/bin/i3cmds/hover
parent9df28899ded4ed4cd75c4fa05b8302f71ff8198d (diff)
downloadeibhear-c7e3d61753201d48835cdc819dcd6557bc2cffe7.tar.gz
eibhear-c7e3d61753201d48835cdc819dcd6557bc2cffe7.tar.zst
eibhear-c7e3d61753201d48835cdc819dcd6557bc2cffe7.zip
old script cleanout
Diffstat (limited to '.local/bin/i3cmds/hover')
-rwxr-xr-x.local/bin/i3cmds/hover15
1 files changed, 0 insertions, 15 deletions
diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover
deleted file mode 100755
index a8a3e19..0000000
--- a/.local/bin/i3cmds/hover
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-[ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right
-current=$(xdotool getwindowfocus)
-newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))
-newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3))
-xdotool windowsize "$current" $newheight $newwidth
-newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}')
-newwidth=$(xdotool getwindowgeometry "$current" | grep Geometry | grep -o " [0-9]*")
-
-case "$1" in
- left) horizontal=0; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;;
- right) horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth)) ; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;;
-esac
-xdotool windowmove "$current" $horizontal $vertical