Battery Percentage Tweaks and Current App

This commit is contained in:
tr1x_em committed 2025-08-09 15:44:48 +05:30
1 parent 68ec5c50a6
commit 58fb6af79a
2 files changed
+13 -8

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ class AppName:
def format_app_name(self, title, wmclass, update=False):
# Handle case when both title and wmclass are empty (no active window)
if not title and not wmclass:
name = "Hyprland"
name = "Finder"
else:
name = wmclass
if name == "":
@@ -292,7 +292,7 @@ class MenuBarDropdowns:
self.global_menu_button_title = Button(
child=ActiveWindow(
formatter=FormattedString(
"{ format_window(win_title, win_class) if win_title or win_class else 'Hyprland' }",
"{ format_window(win_title, win_class) if win_title or win_class else 'Finder' }",
format_window=format_window,
)
),