1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 22:09:25 +00:00

[polybar] Update tags to polybar 3.6.0

This commit is contained in:
2022-03-05 13:00:21 +01:00
parent 14fd6d7461
commit 1922117cc5
3 changed files with 12 additions and 12 deletions

View File

@ -36,7 +36,7 @@ def show_cpu_usage():
if global_count < 10:
padding = '%{F' + colors['id'] + '}' + '_' * (10 - global_count) + '%{F-}'
print("%{A1:$TERMINAL_CMD 'top -o %CPU' &:}%{T5}" + bar + padding + "%{T-}%{A-}")
print("%{A1:$TERMINAL_CMD 'top -o %CPU' &:}%{T5}" + bar + padding + "%{T-}%{A}")
if __name__ == "__main__":

View File

@ -19,7 +19,7 @@ def get_spotify_song():
window_title = artist + ' - ' + title
output = "%{A1:$WM_CONTROL '" + window_title + "' &:}" + window_title + "%{A-}"
output = "%{A1:$WM_CONTROL '" + window_title + "' &:}" + window_title + "%{A}"
except dbus.DBusException as e:
if (e.get_dbus_message() == f'The name {bus_name} was not provided by any .service files'):
pass