chore: Initial Rhythmbox plugin

Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
Valentin Popov 2022-10-19 16:39:25 +04:00
parent 16dc0a4411
commit 6c64103960
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
3 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.idea

9
webstatus.plugin Normal file
View File

@ -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 <valentin@popov.link>
Copyright=Copyright © 2022 Valentin Popov
Website=https://git.sr.ht/~valentineus/rhythmbox_webstatus

15
webstatus.py Normal file
View File

@ -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")