diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a09c56d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea diff --git a/webstatus.plugin b/webstatus.plugin new file mode 100644 index 0000000..9fa426a --- /dev/null +++ b/webstatus.plugin @@ -0,0 +1,9 @@ +[Plugin] +Loader=python3 +Module=webstatus +IAge=2 +Name=Web Status +Description=Plugin for player Rhythmbox to display the current song in the OBS. +Authors=Valentin Popov +Copyright=Copyright © 2022 Valentin Popov +Website=https://git.sr.ht/~valentineus/rhythmbox_webstatus diff --git a/webstatus.py b/webstatus.py new file mode 100644 index 0000000..7a8bead --- /dev/null +++ b/webstatus.py @@ -0,0 +1,15 @@ +from gi.repository import GObject, Peas, RB + + +class WebStatusPlugin(GObject.Object, Peas.Activatable): + __gtype_name = 'WebStatusPlugin' + object = GObject.property(type=GObject.Object) + + def __init__(self): + super(WebStatusPlugin, self).__init__() + + def do_activate(self): + print("activating sample python plugin") + + def do_deactivate(self): + print("deactivating sample python plugin")