Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window_flag not working properly #115

Open
b0xBR opened this issue Jan 22, 2025 · 5 comments
Open

window_flag not working properly #115

b0xBR opened this issue Jan 22, 2025 · 5 comments

Comments

@b0xBR
Copy link

b0xBR commented Jan 22, 2025

First of all, thank you for this incredible app.
When I maximize another app window, it overlays yasb.
I'm using this config:
window_flags:
always_on_top: false
windows_app_bar: true

Does it have another config which prevents this overlay?

Thanks once again.

@amnweb
Copy link
Owner

amnweb commented Jan 22, 2025

Which OS?
Which YASB version?
YASB installed or you are running with Python?
Any video, screenshot ?

Upload & Share config file

@b0xBR
Copy link
Author

b0xBR commented Jan 22, 2025

Windows 11 x64 - 26100.3025
YASB 1.5.5
YASB is installed
I've changed to always_on_top: true
https://imgur.com/a/zgbhKoA

watch_stylesheet: true
watch_config: true
debug: false
bars:
primary-bar:
enabled: true
screens: ['ASUS VY279']
class_name: "yasb-bar"
alignment:
position: "top"
center: false
animation:
enabled: true
duration: 1000
blur_effect:
enabled: false
acrylic: false
dark_mode: false
round_corners: false
border_color: "System"
window_flags:
always_on_top: true
windows_app_bar: true
dimensions:
width: "100%"
height: 34
padding:
top: 4
left: 0
bottom: 4
right: 0
widgets:
left:
[
"cpu",
"memory",
"traffic"
]
center: [
"clock",
"weather",
"volume"
]
right:
[
"disk",
"disk1",
"disk2"
]
widgets:
clock:
type: "yasb.clock.ClockWidget"
options:
label: "\udb83\ude17{%a - %b - %d - %H:%M:%S}"
label_alt: "\udb83\ude17{%A, %d %B %Y %H:%M:%S}"
timezones: []

weather:
type: "yasb.weather.WeatherWidget"
options:
label: "{icon} Baln. Piçarras/SC:Now {temp} | Min {min_temp} | Max {max_temp} | Humidity {humidity}"
api_key: '3bf4cf9a7c3f40d6b31174128242807'
update_interval: 600 #Update interval in seconds, Min 600
hide_decimal: false
location: 'Penha, SC, BR'
icons:
sunnyDay: "\ue30d"
clearNight: "\ue32b"
cloudyDay: "\udb81\udd99"
cloudyNight: "\ue311"
rainyDay: "\udb81\ude7e"
rainyNight: "\udb81\ude7e"
snowyIcyDay: "\udb81\udd98"
snowyIcyNight: "\udb81\udd98"
blizzard: "\uebaa"
default: "\uebaa"
volume:
type: "yasb.volume.VolumeWidget"
options:
label: "{icon} {level}"
label_alt: "{volume}"
volume_icons:
- "\ueee8" # Icon for muted
- "\uf026" # Icon for 0-10% volume
- "\uf027" # Icon for 11-30% volume
- "\uf027" # Icon for 31-60% volume
- "\uf028" # Icon for 61-100% volume
callbacks:
on_right: "exec cmd.exe /c start ms-settings:sound"
traffic:
type: "yasb.traffic.TrafficWidget"
options:
label: "\udb82\udcfa \uea9a{download_speed} - \ueaa1{upload_speed}"
label_alt: "\udb82\udcfa Download {download_speed} - Upload {upload_speed}"
update_interval: 1000
interface: "Ethernet"
callbacks:
on_left: 'toggle_label'
on_right: 'exec cmd /c Taskmgr'
cpu:
type: "yasb.cpu.CpuWidget"
options:
label: "\uf4bc {info[percent][total]}%"
label_alt: "\uf437 {info[histograms][cpu_percent]}"
update_interval: 1000
histogram_icons:
- '\u2581' # 0%
- '\u2581' # 10%
- '\u2582' # 20%
- '\u2583' # 30%
- '\u2584' # 40%
- '\u2585' # 50%
- '\u2586' # 60%
- '\u2587' # 70%
- '\u2588' # 80%+
histogram_num_columns: 8
callbacks:
on_right: "exec cmd /c Taskmgr"

memory:
type: "yasb.memory.MemoryWidget"
options:
label: "\uefc5 {virtual_mem_percent}%"
label_alt: "\uefc5 {virtual_mem_free}"
update_interval: 1000
memory_thresholds:
low: 25
medium: 50
high: 90
callbacks:
on_right: "exec cmd /c Taskmgr"
disk:
type: "yasb.disk.DiskWidget"
options:
label: "\ue62a {volume_label} {space[used][percent]}"
label_alt: "\ue62a {volume_label} {space[used][gb]} / {space[total][gb]}"
volume_label: "C"
update_interval: 60
decimal_display: 2
callbacks:
on_middle: "do_nothing"
on_right: "exec explorer C:\"

disk1:
type: "yasb.disk.DiskWidget"
options:
label: "\ueb51 {volume_label} {space[used][percent]}"
label_alt: "\ueb51 {volume_label} {space[used][gb]} / {space[total][gb]}"
volume_label: "D"
update_interval: 60
decimal_display: 2
callbacks:
on_middle: "do_nothing"
on_right: "exec explorer D:\"

disk2:
type: "yasb.disk.DiskWidget"
options:
label: "\udb84\udf55 {volume_label} {space[used][percent]}"
label_alt: "\udb84\udf55 {volume_label} {space[used][gb]} / {space[total][gb]}"
volume_label: "E"
update_interval: 60
decimal_display: 2
callbacks:
on_middle: "do_nothing"
on_right: "exec explorer E:\"

@amnweb
Copy link
Owner

amnweb commented Jan 22, 2025

This is not stable release 26100.3025 ?
I have 24H2 stable and all is working fine, also If you have any other system modification app like Windhawk or any other which can break some Windows API stuff please disable it, also try with default theme, remove/rename current YASB folder in .config and start yasb, it will generate a new default config.

Note, about disk widget you can group them in one single menu, please scroll down to see demo
https://github.com/amnweb/yasb/wiki/(Widget)-Disk

@b0xBR
Copy link
Author

b0xBR commented Jan 22, 2025

I found the reason AmN. When I select screens: ['ASUS VY279'] instead of ['*'], window_app_bar stops working.
It used to work, but I'm using w11 Insider Release Preview build and may be the reason for that.

Thanks once again.

@amnweb
Copy link
Owner

amnweb commented Jan 23, 2025

Strange, I use the monitor name instead of * and everything is fine, only OS build is different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants