khanhas / Polybar

A bar
490 stars 31 forks source link

Implement DesktopWorkArea so that Polybar doesn't get covered/cover title bars #31

Open Mistreaper opened 2 years ago

Mistreaper commented 2 years ago

Found this

Try to implement DesktopWorkArea in rainmeter, giving a (polybar-height) pixels free space for polybar to take up. The "work area" is defined as the space where windows can take up. By reducing the work area, we can use that space for polybar to take up and not cover or be covered by other windows, similar to the taskbar (when not set to auto hide) in Windows or the OG polybar.

The work area should be the screen, but only chop off the height of Polybar. That way, windows can roam freely without covering polybar.

Try to see if this helps:

https://docs.rainmeter.net/manual/settings/rainmeter-section/

Why?

When using Polybar, can we snap and lock it to the screen so that it doesn't cover the top part/title bar of windows? Similar to the taskbar (when not set to auto-hide), it doesn't cover the bottom part of the windows.

image

As you can see, Polybar is covering the title bar of Windows Terminal, which is quite annoying and not aesthetically pleasing.

image

Polybar on Linux doesn't cover up the title bar of Windows. Is there a way for me to not make Polybar do this?

EDIT/WORKAROUND: No gaps, but do this. First, open settings > taskbar settings, and put taskbar to stay topmost on the screen. You may choose to have smaller taskbar buttons if you want polybar to be shorter. Then, right click polybar > edit style, and change height to 30 (or whatever you like). This will hide the taskbar and still lets you do functionalities like opening the start menu.

This still doesn't work as the taskbar would just override everything when clicking on a window. I need to make the skin stay topmost, but it prevents me from using the title bar buttons.

If you prefer to use large taskbar buttons, then the height would be 40.

This is the result: image

Found this

Try to implement DesktopWorkArea in rainmeter, giving a (polybar-height) pixels free space for polybar to take up.

https://docs.rainmeter.net/manual/settings/rainmeter-section/