mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Delete hover
This commit is contained in:
parent
d3e2c1a2e7
commit
088a93020c
@ -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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user