tadly / hideIt.sh

Automagically hide/show a window by its name when the cursor is within a defined region or you mouse over it.
GNU General Public License v3.0
248 stars 11 forks source link

Waiting for region... #10

Closed ruizlenato closed 4 years ago

ruizlenato commented 4 years ago

➜ ~ ./hideIt.sh --name '^Polybar tray window$' --region 1366x768+0+0 Searching window... Found window with id: 18874379 Fetching window dimensions... Fetching screen dimensions... Initially hiding window... Defined region: X: 1366 1366 Y: 768 768

Waiting for region...

tadly commented 4 years ago

Fix what exactly? Given the output, everything is working as intended.

If your issue is that the region is to small, you have to actually make it bigger like so:

--region 1366x768+10+10

This would give you a 10px by 10px area

ruizlenato commented 4 years ago

I put the mouse on top where it was supposed to appear and nothing happens

tadly commented 4 years ago

With such little information I can't really help you much.

Does the window initially hide when you run the command? What is your screen resolution? Did you set override-redirect = true in your polybar config?

ruizlenato commented 4 years ago

image

tadly commented 4 years ago

okay and what about my other questions? You gotta work with me man or I can't help you

ruizlenato commented 4 years ago

Minha resolução é 1366x768

tadly commented 4 years ago

Dificuldades de linguagem. Entendo. Estou usando o google tradutor para escrever isso agora.

O seu polybar se oculta quando você inicia o script?

ruizlenato commented 4 years ago

(English) Yes, the polybar is hidden

(Portuguese) Sim, a polybar fica oculta

tadly commented 4 years ago

OK. Suponho que você tenha polybar no canto inferior esquerdo?

Sua região seria acionada no canto inferior direito (não à esquerda) Tente o seguinte:

hideIt.sh --name '^Polybar tray window$' --region 0x768+10+-40
ruizlenato commented 4 years ago

eu usei o

xdotool getmouselocation

e funcionou para eu ver a localização, muito obrigado isso pode ajudar o próximo também :3