initial
This commit is contained in:
9
tmux/powerline/segments/np_pithos.py
Executable file
9
tmux/powerline/segments/np_pithos.py
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
import dbus
|
||||
|
||||
pithos_bus = dbus.SessionBus()
|
||||
|
||||
pithos = pithos_bus.get_object('net.kevinmehall.Pithos', '/net/kevinmehall/Pithos')
|
||||
props = pithos.get_dbus_method('GetCurrentSong', 'net.kevinmehall.Pithos')
|
||||
|
||||
print props()["artist"] + " - " + props()["title"]
|
Reference in New Issue
Block a user