1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-10-02 05:09:08 +00:00

Add script to switch window states between active/minimize and use it when clicking Spotify module

This commit is contained in:
2019-08-06 16:25:59 +02:00
parent 6e6445203c
commit 7a6d7ca172
3 changed files with 24 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ def get_spotify_song():
title = metadata['xesam:title']
window_title = artist + ' - ' + title
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'):