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,
)
),
+11 -6
View File
@@ -21,7 +21,7 @@
}
#panel-button:hover {
background-color: var(--surface-bright);
background-color: alpha(#fff, 0.1);
}
#menubar {
@@ -33,6 +33,11 @@
font-size: 13px;
/* font-weight: 400; */
}
#battery-label {
font-family: "SF Pro Rounded";
font-weight: 500;
margin-right: 1px;
}
#battery-button {
padding-right: 3px;
padding-left: 3px;
@@ -40,7 +45,7 @@
}
#battery-button:hover {
background-color: var(--surface-bright);
background-color: alpha(#fff, 0.1);
}
#network-button {
@@ -50,7 +55,7 @@
}
#network-button:hover {
background-color: var(--surface-bright);
background-color: alpha(#fff, 0.1);
}
#bt-button {
@@ -60,7 +65,7 @@
}
#bt-button:hover {
background-color: var(--surface-bright);
background-color: alpha(#fff, 0.1);
}
#tray-button {
@@ -71,7 +76,7 @@
}
#tray-button:hover {
background-color: var(--surface-bright);
background-color: alpha(#fff, 0.1);
}
#date-time {
@@ -121,7 +126,7 @@
}
#workspaces > button:hover {
background-color: var(--surface-bright);
background-color: alpha(#fff, 0.1);
}
#workspaces > button.active {