1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-19 04:06:00 +02:00

moved magic number for offsetY to var

This commit is contained in:
Simon
2021-01-29 15:23:46 +01:00
parent d81229fa7f
commit 2444537fb6
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ override-redirect = true
tray-detached = true
tray-maxsize = 15
tray-offset-x= 86
tray-offset-y = 4px
tray-offset-y = 0px
tray-padding = 3
tray-position = left
tray-scale = 0.8
@@ -29,7 +29,7 @@ override-redirect = true
tray-detached = true
tray-maxsize = 15
tray-offset-x= 86
tray-offset-y = 4px
tray-offset-y = 0px
tray-padding = 3
tray-position = left
tray-scale = 0.8
+1 -1
View File
@@ -56,7 +56,7 @@ override-redirect = true
tray-detached = true
tray-maxsize = 15
tray-offset-x= 86
tray-offset-y = 4px
tray-offset-y = 0px
tray-padding = 3
tray-position = left
tray-scale = 0.8
+2 -1
View File
@@ -28,6 +28,7 @@ STATUSFILE="$HOME/.config/polybar/scripts/.polypopup.floating_popup"
WIN_ID=""
WIN_NAME_MOVEALONG_ONE='^Polybar tray window$'
WIN_OFFSETY_MOVEALONG=6
WIN_ID_MOVEALONG_ONE=
WIN_NAME=""
WIN_CLASS=""
@@ -430,7 +431,7 @@ function winmove() {
# Tray
#echo "WIN_ID_MOVEALONG_ONE $WIN_ID_MOVEALONG_ONE"
#xdotool windowmove $WIN_ID_MOVEALONG_ONE $1 $2
xdotool 2>/dev/null 1>&2 windowmove $WIN_ID_MOVEALONG_ONE $WIN_POSX_MOVEALONG_ONE $(($2 + 4))
xdotool 2>/dev/null 1>&2 windowmove $WIN_ID_MOVEALONG_ONE $WIN_POSX_MOVEALONG_ONE $(($2 + $WIN_OFFSETY_MOVEALONG))
}