New GTK theme, fixed hover, detaches processes in qute

This commit is contained in:
2020-09-01 14:22:26 +02:00
parent b232e578b1
commit 05146301fc
5 changed files with 18 additions and 18 deletions

View File

@ -2,12 +2,10 @@
[ -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 $1}') / 3))
newheight=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))
newwidth=$(( 2 * $(xdotool getdisplaygeometry | awk '{print $1}') / 5))
newheight=$(( 2 * $(xdotool getdisplaygeometry | awk '{print $2}') / 5))
centerwidth=$(( $(xdotool getdisplaygeometry | awk '{print $1}') / 2))
newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}')
#newwidth=$(xdotool getwindowgeometry "$current" | grep Geometry | grep -o " [0-9]*")
borderwidth=3
borderwidth=1
baroffset=47
case "$1" in
@ -17,7 +15,7 @@ case "$1" in
vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newheight - 2 * borderwidth )) ;;
center) horizontal=$(( ( $(xdotool getdisplaygeometry | awk '{print $1}') - centerwidth ) / 2 ));
vertical=$baroffset
newheight=$(( $(xdotool getdisplaygeometry | awk '{print $2}' ) - baroffset -5))
newheight=$(( $(xdotool getdisplaygeometry | awk '{print $2}' ) - baroffset - 2 * borderwidth ))
newwidth=$centerwidth;;
esac
xdotool windowsize "$current" $newwidth $newheight