Exemple #1
0
    def __init__(self, device, parent, gconf_client):
        g15locale.get_translation("driver_g19direct")
        widget_tree = Gtk.Builder()
        widget_tree.set_translation_domain("driver_g19direct")
        widget_tree.add_from_file(os.path.join(g15globals.ui_dir, "driver_g19direct.ui"))
        self.window = widget_tree.get_object("G19DirectDriverSettings")
        self.set_transient_for(parent)

        g15uiGConf.configure_checkbox_from_gconf(gconf_client,
                                                 "/apps/gnome15/%s/reset_usb" % device.uid,
                                                 "Reset",
                                                 False,
                                                 widget_tree,
                                                 True)
        g15uiGConf.configure_spinner_from_gconf(gconf_client,
                                                "/apps/gnome15/%s/timeout" % device.uid,
                                                "Timeout",
                                                10000,
                                                widget_tree,
                                                False)
        g15uiGConf.configure_spinner_from_gconf(gconf_client,
                                                "/apps/gnome15/%s/reset_wait" % device.uid,
                                                "ResetWait",
                                                0,
                                                widget_tree,
                                                False)
    def __init__(self, device, parent, gconf_client):
        self.gconf_client = gconf_client
        self.device = device

        g15locale.get_translation("driver_g15direct")
        widget_tree = gtk.Builder()
        widget_tree.set_translation_domain("driver_g15direct")
        widget_tree.add_from_file(
            os.path.join(g15globals.ui_dir, "driver_g15direct.ui"))
        self.window = widget_tree.get_object("G15DirectDriverSettings")
        self.window.set_transient_for(parent)

        g15uigconf.configure_spinner_from_gconf(
            gconf_client, "/apps/gnome15/%s/timeout" % device.uid, "Timeout",
            10000, widget_tree, False)
        if not device.model_id == g15driver.MODEL_G13:
            widget_tree.get_object("JoyModeCombo").destroy()
            widget_tree.get_object("JoyModeLabel").destroy()
            widget_tree.get_object("Offset").destroy()
            widget_tree.get_object("OffsetLabel").destroy()
            widget_tree.get_object("OffsetDescription").destroy()
        else:
            g15uigconf.configure_combo_from_gconf(
                gconf_client, "/apps/gnome15/%s/joymode" % device.uid,
                "JoyModeCombo", "macro", widget_tree)
            # We have separate offset values for digital / analogue,
            # so swap between them based on configuration
            self.offset_widget = widget_tree.get_object("Offset")
            self._set_offset_depending_on_mode(None)
            widget_tree.get_object("JoyModeCombo").connect(
                "changed", self._set_offset_depending_on_mode)
            self.offset_widget.connect("value-changed", self._spinner_changed)
Exemple #3
0
    def __init__(self, device, parent, gconf_client):
        g15locale.get_translation("driver_g19direct")
        widget_tree = gtk.Builder()
        widget_tree.set_translation_domain("driver_g19direct")
        widget_tree.add_from_file(os.path.join(g15globals.ui_dir, "driver_g19direct.ui"))
        self.window = widget_tree.get_object("G19DirectDriverSettings")
        self.window.set_transient_for(parent)

        g15uigconf.configure_checkbox_from_gconf(gconf_client,
                                                 "/apps/gnome15/%s/reset_usb" % device.uid,
                                                 "Reset",
                                                 False,
                                                 widget_tree,
                                                 True)
        g15uigconf.configure_spinner_from_gconf(gconf_client,
                                                "/apps/gnome15/%s/timeout" % device.uid,
                                                "Timeout",
                                                10000,
                                                widget_tree,
                                                False)
        g15uigconf.configure_spinner_from_gconf(gconf_client,
                                                "/apps/gnome15/%s/reset_wait" % device.uid,
                                                "ResetWait",
                                                0,
                                                widget_tree,
                                                False)
Exemple #4
0
    def __init__(self, device, parent, gconf_client):
        g15locale.get_translation("driver_gtk")
        widget_tree = gtk.Builder()
        widget_tree.set_translation_domain("driver_gtk")
        widget_tree.add_from_file(
            os.path.join(g15globals.ui_dir, "driver_gtk.ui"))
        self.window = widget_tree.get_object("GtkDriverSettings")
        self.window.set_transient_for(parent)

        mode_model = widget_tree.get_object("ModeModel")
        mode_model.clear()
        for mode in g15driver.MODELS:
            mode_model.append([mode])
        g15uigconf.configure_combo_from_gconf(
            gconf_client, "/apps/gnome15/%s/gtk_mode" % device.uid,
            "ModeCombo", g15driver.MODEL_G19, widget_tree)
Exemple #5
0
    def __init__(self, device, parent, gconf_client):
        g15locale.get_translation("driver_gtk")
        widget_tree = gtk.Builder()
        widget_tree.set_translation_domain("driver_gtk")
        widget_tree.add_from_file(os.path.join(g15globals.ui_dir, "driver_gtk.ui"))
        self.window = widget_tree.get_object("GtkDriverSettings")
        self.window.set_transient_for(parent)

        mode_model = widget_tree.get_object("ModeModel")
        mode_model.clear()
        for mode in g15driver.MODELS:
            mode_model.append([mode])
        g15uigconf.configure_combo_from_gconf(gconf_client,
                                              "/apps/gnome15/%s/gtk_mode" % device.uid,
                                              "ModeCombo",
                                              g15driver.MODEL_G19,
                                              widget_tree)
Exemple #6
0
    def __init__(self, device, parent, gconf_client):
        self.gconf_client = gconf_client
        self.device = device

        g15locale.get_translation("driver_g15direct")
        widget_tree = gtk.Builder()
        widget_tree.set_translation_domain("driver_g15direct")
        widget_tree.add_from_file(os.path.join(g15globals.ui_dir, "driver_g15direct.ui"))
        self.window = widget_tree.get_object("G15DirectDriverSettings")
        self.window.set_transient_for(parent)

        g15uigconf.configure_spinner_from_gconf(gconf_client,
                                                "/apps/gnome15/%s/timeout" % device.uid,
                                                "Timeout",
                                                10000,
                                                widget_tree,
                                                False)
        if not device.model_id == g15driver.MODEL_G13:
            widget_tree.get_object("JoyModeCombo").destroy()
            widget_tree.get_object("JoyModeLabel").destroy()
            widget_tree.get_object("Offset").destroy()
            widget_tree.get_object("OffsetLabel").destroy()
            widget_tree.get_object("OffsetDescription").destroy()
        else:
            g15uigconf.configure_combo_from_gconf(gconf_client,
                                                  "/apps/gnome15/%s/joymode" % device.uid,
                                                  "JoyModeCombo",
                                                  "macro",
                                                  widget_tree)
            # We have separate offset values for digital / analogue,
            # so swap between them based on configuration
            self.offset_widget = widget_tree.get_object("Offset")
            self._set_offset_depending_on_mode(None)
            widget_tree.get_object("JoyModeCombo").connect("changed",
                                                           self._set_offset_depending_on_mode)
            self.offset_widget.connect("value-changed", self._spinner_changed)
Exemple #7
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("lcdshot", modfile=__file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.g15devices as g15devices
import gnome15.g15globals as g15globals
import gnome15.g15actions as g15actions
import os.path
import gtk
import gobject
import gnome15.util.g15convert as g15convert
import gnome15.g15notify as g15notify
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15os as g15os
import gnome15.util.g15cairo as g15cairo
import subprocess
Exemple #8
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("tails", modfile=__file__).ugettext

import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.util.g15markup as g15markup
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15screen as g15screen
import subprocess
import time
import tailer
import os
import gtk
import gconf
import logging
Exemple #9
0
from gi.repository import Gtk as gtk
from PIL import Image
# from PIL import ImageMath
# from PIL import ImageOps

import gnome15.g15driver as g15driver
import gnome15.g15locale as g15locale
import gnome15.g15screen as g15screen
import gnome15.g15theme as g15theme
# import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo

_ = g15locale.get_translation("g15daemon-server", modfile=__file__).ugettext
logger = logging.getLogger(__name__)

# Plugin details - All of these must be provided
id = "g15daemon-server"
name = _("G15Daemon Compatibility")
description = _(
    "Starts a network server compatible with the g15daemon network protocol. \
This allows you to use g15daemon compatible scripts and applications on all \
models supported by Gnome15, including the  G19. Note, if you are using \
a real g15daemon server, you will configure this plugin to use a different \
port.")
author = "Brett Smith <*****@*****.**>"
copyright = _("Copyright (C)2010 Brett Smith")
site = "http://www.russo79.com/gnome15"
has_preferences = True
Exemple #10
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
from gnome15 import g15locale
_ = g15locale.get_translation("cal", modfile = __file__).gettext

import gi
gi.require_version('Gtk','3.0')
from gi.repository import Gtk

from gnome15 import g15theme
from gnome15 import g15driver
from gnome15.util import g15convert
from gnome15.util import g15scheduler
from gnome15.util import g15uigconf
from gnome15.util import g15gconf
from gnome15.util import g15cairo
from gnome15.util import g15icontools
from gnome15 import g15screen
from gnome15 import g15accounts
Exemple #11
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("voip-mumble", modfile = __file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.util.g15convert as g15convert
import ts3
from threading import Thread
from threading import Lock
from threading import RLock
from threading import Semaphore
import voip
import os
import base64
import socket
import errno

# Plugin details 
Exemple #12
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("stopwatch", modfile = __file__).ugettext

import gnome15.g15screen as g15screen 
import gnome15.g15theme as g15theme 
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15pythonlang as g15pythonlang
import gnome15.g15driver as g15driver
import gnome15.g15globals as g15globals
import gnome15.g15plugin as g15plugin
import gnome15.g15text as g15text
import datetime
import pango
import timer

import preferences as g15preferences
Exemple #13
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

from gnome15 import g15locale
_ = g15locale.get_translation("sensors", modfile=__file__).gettext

from gnome15 import g15driver
from gnome15 import g15plugin
from gnome15 import g15theme
from gnome15.util import g15gconf
from gnome15.util import g15svg
import os.path
import dbus
import sensors
from gi.repository import Gtk
from gi.repository import GConf
from gi.repository import GObject

import subprocess
from threading import Lock
Exemple #14
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("volume", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15icontools as g15icontools
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15devices as g15devices
import gnome15.g15actions as g15actions

import alsaaudio
import select
import os
import gtk
Exemple #15
0
import gnome15.g15driver as g15driver
import gnome15.g15locale as g15locale
import gnome15.g15screen as g15screen
import gnome15.g15theme as g15theme
import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gobject
import gtk
import logging
import os
import socket
import struct
import sys
_ = g15locale.get_translation("g15daemon-server", modfile = __file__).ugettext

logger = logging.getLogger(__name__)

# Plugin details - All of these must be provided
id="g15daemon-server"
name=_("G15Daemon Compatibility")
description=_("Starts a network server compatible with the g15daemon network protocol. \
This allows you to use g15daemon compatible scripts and applications on all \
models supported by Gnome15, including the  G19. Note, if you are using \
a real g15daemon server, you will configure this plugin to use a different \
port.")
author="Brett Smith <*****@*****.**>"
copyright=_("Copyright (C)2010 Brett Smith")
site="http://www.russo79.com/gnome15"
has_preferences=True
Exemple #16
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("notify-lcd", modfile=__file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15icontools as g15icontools
import gnome15.util.g15markup as g15markup
import gnome15.g15globals as g15globals
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15desktop as g15desktop
import gconf
import time
import dbus
import dbus.service
Exemple #17
0
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale

_ = g15locale.get_translation("panel", modfile=__file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.g15driver as g15driver
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import os
import gtk
import cairo

# Plugin details - All of these must be provided
id = "panel"
name = _("Panel")
description = _(
    "Adds a small area at the bottom of the screen for other plugins to add permanent components to."
)
Exemple #18
0
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
"""
Pommodoro timer plugin for Gnome15.
This plugin allows a user to apply the Pommodoro Technique to manage their time.
"""

from gnome15 import g15locale
_ = g15locale.get_translation("pommodoro", modfile=__file__).gettext

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk

from gnome15 import g15screen
from gnome15 import g15theme
from gnome15.util import g15scheduler
from gnome15.util import g15pythonlang
from gnome15.util import g15gconf
from gnome15.util import g15uigconf
from gnome15 import g15driver
from gnome15 import g15globals
from gnome15 import g15text
from gnome15 import g15plugin
Exemple #19
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("panel", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.g15driver as g15driver
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import os
import gtk
import cairo

# Plugin details - All of these must be provided
id="panel"
name=_("Panel")
description=_("Adds a small area at the bottom of the screen for other plugins to add permanent components to.")
author="Brett Smith <*****@*****.**>"
copyright=_("Copyright (C)2010 Brett Smith")
Exemple #20
0
import dbus.service
from gi.repository import Pango as pango

import gnome15.g15locale as g15locale
import gnome15.g15text as g15text
import gnome15.g15driver as g15driver
import gnome15.g15globals as g15globals
import gnome15.g15plugin as g15plugin
import gnome15.g15theme as g15theme
import gnome15.util.g15scheduler as g15scheduler
import gnome15.objgraph as objgraph
import gnome15.g15logging as g15logging

logger = logging.getLogger(__name__)
_ = g15locale.get_translation("debug", modfile=__file__).ugettext

id = "debug"
name = _("Debug")
description = _("Displays some information useful for debugging Gnome15.\n \
Also adds additional DBUS functions to inspect internals")
author = "Brett Smith <*****@*****.**>"
copyright = _("Copyright (C)2010 Brett Smith")
site = "http://www.russo79.com/gnome15"
has_preferences = False
single_instance = True
unsupported_models = [
    g15driver.MODEL_G110, g15driver.MODEL_G11, g15driver.MODEL_G930,
    g15driver.MODEL_G35
]
Exemple #21
0
# from threading import Lock
# from threading import RLock
# from threading import Semaphore

import ts3

import gnome15.g15locale as g15locale
import gnome15.g15driver as g15driver
import gnome15.util.g15icontools as g15icontools

try:
    import voip
except ImportError:
    from plugins import voip

_ = g15locale.get_translation("voip-teamspeak3", modfile=__file__).ugettext
logger = logging.getLogger(__name__)

# Plugin details 
id = "voip-teamspeak3"
name = _("Teamspeak3")
description = _("Provides integration with TeamSpeak3. Note, this plugin also\n\
requires the 'Voip' plugin as well which provides the user interface.")
author = "Brett Smith <*****@*****.**>"
copyright = _("Copyright (C)2011 Brett Smith")
site = "http://www.russo79.com/gnome15"
has_preferences = False
unsupported_models = [g15driver.MODEL_G110, g15driver.MODEL_G11, g15driver.MODEL_G930, g15driver.MODEL_G35]

# This plugin only supplies classes to the 'voip' plugin and so is never activated 
passive = True
Exemple #22
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("trafficstats", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.g15theme as g15theme
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15os as g15os
import gnome15.g15actions as g15actions
import gnome15.g15devices as g15devices
import gnome15.g15driver as g15driver
import gnome15.g15globals as g15globals
import gnome15.g15text as g15text
import gnome15.g15plugin as g15plugin
import time
import datetime
import logging
Exemple #23
0
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
"""
Manages the UI for editing a single macro. 
"""

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("gnome15").ugettext

import g15globals
import g15profile
import util.g15scheduler as g15scheduler
import util.g15gconf as g15gconf
import util.g15icontools as g15icontools
import g15uinput
import g15devices
import g15driver
import g15keyio
import g15actions
import pygtk
pygtk.require('2.0')
import gtk
import gobject
Exemple #24
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("screensaver", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.g15driver as g15driver
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15icontools as g15icontools
import gnome15.g15theme as g15theme
from threading import Timer
import gtk
import dbus
import logging
import os.path
logger = logging.getLogger(__name__)

# Plugin details - All of these must be provided
Exemple #25
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("gnome15-drivers").ugettext

import gnome15.g15driver as g15driver
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15globals as g15globals

import gconf

import os
import gtk.gdk
import gobject
import cairo

from PIL import Image
Exemple #26
0
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""
Classes and functions for recording X key presses using either raw X events 
or XTEST as well as injecting such keys
"""  

import gnome15.g15locale as g15locale
import gnome15.g15uinput as g15uinput
_ = g15locale.get_translation("macro-recorder", modfile = __file__).ugettext

import time
import logging
logger = logging.getLogger(__name__)
 
from Xlib import X, XK, display
from Xlib.ext import record
from Xlib.protocol import rq

from threading import Thread

local_dpy = display.Display()
record_dpy = display.Display()
        
def get_keysyms():
Exemple #27
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("cairo-clock", modfile = __file__).ugettext

import gnome15.g15screen as g15screen 
import gnome15.g15theme as g15theme 
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15pythonlang as g15pythonlang
import gnome15.g15driver as g15driver 
import gnome15.g15globals as g15globals
import gnome15.g15text as g15text
import gnome15.g15plugin as g15plugin
import datetime
from threading import Timer
import time
import gtk
Exemple #28
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("videoplayer", modfile = __file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.util.g15convert as g15convert
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15theme as g15theme
from threading import Timer
import gtk
import os
import select
import gobject
import tempfile
import subprocess
from threading import Lock
Exemple #29
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("background", modfile = __file__).ugettext

import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.g15driver as g15driver
import gnome15.g15screen as g15screen
import gnome15.g15profile as g15profile
import gnome15.g15desktop as g15desktop
import cairo
import gtk
import os
import logging
import gconf
from lxml import etree
Exemple #30
0
import gi
from gi.repository import Gtk as gtk

import gnome15.g15locale as g15locale
# import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15driver as g15driver
import gnome15.g15plugin as g15plugin
import time
import logging

logger = logging.getLogger(__name__)
_ = g15locale.get_translation("sysmon", modfile=__file__).ugettext

try:
    # import gtop
    # Requires the package gir1.2-gtop-2.0 to be installed
    gi.require_version("GTop", "2.0")
    from gi.repository import GTop as gtop
except Exception as e:
    logger.debug("Could not import gtop. Falling back to g15top", exc_info=e)
    # API compatible work around for Ubuntu 12.10
    import gnome15.g15top as gtop

id = "sysmon"
name = _("System Monitor")
description = _(
    "Display CPU, Memory, and Network statistics. Either a summary of each system's stats is displayed, or \
Exemple #31
0
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""
This module deals with handling raw key presses from the driver, and turning them
into Macros or actions. The different types of macro are handled accordingly, as well
as the repetition functions.

All key events are handled on a queue (one per instance of a key handler). 

"""

import gnome15.g15locale as g15locale

_ = g15locale.get_translation("gnome15").ugettext

import g15profile
import util.g15scheduler as g15scheduler
import g15driver
import g15actions
import g15uinput
import g15screen

import logging

logger = logging.getLogger(__name__)


class KeyState:
    """
Exemple #32
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("weather", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.util.g15convert as g15convert
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15pythonlang as g15pythonlang
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15driver as g15driver
import gnome15.g15globals as g15globals
import gnome15.g15text as g15text
import gnome15.g15plugin as g15plugin
import gtk
import os
Exemple #33
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("screensaver", modfile=__file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.g15driver as g15driver
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15icontools as g15icontools
import gnome15.g15theme as g15theme
from threading import Timer
import gtk
import dbus
import logging
import os.path
logger = logging.getLogger(__name__)

# Plugin details - All of these must be provided
Exemple #34
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

from gnome15 import g15locale
_ = g15locale.get_translation("macro-recorder", modfile = __file__).gettext

import gi
gi.require_version('Gtk','3.0')
from gi.repository import Gtk

from gnome15 import g15screen
from gnome15 import g15theme
from gnome15 import g15devices
from gnome15.util import g15icontools
from gnome15 import g15driver
from gnome15 import g15profile
from gnome15 import g15actions
import datetime
from threading import Timer
import os
Exemple #35
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("lcdshot", modfile = __file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.g15devices as g15devices
import gnome15.g15globals as g15globals
import gnome15.g15actions as g15actions
import os.path
import gtk
import gobject
import gnome15.util.g15convert as g15convert
import gnome15.g15notify as g15notify
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15os as g15os
import gnome15.util.g15cairo as g15cairo
import subprocess
Exemple #36
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("tails", modfile = __file__).ugettext

import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.util.g15markup as g15markup
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15screen as g15screen
import subprocess
import time
import tailer
import os
import gtk
import gconf
import logging
Exemple #37
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("macros", modfile=__file__).ugettext

import gnome15.g15profile as g15profile
import gnome15.g15driver as g15driver
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.g15globals as g15globals
import gnome15.g15theme as g15theme
import gnome15.g15screen as g15screen
import gnome15.g15plugin as g15plugin
import gtk
import os
import logging
import time
logger = logging.getLogger(__name__)
Exemple #38
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("background", modfile=__file__).ugettext

import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.g15driver as g15driver
import gnome15.g15screen as g15screen
import gnome15.g15profile as g15profile
import gnome15.g15desktop as g15desktop
import cairo
import gtk
import os
import logging
import gconf
from lxml import etree
Exemple #39
0
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

from gnome15 import g15locale

_ = g15locale.get_translation("weather", modfile=__file__).gettext

import gi

gi.require_version('Gtk', '3.0')
from gi.repository import Pango
from gi.repository import Gtk

from gnome15 import g15screen
from gnome15.util import g15convert
from gnome15.util import g15scheduler
from gnome15.util import g15uigconf
from gnome15.util import g15pythonlang
from gnome15.util import g15gconf
from gnome15.util import g15cairo
from gnome15.util import g15icontools
Exemple #40
0
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import logging
import os

import gnome15.g15locale as g15locale
import gnome15.g15driver as g15driver
import gnome15.g15theme as g15theme
import gnome15.g15plugin as g15plugin
import gnome15.g15actions as g15actions
import gnome15.g15devices as g15devices
import gnome15.g15profile as g15profile

logger = logging.getLogger(__name__)
_ = g15locale.get_translation("keyhelp", modfile=__file__).ugettext

# Actions
SHOW_KEY_HELP = 'key-help'

# Register the action with all supported models
g15devices.g15_action_keys[SHOW_KEY_HELP] = g15actions.ActionBinding(
    SHOW_KEY_HELP, [g15driver.G_KEY_M1], g15driver.KEY_STATE_HELD)
g15devices.z10_action_keys[SHOW_KEY_HELP] = g15actions.ActionBinding(
    SHOW_KEY_HELP, [g15driver.G_KEY_L1], g15driver.KEY_STATE_HELD)
g15devices.g19_action_keys[SHOW_KEY_HELP] = g15actions.ActionBinding(
    SHOW_KEY_HELP, [g15driver.G_KEY_M1], g15driver.KEY_STATE_HELD)

# Plugin details - All of these must be provided
id = "keyhelp"
name = _("Key Help Screen")
Exemple #41
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("voip-teamspeak3", modfile = __file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.util.g15icontools as g15icontools
import ts3
from threading import Thread
from threading import Lock
from threading import RLock
from threading import Semaphore
import voip
import os
import base64
import socket
import errno
import re
Exemple #42
0
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
"""
Calendar backend that retrieves event data from Evolution
"""
 
import gnome15.g15locale as g15locale
import gnome15.g15accounts as g15accounts
_ = g15locale.get_translation("cal-evolution", modfile = __file__).ugettext
import gtk
import urllib
import vobject
import datetime
import dateutil
import sys, os, os.path
import re
import cal
import xdg.BaseDirectory
import logging
logger = logging.getLogger(__name__)
 
"""
Plugin definition
"""
Exemple #43
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("indicator-messages", modfile=__file__).ugettext

import gnome15.g15globals as g15globals
import gnome15.g15screen as g15screen
import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15plugin as g15plugin
import gobject
import time
import dbus
import os
Exemple #44
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("sensors", modfile = __file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.g15plugin as g15plugin
import gnome15.g15theme as g15theme
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15svg as g15svg
import os.path
import dbus
import sensors
import gtk
import gconf
import gobject

import subprocess
from threading import Lock
Exemple #45
0
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale

_ = g15locale.get_translation("cal-evolution", modfile=__file__).ugettext

import gnome15.g15accounts as g15accounts
import gnome15.g15globals as g15globals
import cal
import gtk
import os
import datetime
import calendar
import gdata.calendar.data
import gdata.calendar.client
import gdata.acl.data
import gdata.service
import iso8601
import subprocess
import socket
Exemple #46
0
import gnome15.g15locale as g15locale
import gnome15.g15screen as g15screen
import gnome15.g15theme as g15theme
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15os as g15os
# import gnome15.g15actions as g15actions
# import gnome15.g15devices as g15devices
import gnome15.g15driver as g15driver
# import gnome15.g15globals as g15globals
# import gnome15.g15text as g15text
import gnome15.g15plugin as g15plugin

logger = logging.getLogger(__name__)
_ = g15locale.get_translation("trafficstats", modfile=__file__).ugettext

try:
    gi.require_version("GTop", "2.0")
    from gi.repository import GTop as gtop
except Exception as e:
    logger.debug("Could not import gtop. Falling back to g15top", exc_info=e)
    # API compatible work around for Ubuntu 12.10
    import gnome15.g15top as gtop

# Plugin details - All of these must be provided
id = "trafficstats"
name = _("Traffic Stats")
description = _(
    "Displays network traffic stats. Either of actual session or from vnstat.")
author = "NoXPhasma <*****@*****.**>"
Exemple #47
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("keyhelp", modfile = __file__).ugettext

import gnome15.g15driver as g15driver
import gnome15.g15theme as g15theme
import gnome15.g15plugin as g15plugin
import gnome15.g15actions as g15actions
import gnome15.g15devices as g15devices
import gnome15.g15profile as g15profile
import logging
import os
logger = logging.getLogger(__name__)

# Actions
SHOW_KEY_HELP = 'key-help'

# Register the action with all supported models
Exemple #48
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("menu", modfile = __file__).ugettext

import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15screen as g15screen
import gnome15.g15plugin as g15plugin
from gnome15.util.g15pythonlang import find
import sys
import cairo
import base64
from cStringIO import StringIO
import logging
logger = logging.getLogger(__name__)

# Plugin details - All of these must be provided
id="menu"
Exemple #49
0
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

from gnome15 import g15locale

_ = g15locale.get_translation("videoplayer", modfile=__file__).gettext

import gi

gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from gi.repository import GObject
from gi.repository import Gio

gi.require_version('Gst', '1.0')
from gi.repository import Gst

from gnome15 import g15driver
from gnome15.util import g15convert
from gnome15.util import g15scheduler
from gnome15.util import g15gconf
Exemple #50
0
import logging
import os
import re

import gnome15.g15locale as g15locale
import gnome15.g15driver as g15driver
import gnome15.g15theme as g15theme
import gnome15.g15plugin as g15plugin
import gnome15.g15devices as g15devices
import gnome15.g15actions as g15actions
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15pythonlang as g15pythonlang
import gnome15.util.g15icontools as g15icontools

logger = logging.getLogger(__name__)
_ = g15locale.get_translation("profiles", modfile=__file__).ugettext

ICONS = [
    "display", "gnome-display-properties", "system-config-display",
    "video-display", "xfce4-display", "display-capplet"
]

# Custom actions
SELECT_PROFILE = "select-profile"

# Register the action with all supported models
g15devices.g15_action_keys[SELECT_PROFILE] = g15actions.ActionBinding(
    SELECT_PROFILE, [g15driver.G_KEY_L1], g15driver.KEY_STATE_HELD)
g15devices.z10_action_keys[SELECT_PROFILE] = g15actions.ActionBinding(
    SELECT_PROFILE, [g15driver.G_KEY_L1], g15driver.KEY_STATE_HELD)
g15devices.g19_action_keys[SELECT_PROFILE] = g15actions.ActionBinding(
Exemple #51
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("notify-lcd", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15icontools as g15icontools
import gnome15.util.g15markup as g15markup
import gnome15.g15globals as g15globals
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15desktop as g15desktop
import gconf
import time
import dbus
import dbus.service
Exemple #52
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("sysmon", modfile = __file__).ugettext

import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15driver as g15driver
import gnome15.g15plugin as g15plugin
import time
import logging
logger=logging.getLogger(__name__)
try:
    import gtop
except Exception as e:
    logger.debug("Could not import gtop. Falling back to g15top", exc_info = e)
Exemple #53
0
# from threading import Thread
# from threading import Lock
# from threading import RLock
# from threading import Semaphore

# import ts3
try:
    import voip
except ImportError:
    from plugins import voip

import gnome15.g15locale as g15locale
import gnome15.g15driver as g15driver
# import gnome15.util.g15convert as g15convert

_ = g15locale.get_translation("voip-mumble", modfile=__file__).ugettext

# Plugin details
id = "voip-mumble"
name = _("Mumble")
description = _("Provides integration with Mumble. Note, this plugin also\n\
requires the 'Voip' plugin as well which provides the user interface.")
author = "Brett Smith <*****@*****.**>"
copyright = _("Copyright (C)2011 Brett Smith")
site = "http://www.russo79.com/gnome15"
has_preferences = False
unsupported_models = [
    g15driver.MODEL_G110, g15driver.MODEL_G11, g15driver.MODEL_G930,
    g15driver.MODEL_G35
]
Exemple #54
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("profiles", modfile = __file__).ugettext

import gnome15.g15profile as g15profile
import gnome15.g15driver as g15driver
import gnome15.g15theme as g15theme
import gnome15.g15plugin as g15plugin
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15devices as g15devices
import gnome15.g15actions as g15actions
from gnome15.util.g15pythonlang import find
import os
import logging
logger = logging.getLogger(__name__)

# Custom actions
Exemple #55
0
from gi.repository import GObject as gobject
from gi.repository import Gtk as gtk
import keyring
from lxml import etree
import pyinotify

import g15globals
import gnome15.g15locale as g15locale
import util.g15scheduler as g15scheduler
import util.g15gconf as g15gconf
import util.g15os as g15os
import util.g15pythonlang as g15pythonlang

logger = logging.getLogger(__name__)
_ = g15locale.get_translation("gnome15-drivers").ugettext
"""
Functions
"""
"""
Configure monitoring of account files. This allows plugins to get notified
when accounts they are using change
"""
account_listeners = []

watch_manager = pyinotify.WatchManager()
mask = pyinotify.IN_DELETE | pyinotify.IN_MODIFY | pyinotify.IN_CREATE | pyinotify.IN_ATTRIB  # watched events


class EventHandler(pyinotify.ProcessEvent):
    @staticmethod
Exemple #56
0
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
import gnome15.g15locale as g15locale
_ = g15locale.get_translation("indicator-messages", modfile = __file__).ugettext

import gnome15.g15globals as g15globals
import gnome15.g15screen as g15screen
import gnome15.util.g15convert as g15convert
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15icontools as g15icontools
import gnome15.g15theme as g15theme
import gnome15.g15driver as g15driver
import gnome15.g15plugin as g15plugin
import gobject
import time
import dbus
import os
Exemple #57
0
from gi.repository import Rsvg as rsvg
import xdg.BaseDirectory

import gnome15.g15locale as g15locale
import gnome15.g15screen as g15screen
# import gnome15.g15theme as g15theme
import gnome15.util.g15uigconf as g15uigconf
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15pythonlang as g15pythonlang
import gnome15.g15driver as g15driver
import gnome15.g15globals as g15globals
import gnome15.g15text as g15text
import gnome15.g15plugin as g15plugin

_ = g15locale.get_translation("cairo-clock", modfile=__file__).ugettext

# Plugin details - All of these must be provided
id = "cairo-clock"
name = _("Cairo Clock")
description = _("Port of MacSlow's SVG clock to Gnome15. Standard cairo-clock \
themes may be used on a G19, however, for all other models \
you must use specially crafted themes (using GIF files instead of SVG). \
One default theme for low resolution screens is provided.")
author = "Brett Smith <*****@*****.**>"
copyright = _("Copyright (C)2010 Brett Smith")
site = "http://www.russo79.com/gnome15"
has_preferences = True
default_enabled = True
unsupported_models = [
    g15driver.MODEL_G110, g15driver.MODEL_G11, g15driver.MODEL_G930,
Exemple #58
0
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""
Pommodoro timer plugin for Gnome15.
This plugin allows a user to apply the Pommodoro Technique to manage their time.
"""

import gnome15.g15locale as g15locale
_ = g15locale.get_translation("pommodoro", modfile = __file__).ugettext

import gnome15.g15screen as g15screen
import gnome15.g15theme as g15theme
import gnome15.util.g15scheduler as g15scheduler
import gnome15.util.g15pythonlang as g15pythonlang
import gnome15.util.g15gconf as g15gconf
import gnome15.util.g15uigconf as g15uigconf
import gnome15.g15driver as g15driver
import gnome15.g15globals as g15globals
import gnome15.g15text as g15text
import gnome15.g15plugin as g15plugin
import gnome15.util.g15cairo as g15cairo
import gnome15.util.g15scheduler as g15scheduler
import datetime
import gtk