├── AUTHORS ├── NEWS ├── TODO ├── indicator-sensors ├── marshallers.list ├── Makefile.am ├── is-fan-sensor.c ├── is-notify.h ├── is-log.h ├── is-fan-sensor.h ├── is-sensor-dialog.h ├── is-preferences-dialog.h ├── is-log.c ├── is-temperature-sensor.h ├── is-manager.h ├── is-application.h ├── is-store.h ├── is-indicator.h ├── is-sensor.h ├── is-notify.c ├── indicator-sensors.c └── is-temperature-sensor.c ├── .dir-locals.el ├── screenshot.png ├── icons ├── hicolor │ ├── 16x16 │ │ └── apps │ │ │ └── indicator-sensors.png │ ├── 22x22 │ │ ├── status │ │ │ ├── high-value-icon.png │ │ │ ├── low-value-icon.png │ │ │ ├── normal-value-icon.png │ │ │ ├── very-high-value-icon.png │ │ │ └── very-low-value-icon.png │ │ └── devices │ │ │ ├── indicator-sensors-case.png │ │ │ ├── indicator-sensors-chip.png │ │ │ ├── indicator-sensors-cpu.png │ │ │ ├── indicator-sensors-disk.png │ │ │ ├── indicator-sensors-fan.png │ │ │ ├── indicator-sensors-gpu.png │ │ │ ├── indicator-sensors-battery.png │ │ │ ├── indicator-sensors-memory.png │ │ │ └── indicator-sensors-no-icon.png │ ├── 24x24 │ │ └── apps │ │ │ └── indicator-sensors.png │ ├── 32x32 │ │ └── apps │ │ │ └── indicator-sensors.png │ ├── 48x48 │ │ └── apps │ │ │ └── indicator-sensors.png │ └── 256x256 │ │ └── apps │ │ └── indicator-sensors.png └── Makefile.am ├── ChangeLog ├── plugins ├── dbus │ ├── is-search-provider.ini │ ├── dbus.plugin │ ├── is-active-sensor.xml │ ├── shell-search-provider-dbus-interfaces.xml │ ├── Makefile.am │ └── is-dbus-plugin.h ├── fake │ ├── fake.plugin │ ├── Makefile.am │ ├── is-fake-plugin.h │ └── is-fake-plugin.c ├── Makefile.am ├── nvidia │ ├── nvidia.plugin │ ├── Makefile.am │ └── is-nvidia-plugin.h ├── dynamic │ ├── dynamic.plugin │ ├── Makefile.am │ └── is-dynamic-plugin.h ├── max │ ├── max.plugin │ ├── Makefile.am │ └── is-max-plugin.h ├── udisks │ ├── udisks.plugin │ ├── Makefile.am │ └── is-udisks-plugin.h ├── aticonfig │ ├── aticonfig.plugin │ ├── Makefile.am │ └── is-aticonfig-plugin.h ├── udisks2 │ ├── udisks2.plugin │ ├── Makefile.am │ └── is-udisks2-plugin.h └── libsensors │ ├── libsensors.plugin │ ├── Makefile.am │ └── is-libsensors-plugin.h ├── po ├── LINGUAS ├── POTFILES.in ├── eo.po ├── sr.po ├── ca.po ├── uk.po ├── ar.po ├── zh_CN.po ├── de.po ├── he.po └── en_GB.po ├── data ├── indicator-sensors.desktop.in ├── Makefile.am ├── indicator-sensors.appdata.xml.in └── indicator-sensors.gschema.xml.in.in ├── autogen.sh ├── Makefile.am ├── .gitignore ├── .cquery ├── README.md ├── snap └── snapcraft.yaml └── configure.ac /AUTHORS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /indicator-sensors/marshallers.list: -------------------------------------------------------------------------------- 1 | VOID:OBJECT,INT 2 | -------------------------------------------------------------------------------- /.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((flycheck-cstyle-config . "~/.cstyle.gtk")))) 2 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/screenshot.png -------------------------------------------------------------------------------- /icons/hicolor/16x16/apps/indicator-sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/16x16/apps/indicator-sensors.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/status/high-value-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/status/high-value-icon.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/status/low-value-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/status/low-value-icon.png -------------------------------------------------------------------------------- /icons/hicolor/24x24/apps/indicator-sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/24x24/apps/indicator-sensors.png -------------------------------------------------------------------------------- /icons/hicolor/32x32/apps/indicator-sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/32x32/apps/indicator-sensors.png -------------------------------------------------------------------------------- /icons/hicolor/48x48/apps/indicator-sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/48x48/apps/indicator-sensors.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/status/normal-value-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/status/normal-value-icon.png -------------------------------------------------------------------------------- /icons/hicolor/256x256/apps/indicator-sensors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/256x256/apps/indicator-sensors.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/status/very-high-value-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/status/very-high-value-icon.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/status/very-low-value-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/status/very-low-value-icon.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-case.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-chip.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-cpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-cpu.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-disk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-disk.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-fan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-fan.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-gpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-gpu.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-battery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-battery.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-memory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-memory.png -------------------------------------------------------------------------------- /icons/hicolor/22x22/devices/indicator-sensors-no-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexmurray/indicator-sensors/HEAD/icons/hicolor/22x22/devices/indicator-sensors-no-icon.png -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | 2011-05-06 Alex Murray 2 | 3 | * *: The ChangeLog is auto-generated from git when releasing. If you 4 | are seeing this, use 'git log' for a detailed list of changes. 5 | 6 | -------------------------------------------------------------------------------- /plugins/dbus/is-search-provider.ini: -------------------------------------------------------------------------------- 1 | [Shell Search Provider] 2 | DesktopId=indicator-sensors.desktop 3 | BusName=com.github.alexmurray.IndicatorSensors 4 | ObjectPath=/com/github/alexmurray/IndicatorSensors/SearchProvider 5 | Version=2 6 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | # please keep this list sorted alphabetically 2 | ar 3 | ca 4 | cs 5 | de 6 | en_GB 7 | eo 8 | es 9 | fr 10 | gl 11 | he 12 | hr 13 | hu 14 | it 15 | ko 16 | lt 17 | nl 18 | pl 19 | ro 20 | ru 21 | sk 22 | sr 23 | tr 24 | uk 25 | zh_CN 26 | -------------------------------------------------------------------------------- /plugins/fake/fake.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libfake 3 | IAge=2 4 | Name=Fake Sensors 5 | Description=Provides fake sensors 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2014 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/dbus/dbus.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libdbus 3 | IAge=2 4 | Name=DBus 5 | Description=Provides sensor information over DBus 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2012 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = aticonfig dbus dynamic max 2 | 3 | if LIBSENSORS 4 | SUBDIRS += libsensors 5 | endif 6 | 7 | if NVIDIA 8 | SUBDIRS += nvidia 9 | endif 10 | 11 | if UDISKS 12 | SUBDIRS += udisks 13 | endif 14 | 15 | if UDISKS2 16 | SUBDIRS += udisks2 17 | endif 18 | 19 | if FAKE 20 | SUBDIRS += fake 21 | endif 22 | -------------------------------------------------------------------------------- /plugins/nvidia/nvidia.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libnvidia 3 | IAge=2 4 | Name=NVidia 5 | Description=Provides sensors from NVidia GPUs 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2011-2019 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/dynamic/dynamic.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libdynamic 3 | IAge=2 4 | Name=Dynamic 5 | Description=Provides dynamic monitoring of sensors 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2014 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/max/max.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libmax 3 | IAge=2 4 | Name=Max 5 | Description=Provides a virtual sensor which is the maximum of all active sensors 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2014 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/udisks/udisks.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libudisks 3 | IAge=2 4 | Name=udisks 5 | Description=Provides disk temperature monitoring via udisks 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2011-2019 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/aticonfig/aticonfig.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libaticonfig 3 | IAge=2 4 | Name=ATIConfig 5 | Description=Provides sensors from ATI GPUs via aticonfig 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2011-2019 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/udisks2/udisks2.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=libudisks2 3 | IAge=2 4 | Name=udisks2 5 | Description=Provides disk temperature monitoring via udisks2 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2011-2019 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /plugins/libsensors/libsensors.plugin: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=liblibsensors 3 | IAge=2 4 | Name=LM-Sensors (libsensors) 5 | Description=Provides sensors from libsensors (lm-sensors) 6 | Authors=Alex Murray 7 | Copyright=Copyright © 2011-2019 Alex Murray 8 | Website=http://github.com/alexmurray/indicator-sensors 9 | Help=http://github.com/alexmurray/indicator-sensors -------------------------------------------------------------------------------- /data/indicator-sensors.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | _Name=Hardware Sensors Indicator 3 | _GenericName=Hardware Sensors Indicator 4 | _Comment=An indicator for Unity which displays hardware sensor readings 5 | Exec=indicator-sensors 6 | Icon=indicator-sensors 7 | StartupNotify=true 8 | Terminal=false 9 | Type=Application 10 | Categories=System; 11 | X-GNOME-UsesNotifications=true 12 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Run this to generate all the initial makefiles, etc. 3 | 4 | srcdir=`dirname $0` 5 | test -z "$srcdir" && srcdir=. 6 | 7 | PKG_NAME="indicator-sensors" 8 | 9 | (test -f $srcdir/configure.ac) || { 10 | echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" 11 | echo " top-level $PKG_NAME directory" 12 | exit 1 13 | } 14 | 15 | which gnome-autogen.sh || { 16 | echo -n "ERROR: gnome-autogen.sh not found in path: " 17 | echo "Please install gnome-common before running this script" 18 | exit 1 19 | } 20 | 21 | USE_GNOME2_MACROS=1 . gnome-autogen.sh 22 | -------------------------------------------------------------------------------- /plugins/fake/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/fake 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(DEBUG_CFLAGS) 10 | 11 | plugin_LTLIBRARIES = libfake.la 12 | 13 | libfake_la_SOURCES = \ 14 | is-fake-plugin.h \ 15 | is-fake-plugin.c 16 | 17 | libfake_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 18 | libfake_la_LIBADD = \ 19 | $(GLIB_LIBS) \ 20 | $(GTK_LIBS) \ 21 | $(AYATANA_APPINDICATOR_LIBS) \ 22 | $(LIBPEAS_LIBS) 23 | 24 | plugin_DATA = fake.plugin 25 | 26 | EXTRA_DIST = $(plugin_DATA) 27 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = data icons plugins po indicator-sensors 2 | 3 | ACLOCAL_AMFLAGS = -I m4 4 | 5 | EXTRA_DIST = config.rpath ChangeLog 6 | 7 | dist-hook: 8 | @if test -d "$(srcdir)/.git"; \ 9 | then \ 10 | echo Creating ChangeLog && \ 11 | ( cd "$(top_srcdir)" && \ 12 | echo '# Generated by Makefile. Do not edit.'; echo; \ 13 | $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \ 14 | && mv -f ChangeLog.tmp $(distdir)/ChangeLog \ 15 | || ( rm -f ChangeLog.tmp ; \ 16 | echo Failed to generate ChangeLog >&2 ); \ 17 | else \ 18 | echo A git clone is required to generate a ChangeLog >&2; \ 19 | fi 20 | -------------------------------------------------------------------------------- /plugins/max/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/max 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(MAX_CFLAGS) \ 10 | $(DEBUG_CFLAGS) 11 | 12 | plugin_LTLIBRARIES = libmax.la 13 | 14 | libmax_la_SOURCES = \ 15 | is-max-plugin.h \ 16 | is-max-plugin.c 17 | 18 | libmax_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 19 | libmax_la_LIBADD = \ 20 | $(GLIB_LIBS) \ 21 | $(GTK_LIBS) \ 22 | $(AYATANA_APPINDICATOR_LIBS) \ 23 | $(LIBPEAS_LIBS) \ 24 | $(MAX_LIBS) 25 | 26 | plugin_DATA = max.plugin 27 | 28 | EXTRA_DIST = $(plugin_DATA) 29 | -------------------------------------------------------------------------------- /plugins/nvidia/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/nvidia 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(NVIDIA_CFLAGS) \ 10 | $(DEBUG_CFLAGS) 11 | 12 | plugin_LTLIBRARIES = libnvidia.la 13 | 14 | libnvidia_la_SOURCES = \ 15 | is-nvidia-plugin.h \ 16 | is-nvidia-plugin.c 17 | 18 | libnvidia_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 19 | libnvidia_la_LIBADD = \ 20 | $(GLIB_LIBS) \ 21 | $(GTK_LIBS) \ 22 | $(AYATANA_APPINDICATOR_LIBS) \ 23 | $(LIBPEAS_LIBS) \ 24 | $(NVIDIA_LIBS) 25 | 26 | plugin_DATA = nvidia.plugin 27 | 28 | EXTRA_DIST = $(plugin_DATA) 29 | -------------------------------------------------------------------------------- /plugins/dynamic/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/dynamic 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(DYNAMIC_CFLAGS) \ 10 | $(DEBUG_CFLAGS) 11 | 12 | plugin_LTLIBRARIES = libdynamic.la 13 | 14 | libdynamic_la_SOURCES = \ 15 | is-dynamic-plugin.h \ 16 | is-dynamic-plugin.c 17 | 18 | libdynamic_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 19 | libdynamic_la_LIBADD = \ 20 | $(GLIB_LIBS) \ 21 | $(GTK_LIBS) \ 22 | $(AYATANA_APPINDICATOR_LIBS) \ 23 | $(LIBPEAS_LIBS) \ 24 | $(DYNAMIC_LIBS) 25 | 26 | plugin_DATA = dynamic.plugin 27 | 28 | EXTRA_DIST = $(plugin_DATA) 29 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | data/indicator-sensors.gschema.xml.in 2 | data/indicator-sensors.gschema.xml.in.in 3 | data/indicator-sensors.desktop.in 4 | data/indicator-sensors.appdata.xml.in 5 | indicator-sensors/indicator-sensors.c 6 | indicator-sensors/is-application.c 7 | indicator-sensors/is-fan-sensor.c 8 | indicator-sensors/is-indicator.c 9 | indicator-sensors/is-manager.c 10 | indicator-sensors/is-preferences-dialog.c 11 | indicator-sensors/is-sensor.c 12 | indicator-sensors/is-sensor-dialog.c 13 | plugins/aticonfig/is-aticonfig-plugin.c 14 | plugins/fake/is-fake-plugin.c 15 | plugins/libsensors/is-libsensors-plugin.c 16 | plugins/nvidia/is-nvidia-plugin.c 17 | plugins/udisks/is-udisks-plugin.c 18 | plugins/udisks2/is-udisks2-plugin.c 19 | -------------------------------------------------------------------------------- /plugins/aticonfig/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/aticonfig 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(ATICONFIG_CFLAGS) \ 10 | $(DEBUG_CFLAGS) 11 | 12 | plugin_LTLIBRARIES = libaticonfig.la 13 | 14 | libaticonfig_la_SOURCES = \ 15 | is-aticonfig-plugin.h \ 16 | is-aticonfig-plugin.c 17 | 18 | libaticonfig_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 19 | libaticonfig_la_LIBADD = \ 20 | $(GLIB_LIBS) \ 21 | $(GTK_LIBS) \ 22 | $(AYATANA_APPINDICATOR_LIBS) \ 23 | $(LIBPEAS_LIBS) \ 24 | $(ATICONFIG_LIBS) 25 | 26 | plugin_DATA = aticonfig.plugin 27 | 28 | EXTRA_DIST = $(plugin_DATA) 29 | -------------------------------------------------------------------------------- /plugins/libsensors/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/libsensors 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(LIBSENSORS_CFLAGS) \ 10 | $(DEBUG_CFLAGS) 11 | 12 | plugin_LTLIBRARIES = liblibsensors.la 13 | 14 | liblibsensors_la_SOURCES = \ 15 | is-libsensors-plugin.h \ 16 | is-libsensors-plugin.c 17 | 18 | liblibsensors_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 19 | liblibsensors_la_LIBADD = \ 20 | $(GLIB_LIBS) \ 21 | $(GTK_LIBS) \ 22 | $(AYATANA_APPINDICATOR_LIBS) \ 23 | $(LIBPEAS_LIBS) \ 24 | $(LIBSENSORS_LIBS) 25 | 26 | plugin_DATA = libsensors.plugin 27 | 28 | EXTRA_DIST = $(plugin_DATA) 29 | -------------------------------------------------------------------------------- /plugins/udisks/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/udisks 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(GIO_CFLAGS) \ 10 | $(LIBATASMART_CFLAGS) \ 11 | $(DEBUG_CFLAGS) 12 | 13 | plugin_LTLIBRARIES = libudisks.la 14 | 15 | libudisks_la_SOURCES = \ 16 | is-udisks-plugin.h \ 17 | is-udisks-plugin.c 18 | 19 | libudisks_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 20 | libudisks_la_LIBADD = \ 21 | $(GLIB_LIBS) \ 22 | $(GTK_LIBS) \ 23 | $(AYATANA_APPINDICATOR_LIBS) \ 24 | $(LIBPEAS_LIBS) \ 25 | $(GIO_LIBS) \ 26 | $(LIBATASMART_LIBS) 27 | 28 | plugin_DATA = udisks.plugin 29 | 30 | EXTRA_DIST = $(plugin_DATA) 31 | 32 | -------------------------------------------------------------------------------- /plugins/udisks2/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/udisks2 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(GIO_CFLAGS) \ 10 | $(LIBUDISKS2_CFLAGS) \ 11 | $(DEBUG_CFLAGS) 12 | 13 | plugin_LTLIBRARIES = libudisks2.la 14 | 15 | libudisks2_la_SOURCES = \ 16 | is-udisks2-plugin.h \ 17 | is-udisks2-plugin.c 18 | 19 | libudisks2_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 20 | libudisks2_la_LIBADD = \ 21 | $(GLIB_LIBS) \ 22 | $(GTK_LIBS) \ 23 | $(AYATANA_APPINDICATOR_LIBS) \ 24 | $(LIBPEAS_LIBS) \ 25 | $(GIO_LIBS) \ 26 | $(LIBUDISKS2_LIBS) 27 | 28 | plugin_DATA = udisks2.plugin 29 | 30 | EXTRA_DIST = $(plugin_DATA) 31 | -------------------------------------------------------------------------------- /data/Makefile.am: -------------------------------------------------------------------------------- 1 | desktopdir = $(datadir)/applications 2 | desktop_in_files = indicator-sensors.desktop.in 3 | desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) 4 | 5 | @INTLTOOL_XML_NOMERGE_RULE@ 6 | appdatadir = $(datadir)/metainfo 7 | dist_appdata_DATA = $(appdata_in_files:.xml.in=.xml) 8 | appdata_in_files = indicator-sensors.appdata.xml.in 9 | 10 | @INTLTOOL_DESKTOP_RULE@ 11 | 12 | gsettings_SCHEMAS = indicator-sensors.gschema.xml 13 | @INTLTOOL_XML_NOMERGE_RULE@ 14 | 15 | @GSETTINGS_RULES@ 16 | 17 | CLEANFILES = \ 18 | $(gsettings_SCHEMAS) \ 19 | indicator-sensors.appdata.xml 20 | 21 | DISTCLEANFILES = $(desktop_DATA) \ 22 | $(gsettings_SCHEMAS) 23 | 24 | MAINTAINERCLEANFILES = $(gsettings_SCHEMAS:.xml=.valid) 25 | 26 | EXTRA_DIST = $(desktop_in_files) \ 27 | $(appdata_in_files) \ 28 | indicator-sensors.gschema.xml.in 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.swp 3 | *# 4 | indicator-sensors*.tar.* 5 | *.lo 6 | *.la 7 | *.so 8 | *.snap 9 | .deps* 10 | .libs* 11 | ABOUT-NLS 12 | COPYING 13 | INSTALL 14 | Makefile 15 | Makefile.in 16 | aclocal.m4 17 | autom4te.cache* 18 | config.* 19 | configure 20 | data/indicator-sensors.desktop 21 | depcomp 22 | gnome-doc-utils.make 23 | indicator-sensors/*.o 24 | indicator-sensors/config.h* 25 | indicator-sensors/indicator-sensors 26 | indicator-sensors/marshallers.[ch] 27 | indicator-sensors/stamp-h1 28 | install-sh 29 | libtool 30 | ltmain.sh 31 | missing 32 | mkinstalldirs 33 | data/indicator-sensors.gschema.valid 34 | data/indicator-sensors.gschema.xml 35 | data/indicator-sensors.gschema.xml.in 36 | data/indicator-sensors.appdata.xml 37 | m4/* 38 | plugins/dbus/is-active-sensor-generated* 39 | plugins/dbus/is-org-gnome-shell-search-provider-generated* 40 | po/.intltool-merge-cache 41 | po/*.gmo 42 | po/*.sed 43 | po/*.sin 44 | po/*.header 45 | po/ChangeLog 46 | po/Makefile.in.in 47 | po/Makevars* 48 | po/POTFILES 49 | po/Rules-quot 50 | po/stamp-it 51 | GPATH 52 | GRTAGS 53 | GSYMS 54 | GTAGS 55 | -------------------------------------------------------------------------------- /.cquery: -------------------------------------------------------------------------------- 1 | %clang 2 | -I/usr/include/libappindicator3-0.1 3 | -I/usr/include/libdbusmenu-glib-0.4 4 | -I/usr/include/gtk-3.0 5 | -I/usr/include/at-spi2-atk/2.0 6 | -I/usr/include/at-spi-2.0 7 | -I/usr/include/dbus-1.0 8 | -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include 9 | -I/usr/include/gtk-3.0 10 | -I/usr/include/gio-unix-2.0/ 11 | -I/usr/include/mirclient 12 | -I/usr/include/mircommon 13 | -I/usr/include/cairo 14 | -I/usr/include/pango-1.0 15 | -I/usr/include/harfbuzz 16 | -I/usr/include/pango-1.0 17 | -I/usr/include/atk-1.0 18 | -I/usr/include/cairo 19 | -I/usr/include/pixman-1 20 | -I/usr/include/freetype2 21 | -I/usr/include/libpng12 22 | -I/usr/include/gdk-pixbuf-2.0 23 | -I/usr/include/libpng12 24 | -I/usr/include/glib-2.0 25 | -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 26 | -I/usr/include/libpeas-1.0 27 | -I/usr/include/gobject-introspection-1.0 28 | -I/usr/include/udisks2 29 | -I./ 30 | -I./indicator-sensors 31 | -I./plugins/aticonfig 32 | -I./plugins/dbus 33 | -I./plugins/dynamic 34 | -I./plugins/fake 35 | -I./plugins/libsensors 36 | -I./plugins/max 37 | -I./plugins/nvidia 38 | -I./plugins/udisks 39 | -I./plugins/udisks2 40 | -DHAVE_CONFIG_H 41 | 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hardware Sensors Indicator (indicator-sensors) 2 | 3 | [![License GPL 3](https://img.shields.io/badge/license-GPL_3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.txt) 4 | [![Snap Status](https://build.snapcraft.io/badge/alexmurray/indicator-sensors.svg)](https://build.snapcraft.io/user/alexmurray/indicator-sensors) 5 | 6 | Application indicator to display and monitor the readings from various hardware 7 | sensors (temperature, fan speeds, voltages etc) in the desktop panel for GNOME 8 | / Ubuntu 9 | 10 | ![Screenshot](screenshot.png) 11 | 12 | ## Installation 13 | 14 | ### Snap Store 15 | [![Get it from the Snap Store](https://raw.githubusercontent.com/snapcore/snap-store-badges/master/EN/%5BEN%5D-snap-store-black.png)](https://snapcraft.io/indicator-sensors) 16 | 17 | The preferred way to install `indicator-sensors` is via the [Snap 18 | Store](https://snapcraft.io/indicator-sensors). 19 | 20 | First ensure you have [snap support in your desktop 21 | install](https://docs.snapcraft.io/core/install) 22 | 23 | Then you can just sudo snap install indicator-sensors to install 24 | from the command line. 25 | 26 | ## License 27 | 28 | Copyright © 2018 Alex Murray 29 | 30 | Distributed under GNU GPL, version 3. 31 | -------------------------------------------------------------------------------- /data/indicator-sensors.appdata.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | indicator-sensors.desktop 5 | CC0 6 | Hardware Sensors Indicator 7 | Provides temperature, fan and voltage sensor readings within the panel of your desktop 8 | 9 |

10 | Hardware Sensors Indicator provides temperature, fan and voltage sensor 11 | readings within the panel of your desktop. 12 |

13 |

14 | When running GNOME Shell a shell extension is required to view 15 | sensors readings within the top panel. Therefore it is recommended to 16 | also install either the KStatusNotifierItem/AppIndicator Support 17 | extension 18 | https://extensions.gnome.org/extension/615/appindicator-support/, or 19 | the Hardware Sensors Indicator extension 20 | https://extensions.gnome.org/extension/336/hardware-sensors-indicator/ 21 | so that sensor readings are visible. 22 |

23 |
24 | 25 | 26 | https://extensions.gnome.org/extension-data/screenshots/screenshot_336.png 27 | 28 | 29 | https://github.com/alexmurray/indicator-sensors 30 | murray.alex_at_gmail.com 31 |
32 | -------------------------------------------------------------------------------- /indicator-sensors/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in 2 | AM_CPPFLAGS = -DGNOMELOCALEDIR=\""$(datadir)/locale/"\" \ 3 | -DG_LOG_DOMAIN=\""indicator-sensors"\" \ 4 | -DPIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)/"\" \ 5 | -DDATADIR=\""$(datadir)"\" \ 6 | -DLIBDIR=\""$(libdir)"\" \ 7 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ 8 | -DPREFIX=\""$(prefix)"\" \ 9 | -I$(top_srcdir) \ 10 | $(GLIB_CFLAGS) $(GIO_CFLAGS) $(GTK_CFLAGS) $(AYATANA_APPINDICATOR_CFLAGS) $(LIBPEAS_CFLAGS) $(LIBPEASGTK_CFLAGS) $(LIBNOTIFY_CFLAGS) $(DEBUG_CFLAGS) 11 | 12 | 13 | LIBS = $(GLIB_LIBS) $(GIO_LIBS) $(GTK_LIBS) $(AYATANA_APPINDICATOR_LIBS) $(LIBPEAS_LIBS) $(LIBPEASGTK_LIBS) $(LIBNOTIFY_LIBS) 14 | 15 | marshallers.h: marshallers.list 16 | glib-genmarshal --header $< > $@ 17 | 18 | marshallers.c: marshallers.list 19 | glib-genmarshal --body $< > $@ 20 | 21 | BUILT_SOURCES = marshallers.h marshallers.c 22 | 23 | bin_PROGRAMS = indicator-sensors 24 | indicator_sensors_SOURCES = \ 25 | indicator-sensors.c \ 26 | is-application.c \ 27 | is-application.h \ 28 | is-log.h \ 29 | is-log.c \ 30 | is-notify.h \ 31 | is-notify.c \ 32 | is-indicator.h \ 33 | is-indicator.c \ 34 | is-sensor.h \ 35 | is-sensor.c \ 36 | is-temperature-sensor.h \ 37 | is-temperature-sensor.c \ 38 | is-fan-sensor.h \ 39 | is-fan-sensor.c \ 40 | is-store.h \ 41 | is-store.c \ 42 | is-manager.h \ 43 | is-manager.c \ 44 | is-preferences-dialog.h \ 45 | is-preferences-dialog.c \ 46 | is-sensor-dialog.h \ 47 | is-sensor-dialog.c 48 | 49 | EXTRA_DIST = marshallers.list 50 | DISTCLEANFILES = $(BUILT_SOURCES) 51 | -------------------------------------------------------------------------------- /indicator-sensors/is-fan-sensor.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #include "is-fan-sensor.h" 19 | #include 20 | 21 | G_DEFINE_TYPE(IsFanSensor, is_fan_sensor, IS_TYPE_SENSOR); 22 | 23 | static void 24 | is_fan_sensor_class_init(IsFanSensorClass *klass) 25 | { 26 | /* nothing to do */ 27 | } 28 | 29 | static void 30 | is_fan_sensor_init(IsFanSensor *self) 31 | { 32 | /* nothing to do */ 33 | } 34 | 35 | IsSensor * 36 | is_fan_sensor_new(const gchar *path) 37 | { 38 | return g_object_new(IS_TYPE_FAN_SENSOR, 39 | "path", path, 40 | "value", IS_SENSOR_VALUE_UNSET, 41 | "units", _(" RPM"), 42 | "low-value", 100.0, 43 | "high-value", 5000.0, 44 | "icon", IS_STOCK_FAN, 45 | NULL); 46 | } 47 | -------------------------------------------------------------------------------- /plugins/dbus/is-active-sensor.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | 19 | 20 | 21 | 25 | 26 | 27 | 31 | 32 | 33 | 37 | 38 | 39 | 43 | 44 | 45 | 49 | 50 | 51 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /indicator-sensors/is-notify.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_NOTIFY_H__ 19 | #define __IS_NOTIFY_H__ 20 | 21 | #include 22 | #include 23 | #include 24 | 25 | G_BEGIN_DECLS 26 | 27 | typedef enum 28 | { 29 | IS_NOTIFY_LEVEL_ERROR = 0, 30 | IS_NOTIFY_LEVEL_WARNING, 31 | IS_NOTIFY_LEVEL_INFO, 32 | NUM_IS_NOTIFY_LEVELS, 33 | } IsNotifyLevel; 34 | 35 | gboolean is_notify_init(void); 36 | void is_notify_uninit(void); 37 | NotifyNotification *is_notify(IsNotifyLevel level, 38 | const gchar *title, 39 | const gchar *format, 40 | ...) G_GNUC_PRINTF(3, 4); 41 | NotifyNotification *is_notifyv(IsNotifyLevel level, 42 | const gchar *title, 43 | const gchar *format, 44 | va_list args); 45 | G_END_DECLS 46 | 47 | #endif /* __IS_LOG_H__ */ 48 | -------------------------------------------------------------------------------- /data/indicator-sensors.gschema.xml.in.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | "" 5 | <_summary>Primary sensor to display 6 | <_description>The primary sensor to display in the indicator, identified by it’s path. 7 | 8 | 9 | 10 | 7 11 | <_summary>Display flags for the indicator 12 | <_description>The elements used to display the primary sensor within the indicator. 13 | 14 | 15 | 16 | 17 | [] 18 | <_summary>Enabled sensors 19 | <_description>The list of enabled sensors to monitor, each identified by it’s path. 20 | 21 | 22 | 23 | 24 | 25 | 1 26 | <_summary>Temperature scale 27 | <_description>The temperature scale to display temperature sensor values. 28 | 29 | 30 | true 31 | <_summary>Show indicator 32 | <_description>Whether to show the indicator in the notification area. 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /indicator-sensors/is-log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_LOG_H__ 19 | #define __IS_LOG_H__ 20 | 21 | #include 22 | #include 23 | 24 | G_BEGIN_DECLS 25 | 26 | typedef enum 27 | { 28 | IS_LOG_LEVEL_ERROR = 0, 29 | IS_LOG_LEVEL_CRITICAL, 30 | IS_LOG_LEVEL_WARNING, 31 | IS_LOG_LEVEL_MESSAGE, 32 | IS_LOG_LEVEL_DEBUG, 33 | NUM_IS_LOG_LEVELS, 34 | } IsLogLevel; 35 | 36 | void is_log_set_level(IsLogLevel level); 37 | 38 | void is_log(const gchar *source, 39 | IsLogLevel level, 40 | const gchar *format, 41 | ...) G_GNUC_PRINTF(3, 4); 42 | void is_logv(const gchar *source, 43 | IsLogLevel level, 44 | const gchar *format, 45 | va_list args) G_GNUC_PRINTF(3, 0); 46 | #define is_error(source, ...) is_log(source, IS_LOG_LEVEL_ERROR, __VA_ARGS__) 47 | #define is_critical(source, ...) is_log(source, IS_LOG_LEVEL_CRITICAL, __VA_ARGS__) 48 | #define is_warning(source, ...) is_log(source, IS_LOG_LEVEL_WARNING, __VA_ARGS__) 49 | #define is_message(source, ...) is_log(source, IS_LOG_LEVEL_MESSAGE, __VA_ARGS__) 50 | #define is_debug(source, ...) is_log(source, IS_LOG_LEVEL_DEBUG, __VA_ARGS__) 51 | 52 | G_END_DECLS 53 | 54 | #endif /* __IS_LOG_H__ */ 55 | -------------------------------------------------------------------------------- /plugins/dbus/shell-search-provider-dbus-interfaces.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /icons/Makefile.am: -------------------------------------------------------------------------------- 1 | statusiconsdir = $(datadir)/icons/hicolor/22x22/status 2 | statusicons_DATA = \ 3 | hicolor/22x22/status/very-low-value-icon.png \ 4 | hicolor/22x22/status/low-value-icon.png \ 5 | hicolor/22x22/status/normal-value-icon.png \ 6 | hicolor/22x22/status/high-value-icon.png \ 7 | hicolor/22x22/status/very-high-value-icon.png 8 | 9 | deviceiconsdir = $(datadir)/icons/hicolor/22x22/devices 10 | deviceicons_DATA = \ 11 | hicolor/22x22/devices/indicator-sensors-battery.png \ 12 | hicolor/22x22/devices/indicator-sensors-case.png \ 13 | hicolor/22x22/devices/indicator-sensors-chip.png \ 14 | hicolor/22x22/devices/indicator-sensors-cpu.png \ 15 | hicolor/22x22/devices/indicator-sensors-gpu.png \ 16 | hicolor/22x22/devices/indicator-sensors-fan.png \ 17 | hicolor/22x22/devices/indicator-sensors-disk.png \ 18 | hicolor/22x22/devices/indicator-sensors-memory.png 19 | 20 | appicon256dir = $(datadir)/icons/hicolor/256x256/apps 21 | appicon256_DATA = hicolor/256x256/apps/indicator-sensors.png 22 | appicon48dir = $(datadir)/icons/hicolor/48x48/apps 23 | appicon48_DATA = hicolor/48x48/apps/indicator-sensors.png 24 | appicon32dir = $(datadir)/icons/hicolor/32x32/apps 25 | appicon32_DATA = hicolor/32x32/apps/indicator-sensors.png 26 | appicon24dir = $(datadir)/icons/hicolor/24x24/apps 27 | appicon24_DATA = hicolor/24x24/apps/indicator-sensors.png 28 | appicon16dir = $(datadir)/icons/hicolor/16x16/apps 29 | appicon16_DATA = hicolor/16x16/apps/indicator-sensors.png 30 | appicon_files = \ 31 | $(appicon256_DATA) \ 32 | $(appicon48_DATA) \ 33 | $(appicon32_DATA) \ 34 | $(appicon24_DATA) \ 35 | $(appicon16_DATA) \ 36 | hicolor/indicator-sensors.svg 37 | 38 | gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor 39 | 40 | install-data-hook: update_icon_cache 41 | uninstall-hook: update_icon_cache 42 | update_icon_cache: 43 | @-if test -z "$(DESTDIR)"; then \ 44 | echo "Updating Gtk icon cache."; \ 45 | $(gtk_update_icon_cache); \ 46 | else \ 47 | echo "*** Icon cache not updated. After (un)install, run this:"; \ 48 | echo "*** $(gtk_update_icon_cache)"; \ 49 | fi 50 | 51 | EXTRA_DIST = \ 52 | $(statusicons_DATA) \ 53 | $(deviceicons_DATA) \ 54 | $(appicon_files) 55 | -------------------------------------------------------------------------------- /plugins/dbus/Makefile.am: -------------------------------------------------------------------------------- 1 | plugindir = $(libdir)/$(PACKAGE)/plugins/dbus 2 | 3 | AM_CPPFLAGS = \ 4 | -I$(top_srcdir) \ 5 | $(GLIB_CFLAGS) \ 6 | $(GTK_CFLAGS) \ 7 | $(AYATANA_APPINDICATOR_CFLAGS) \ 8 | $(LIBPEAS_CFLAGS) \ 9 | $(GIO_CFLAGS) \ 10 | $(DEBUG_CFLAGS) 11 | 12 | plugin_LTLIBRARIES = libdbus.la 13 | 14 | libdbus_la_SOURCES = \ 15 | is-active-sensor-generated.h \ 16 | is-active-sensor-generated.c \ 17 | is-org-gnome-shell-search-provider-generated.c \ 18 | is-org-gnome-shell-search-provider-generated.h \ 19 | is-dbus-plugin.h \ 20 | is-dbus-plugin.c 21 | 22 | libdbus_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS) 23 | libdbus_la_LIBADD = \ 24 | $(GLIB_LIBS) \ 25 | $(GTK_LIBS) \ 26 | $(AYATANA_APPINDICATOR_LIBS) \ 27 | $(LIBPEAS_LIBS) \ 28 | $(GIO_LIBS) 29 | 30 | plugin_DATA = dbus.plugin 31 | 32 | dbus_search_provider_built_sources = \ 33 | is-org-gnome-shell-search-provider-generated.c \ 34 | is-org-gnome-shell-search-provider-generated.h \ 35 | $(NULL) 36 | 37 | $(dbus_search_provider_built_sources) : shell-search-provider-dbus-interfaces.xml Makefile.am 38 | $(AM_V_GEN) gdbus-codegen \ 39 | --interface-prefix com.github.alexmurray.IndicatorSensors. \ 40 | --c-namespace Is \ 41 | --generate-c-code is-org-gnome-shell-search-provider-generated \ 42 | $< \ 43 | $(NULL) 44 | 45 | active_sensor_built_sources = \ 46 | is-active-sensor-generated.h \ 47 | is-active-sensor-generated.c \ 48 | is-active-sensor-generated-com.github.alexmurray.IndicatorSensors.ActiveSensor.xml 49 | 50 | $(active_sensor_built_sources): is-active-sensor.xml Makefile.am 51 | $(AM_V_GEN) gdbus-codegen \ 52 | --interface-prefix com.github.alexmurray.IndicatorSensors. \ 53 | --c-namespace Is \ 54 | --c-generate-object-manager \ 55 | --generate-c-code is-active-sensor-generated \ 56 | --generate-docbook is-active-sensor-generated \ 57 | $< \ 58 | $(NULL) 59 | 60 | searchproviderdir = $(datadir)/gnome-shell/search-providers 61 | searchprovider_DATA = is-search-provider.ini 62 | 63 | BUILT_SOURCES = $(dbus_search_provider_built_sources) \ 64 | $(active_sensor_built_sources) 65 | 66 | EXTRA_DIST = $(plugin_DATA) \ 67 | shell-search-provider-dbus-interfaces.xml \ 68 | is-active-sensor.xml \ 69 | is-search-provider.ini \ 70 | $(NULL) 71 | 72 | CLEANFILES = $(dbus_search_provider_built_sources) \ 73 | $(active_sensor_built_sources) 74 | -------------------------------------------------------------------------------- /indicator-sensors/is-fan-sensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_FAN_SENSOR_H__ 19 | #define __IS_FAN_SENSOR_H__ 20 | 21 | #include "is-sensor.h" 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_FAN_SENSOR \ 27 | (is_fan_sensor_get_type()) 28 | #define IS_FAN_SENSOR(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_FAN_SENSOR, \ 31 | IsFanSensor)) 32 | #define IS_FAN_SENSOR_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_FAN_SENSOR, \ 35 | IsFanSensorClass)) 36 | #define IS_IS_FAN_SENSOR(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_FAN_SENSOR)) 39 | #define IS_IS_FAN_SENSOR_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_FAN_SENSOR)) 42 | #define IS_FAN_SENSOR_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_FAN_SENSOR, \ 45 | IsFanSensorClass)) 46 | 47 | typedef struct _IsFanSensor IsFanSensor; 48 | typedef struct _IsFanSensorClass IsFanSensorClass; 49 | 50 | struct _IsFanSensorClass 51 | { 52 | IsSensorClass parent_class; 53 | }; 54 | 55 | struct _IsFanSensor 56 | { 57 | IsSensor parent; 58 | }; 59 | 60 | GType is_fan_sensor_get_type(void) G_GNUC_CONST; 61 | IsSensor *is_fan_sensor_new(const gchar *path); 62 | 63 | G_END_DECLS 64 | 65 | #endif /* __IS_FAN_SENSOR_H__ */ 66 | -------------------------------------------------------------------------------- /plugins/max/is-max-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_MAX_PLUGIN_H__ 19 | #define __IS_MAX_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_MAX_PLUGIN \ 27 | (is_max_plugin_get_type()) 28 | #define IS_MAX_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_MAX_PLUGIN, \ 31 | IsMaxPlugin)) 32 | #define IS_MAX_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_MAX_PLUGIN, \ 35 | IsMaxPluginClass)) 36 | #define IS_IS_MAX_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_MAX_PLUGIN)) 39 | #define IS_IS_MAX_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_MAX_PLUGIN)) 42 | #define IS_MAX_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_MAX_PLUGIN, \ 45 | IsMaxPluginClass)) 46 | 47 | typedef struct _IsMaxPlugin IsMaxPlugin; 48 | typedef struct _IsMaxPluginClass IsMaxPluginClass; 49 | typedef struct _IsMaxPluginPrivate IsMaxPluginPrivate; 50 | 51 | struct _IsMaxPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsMaxPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsMaxPluginPrivate *priv; 60 | }; 61 | 62 | GType is_max_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_MAX_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/dbus/is-dbus-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_DBUS_PLUGIN_H__ 19 | #define __IS_DBUS_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_DBUS_PLUGIN \ 27 | (is_dbus_plugin_get_type()) 28 | #define IS_DBUS_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_DBUS_PLUGIN, \ 31 | IsDBusPlugin)) 32 | #define IS_DBUS_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_DBUS_PLUGIN, \ 35 | IsDBusPluginClass)) 36 | #define IS_IS_DBUS_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_DBUS_PLUGIN)) 39 | #define IS_IS_DBUS_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_DBUS_PLUGIN)) 42 | #define IS_DBUS_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_DBUS_PLUGIN, \ 45 | IsDBusPluginClass)) 46 | 47 | typedef struct _IsDBusPlugin IsDBusPlugin; 48 | typedef struct _IsDBusPluginClass IsDBusPluginClass; 49 | typedef struct _IsDBusPluginPrivate IsDBusPluginPrivate; 50 | 51 | struct _IsDBusPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsDBusPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsDBusPluginPrivate *priv; 60 | }; 61 | 62 | GType is_dbus_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_DBUS_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/fake/is-fake-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_FAKE_PLUGIN_H__ 19 | #define __IS_FAKE_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_FAKE_PLUGIN \ 27 | (is_fake_plugin_get_type()) 28 | #define IS_FAKE_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_FAKE_PLUGIN, \ 31 | IsFakePlugin)) 32 | #define IS_FAKE_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_FAKE_PLUGIN, \ 35 | IsFakePluginClass)) 36 | #define IS_IS_FAKE_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_FAKE_PLUGIN)) 39 | #define IS_IS_FAKE_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_FAKE_PLUGIN)) 42 | #define IS_FAKE_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_FAKE_PLUGIN, \ 45 | IsFakePluginClass)) 46 | 47 | typedef struct _IsFakePlugin IsFakePlugin; 48 | typedef struct _IsFakePluginClass IsFakePluginClass; 49 | typedef struct _IsFakePluginPrivate IsFakePluginPrivate; 50 | 51 | struct _IsFakePluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsFakePlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsFakePluginPrivate *priv; 60 | }; 61 | 62 | GType is_fake_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_FAKE_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/nvidia/is-nvidia-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_NVIDIA_PLUGIN_H__ 19 | #define __IS_NVIDIA_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_NVIDIA_PLUGIN \ 27 | (is_nvidia_plugin_get_type()) 28 | #define IS_NVIDIA_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_NVIDIA_PLUGIN, \ 31 | IsNvidiaPlugin)) 32 | #define IS_NVIDIA_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_NVIDIA_PLUGIN, \ 35 | IsNvidiaPluginClass)) 36 | #define IS_IS_NVIDIA_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_NVIDIA_PLUGIN)) 39 | #define IS_IS_NVIDIA_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_NVIDIA_PLUGIN)) 42 | #define IS_NVIDIA_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_NVIDIA_PLUGIN, \ 45 | IsNvidiaPluginClass)) 46 | 47 | typedef struct _IsNvidiaPlugin IsNvidiaPlugin; 48 | typedef struct _IsNvidiaPluginClass IsNvidiaPluginClass; 49 | typedef struct _IsNvidiaPluginPrivate IsNvidiaPluginPrivate; 50 | 51 | struct _IsNvidiaPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsNvidiaPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsNvidiaPluginPrivate *priv; 60 | }; 61 | 62 | GType is_nvidia_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_NVIDIA_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/udisks/is-udisks-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_UDISKS_PLUGIN_H__ 19 | #define __IS_UDISKS_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_UDISKS_PLUGIN \ 27 | (is_udisks_plugin_get_type()) 28 | #define IS_UDISKS_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_UDISKS_PLUGIN, \ 31 | IsUdisksPlugin)) 32 | #define IS_UDISKS_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_UDISKS_PLUGIN, \ 35 | IsUdisksPluginClass)) 36 | #define IS_IS_UDISKS_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_UDISKS_PLUGIN)) 39 | #define IS_IS_UDISKS_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_UDISKS_PLUGIN)) 42 | #define IS_UDISKS_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_UDISKS_PLUGIN, \ 45 | IsUdisksPluginClass)) 46 | 47 | typedef struct _IsUdisksPlugin IsUdisksPlugin; 48 | typedef struct _IsUdisksPluginClass IsUdisksPluginClass; 49 | typedef struct _IsUdisksPluginPrivate IsUdisksPluginPrivate; 50 | 51 | struct _IsUdisksPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsUdisksPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsUdisksPluginPrivate *priv; 60 | }; 61 | 62 | GType is_udisks_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_UDISKS_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /indicator-sensors/is-sensor-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_SENSOR_DIALOG_H__ 19 | #define __IS_SENSOR_DIALOG_H__ 20 | 21 | #include 22 | #include "is-sensor.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_SENSOR_DIALOG \ 27 | (is_sensor_dialog_get_type()) 28 | #define IS_SENSOR_DIALOG(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_SENSOR_DIALOG, \ 31 | IsSensorDialog)) 32 | #define IS_SENSOR_DIALOG_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_SENSOR_DIALOG, \ 35 | IsSensorDialogClass)) 36 | #define IS_IS_SENSOR_DIALOG(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_SENSOR_DIALOG)) 39 | #define IS_IS_SENSOR_DIALOG_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_SENSOR_DIALOG)) 42 | #define IS_SENSOR_DIALOG_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_SENSOR_DIALOG, \ 45 | IsSensorDialogClass)) 46 | 47 | typedef struct _IsSensorDialog IsSensorDialog; 48 | typedef struct _IsSensorDialogClass IsSensorDialogClass; 49 | typedef struct _IsSensorDialogPrivate IsSensorDialogPrivate; 50 | 51 | struct _IsSensorDialogClass 52 | { 53 | GtkDialogClass parent_class; 54 | }; 55 | 56 | struct _IsSensorDialog 57 | { 58 | GtkDialog parent; 59 | IsSensorDialogPrivate *priv; 60 | }; 61 | 62 | GType is_sensor_dialog_get_type(void) G_GNUC_CONST; 63 | GtkWidget *is_sensor_dialog_new(IsSensor *sensor); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_SENSOR_DIALOG_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/dynamic/is-dynamic-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_DYNAMIC_PLUGIN_H__ 19 | #define __IS_DYNAMIC_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_DYNAMIC_PLUGIN \ 27 | (is_dynamic_plugin_get_type()) 28 | #define IS_DYNAMIC_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_DYNAMIC_PLUGIN, \ 31 | IsDynamicPlugin)) 32 | #define IS_DYNAMIC_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_DYNAMIC_PLUGIN, \ 35 | IsDynamicPluginClass)) 36 | #define IS_IS_DYNAMIC_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_DYNAMIC_PLUGIN)) 39 | #define IS_IS_DYNAMIC_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_DYNAMIC_PLUGIN)) 42 | #define IS_DYNAMIC_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_DYNAMIC_PLUGIN, \ 45 | IsDynamicPluginClass)) 46 | 47 | typedef struct _IsDynamicPlugin IsDynamicPlugin; 48 | typedef struct _IsDynamicPluginClass IsDynamicPluginClass; 49 | typedef struct _IsDynamicPluginPrivate IsDynamicPluginPrivate; 50 | 51 | struct _IsDynamicPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsDynamicPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsDynamicPluginPrivate *priv; 60 | }; 61 | 62 | GType is_dynamic_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_DYNAMIC_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/udisks2/is-udisks2-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_UDISKS2_PLUGIN_H__ 19 | #define __IS_UDISKS2_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_UDISKS2_PLUGIN \ 27 | (is_udisks2_plugin_get_type()) 28 | #define IS_UDISKS2_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_UDISKS2_PLUGIN, \ 31 | IsUDisks2Plugin)) 32 | #define IS_UDISKS2_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_UDISKS2_PLUGIN, \ 35 | IsUDisks2PluginClass)) 36 | #define IS_IS_UDISKS2_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_UDISKS2_PLUGIN)) 39 | #define IS_IS_UDISKS2_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_UDISKS2_PLUGIN)) 42 | #define IS_UDISKS2_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_UDISKS2_PLUGIN, \ 45 | IsUDisks2PluginClass)) 46 | 47 | typedef struct _IsUDisks2Plugin IsUDisks2Plugin; 48 | typedef struct _IsUDisks2PluginClass IsUDisks2PluginClass; 49 | typedef struct _IsUDisks2PluginPrivate IsUDisks2PluginPrivate; 50 | 51 | struct _IsUDisks2PluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsUDisks2Plugin 57 | { 58 | PeasExtensionBase parent; 59 | IsUDisks2PluginPrivate *priv; 60 | }; 61 | 62 | GType is_udisks2_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_UDISKS2_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/aticonfig/is-aticonfig-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_ATICONFIG_PLUGIN_H__ 19 | #define __IS_ATICONFIG_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_ATICONFIG_PLUGIN \ 27 | (is_aticonfig_plugin_get_type()) 28 | #define IS_ATICONFIG_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_ATICONFIG_PLUGIN, \ 31 | IsATIConfigPlugin)) 32 | #define IS_ATICONFIG_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_ATICONFIG_PLUGIN, \ 35 | IsATIConfigPluginClass)) 36 | #define IS_IS_ATICONFIG_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_ATICONFIG_PLUGIN)) 39 | #define IS_IS_ATICONFIG_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_ATICONFIG_PLUGIN)) 42 | #define IS_ATICONFIG_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_ATICONFIG_PLUGIN, \ 45 | IsATIConfigPluginClass)) 46 | 47 | typedef struct _IsATIConfigPlugin IsATIConfigPlugin; 48 | typedef struct _IsATIConfigPluginClass IsATIConfigPluginClass; 49 | typedef struct _IsATIConfigPluginPrivate IsATIConfigPluginPrivate; 50 | 51 | struct _IsATIConfigPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsATIConfigPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsATIConfigPluginPrivate *priv; 60 | }; 61 | 62 | GType is_aticonfig_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_ATICONFIG_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /plugins/libsensors/is-libsensors-plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_LIBSENSORS_PLUGIN_H__ 19 | #define __IS_LIBSENSORS_PLUGIN_H__ 20 | 21 | #include 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_LIBSENSORS_PLUGIN \ 27 | (is_libsensors_plugin_get_type()) 28 | #define IS_LIBSENSORS_PLUGIN(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_LIBSENSORS_PLUGIN, \ 31 | IsLibsensorsPlugin)) 32 | #define IS_LIBSENSORS_PLUGIN_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_LIBSENSORS_PLUGIN, \ 35 | IsLibsensorsPluginClass)) 36 | #define IS_IS_LIBSENSORS_PLUGIN(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_LIBSENSORS_PLUGIN)) 39 | #define IS_IS_LIBSENSORS_PLUGIN_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_LIBSENSORS_PLUGIN)) 42 | #define IS_LIBSENSORS_PLUGIN_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_LIBSENSORS_PLUGIN, \ 45 | IsLibsensorsPluginClass)) 46 | 47 | typedef struct _IsLibsensorsPlugin IsLibsensorsPlugin; 48 | typedef struct _IsLibsensorsPluginClass IsLibsensorsPluginClass; 49 | typedef struct _IsLibsensorsPluginPrivate IsLibsensorsPluginPrivate; 50 | 51 | struct _IsLibsensorsPluginClass 52 | { 53 | PeasExtensionBaseClass parent_class; 54 | }; 55 | 56 | struct _IsLibsensorsPlugin 57 | { 58 | PeasExtensionBase parent; 59 | IsLibsensorsPluginPrivate *priv; 60 | }; 61 | 62 | GType is_libsensors_plugin_get_type(void) G_GNUC_CONST; 63 | G_MODULE_EXPORT void peas_register_types(PeasObjectModule *module); 64 | 65 | G_END_DECLS 66 | 67 | #endif /* __IS_LIBSENSORS_PLUGIN_H__ */ 68 | -------------------------------------------------------------------------------- /indicator-sensors/is-preferences-dialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_PREFERENCES_DIALOG_H__ 19 | #define __IS_PREFERENCES_DIALOG_H__ 20 | 21 | #include 22 | #include "is-application.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | /* response id returned when clicking on properties button */ 27 | #define IS_PREFERENCES_DIALOG_RESPONSE_SENSOR_PROPERTIES 1 28 | 29 | #define IS_TYPE_PREFERENCES_DIALOG \ 30 | (is_preferences_dialog_get_type()) 31 | #define IS_PREFERENCES_DIALOG(obj) \ 32 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 33 | IS_TYPE_PREFERENCES_DIALOG, \ 34 | IsPreferencesDialog)) 35 | #define IS_PREFERENCES_DIALOG_CLASS(klass) \ 36 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 37 | IS_TYPE_PREFERENCES_DIALOG, \ 38 | IsPreferencesDialogClass)) 39 | #define IS_IS_PREFERENCES_DIALOG(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 41 | IS_TYPE_PREFERENCES_DIALOG)) 42 | #define IS_IS_PREFERENCES_DIALOG_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 44 | IS_TYPE_PREFERENCES_DIALOG)) 45 | #define IS_PREFERENCES_DIALOG_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 47 | IS_TYPE_PREFERENCES_DIALOG, \ 48 | IsPreferencesDialogClass)) 49 | 50 | typedef struct _IsPreferencesDialog IsPreferencesDialog; 51 | typedef struct _IsPreferencesDialogClass IsPreferencesDialogClass; 52 | typedef struct _IsPreferencesDialogPrivate IsPreferencesDialogPrivate; 53 | 54 | struct _IsPreferencesDialogClass 55 | { 56 | GtkDialogClass parent_class; 57 | }; 58 | 59 | struct _IsPreferencesDialog 60 | { 61 | GtkDialog parent; 62 | IsPreferencesDialogPrivate *priv; 63 | }; 64 | 65 | GType is_preferences_dialog_get_type(void) G_GNUC_CONST; 66 | GtkWidget *is_preferences_dialog_new(IsApplication *application); 67 | 68 | G_END_DECLS 69 | 70 | #endif /* __IS_PREFERENCES_DIALOG_H__ */ 71 | -------------------------------------------------------------------------------- /snap/snapcraft.yaml: -------------------------------------------------------------------------------- 1 | name: indicator-sensors 2 | title: Hardware Sensors Indicator 3 | version: git 4 | summary: Provide hardware sensors readings in your desktop panel 5 | description: | 6 | Application indicator to display and monitor the readings 7 | from various hardware sensors (temperature, fan speeds, voltages 8 | etc) in the desktop panel 9 | 10 | base: core22 11 | grade: stable 12 | confinement: strict 13 | icon: icons/hicolor/256x256/apps/indicator-sensors.png 14 | license: GPL-3.0+ 15 | 16 | slots: 17 | # for GtkApplication registration 18 | indicator-sensors: 19 | interface: dbus 20 | bus: session 21 | name: com.github.alexmurray.IndicatorSensors 22 | 23 | environment: 24 | XDG_DATA_DIRS: $SNAP/share:$XDG_DATA_DIRS 25 | 26 | apps: 27 | indicator-sensors: 28 | command: usr/bin/indicator-sensors 29 | extensions: [gnome] 30 | plugs: 31 | - unity7 32 | - udisks2 33 | - hardware-observe 34 | desktop: usr/share/applications/indicator-sensors.desktop 35 | autostart: indicator-sensors.desktop 36 | 37 | parts: 38 | indicator-sensors: 39 | source: . 40 | plugin: autotools 41 | autotools-configure-parameters: [--prefix=/snap/indicator-sensors/current/usr] 42 | organize: 43 | snap/indicator-sensors/current/usr: usr 44 | build-packages: 45 | - intltool 46 | - gnome-common 47 | - libglib2.0-dev 48 | - libgdk-pixbuf2.0-0 49 | - libgtk-3-dev 50 | - libpeas-dev 51 | - libnotify-dev 52 | - libayatana-appindicator3-dev 53 | - libsensors-dev 54 | - gobject-introspection 55 | - libgirepository1.0-dev 56 | - libudisks2-dev 57 | - libxnvctrl-dev 58 | override-prime: | 59 | set -eu 60 | snapcraftctl prime 61 | # Fix-up application icon lookup 62 | sed -i.bak -e 's|^Icon=.*|Icon=${SNAP}/meta/gui/icon.png|g' usr/share/applications/indicator-sensors.desktop 63 | 64 | libraries: 65 | plugin: nil 66 | stage-packages: 67 | - libsensors5 68 | - libayatana-appindicator3-1 69 | - libayatana-indicator3-7 70 | - libayatana-ido3-0.4-0 71 | - libudisks2-0 72 | - libnotify4 73 | - libpeas-1.0-0 74 | - libgtk3-nocsd0 75 | - libxnvctrl0 76 | prime: 77 | # include only what we need which is not in the desktop-gnome-platform to 78 | # keep the snap size as small as possible 79 | - etc/sensors3.conf 80 | - etc/sensors.d/* 81 | - usr/lib/*/libayatana-appindicator3.so.* 82 | - usr/lib/*/libayatana-indicator3.so.* 83 | - usr/lib/*/libayatana-ido3-0.4.so.* 84 | - usr/lib/*/libdbusmenu-glib.so.* 85 | - usr/lib/*/libdbusmenu-gtk3.so.* 86 | - usr/lib/*/libindicator3.so.* 87 | - usr/lib/*/libsensors.so.* 88 | - usr/lib/*/libudisks2.so.* 89 | - usr/lib/*/libXNVCtrl.so.* 90 | - usr/lib/*/libgtk3-nocsd.so.* 91 | -------------------------------------------------------------------------------- /indicator-sensors/is-log.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifdef HAVE_CONFIG_H 19 | #include "config.h" 20 | #endif 21 | 22 | #include "is-log.h" 23 | #include 24 | #include 25 | 26 | static IsLogLevel is_log_level = IS_LOG_LEVEL_WARNING; 27 | 28 | void is_log_set_level(IsLogLevel level) 29 | { 30 | g_return_if_fail((int)level >= IS_LOG_LEVEL_ERROR && 31 | level < NUM_IS_LOG_LEVELS); 32 | is_log_level = level; 33 | } 34 | 35 | void is_log(const gchar *source, 36 | IsLogLevel level, 37 | const gchar *format, 38 | ...) 39 | { 40 | va_list args; 41 | 42 | va_start(args, format); 43 | is_logv(source, level, format, args); 44 | va_end(args); 45 | } 46 | 47 | static const gchar * 48 | is_log_level_to_string(IsLogLevel level) 49 | { 50 | const gchar *str_level = NULL; 51 | 52 | g_return_val_if_fail((int)level >= IS_LOG_LEVEL_ERROR && 53 | level < NUM_IS_LOG_LEVELS, NULL); 54 | 55 | switch (level) 56 | { 57 | case IS_LOG_LEVEL_ERROR: 58 | str_level = "ERROR"; 59 | break; 60 | 61 | case IS_LOG_LEVEL_CRITICAL: 62 | str_level = "CRITICAL"; 63 | break; 64 | 65 | case IS_LOG_LEVEL_WARNING: 66 | str_level = "WARNING"; 67 | break; 68 | 69 | case IS_LOG_LEVEL_MESSAGE: 70 | str_level = "MESSAGE"; 71 | break; 72 | 73 | case IS_LOG_LEVEL_DEBUG: 74 | str_level = "DEBUG"; 75 | break; 76 | 77 | case NUM_IS_LOG_LEVELS: 78 | default: 79 | g_assert_not_reached(); 80 | } 81 | 82 | return str_level; 83 | } 84 | 85 | void is_logv(const gchar *source, 86 | IsLogLevel level, 87 | const gchar *format, 88 | va_list args) 89 | { 90 | if (level <= is_log_level) 91 | { 92 | gchar *fmt, *output; 93 | 94 | /* TODO: perhaps add a more elaborate logger */ 95 | fmt = g_strdup_printf("[%s] %s: %s", source, 96 | is_log_level_to_string(level), format); 97 | output = g_strdup_vprintf(fmt, args); 98 | fprintf(stdout, "%s\n", output); 99 | fflush(stdout); 100 | g_free(output); 101 | g_free(fmt); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /indicator-sensors/is-temperature-sensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_TEMPERATURE_SENSOR_H__ 19 | #define __IS_TEMPERATURE_SENSOR_H__ 20 | 21 | #include "is-sensor.h" 22 | 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_TEMPERATURE_SENSOR \ 27 | (is_temperature_sensor_get_type()) 28 | #define IS_TEMPERATURE_SENSOR(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_TEMPERATURE_SENSOR, \ 31 | IsTemperatureSensor)) 32 | #define IS_TEMPERATURE_SENSOR_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_TEMPERATURE_SENSOR, \ 35 | IsTemperatureSensorClass)) 36 | #define IS_IS_TEMPERATURE_SENSOR(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_TEMPERATURE_SENSOR)) 39 | #define IS_IS_TEMPERATURE_SENSOR_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_TEMPERATURE_SENSOR)) 42 | #define IS_TEMPERATURE_SENSOR_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_TEMPERATURE_SENSOR, \ 45 | IsTemperatureSensorClass)) 46 | 47 | typedef struct _IsTemperatureSensor IsTemperatureSensor; 48 | typedef struct _IsTemperatureSensorClass IsTemperatureSensorClass; 49 | typedef struct _IsTemperatureSensorPrivate IsTemperatureSensorPrivate; 50 | 51 | struct _IsTemperatureSensorClass 52 | { 53 | IsSensorClass parent_class; 54 | }; 55 | 56 | struct _IsTemperatureSensor 57 | { 58 | IsSensor parent; 59 | IsTemperatureSensorPrivate *priv; 60 | }; 61 | 62 | typedef enum 63 | { 64 | IS_TEMPERATURE_SENSOR_SCALE_INVALID, 65 | IS_TEMPERATURE_SENSOR_SCALE_CELSIUS, 66 | IS_TEMPERATURE_SENSOR_SCALE_FAHRENHEIT, 67 | NUM_IS_TEMPERATURE_SENSOR_SCALE, 68 | } IsTemperatureSensorScale; 69 | 70 | GType is_temperature_sensor_get_type(void) G_GNUC_CONST; 71 | IsSensor *is_temperature_sensor_new(const gchar *path); 72 | void is_temperature_sensor_set_scale(IsTemperatureSensor *sensor, 73 | IsTemperatureSensorScale scale); 74 | IsTemperatureSensorScale is_temperature_sensor_get_scale(IsTemperatureSensor *sensor); 75 | void is_temperature_sensor_set_celsius_value(IsTemperatureSensor *sensor, 76 | gdouble value); 77 | 78 | G_END_DECLS 79 | 80 | #endif /* __IS_TEMPERATURE_SENSOR_H__ */ 81 | -------------------------------------------------------------------------------- /indicator-sensors/is-manager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_MANAGER_H__ 19 | #define __IS_MANAGER_H__ 20 | 21 | #include 22 | #include "is-store.h" 23 | #include "is-temperature-sensor.h" 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define IS_TYPE_MANAGER \ 28 | (is_manager_get_type()) 29 | #define IS_MANAGER(obj) \ 30 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 31 | IS_TYPE_MANAGER, \ 32 | IsManager)) 33 | #define IS_MANAGER_CLASS(klass) \ 34 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 35 | IS_TYPE_MANAGER, \ 36 | IsManagerClass)) 37 | #define IS_IS_MANAGER(obj) \ 38 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 39 | IS_TYPE_MANAGER)) 40 | #define IS_IS_MANAGER_CLASS(klass) \ 41 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 42 | IS_TYPE_MANAGER)) 43 | #define IS_MANAGER_GET_CLASS(obj) \ 44 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 45 | IS_TYPE_MANAGER, \ 46 | IsManagerClass)) 47 | 48 | typedef struct _IsManager IsManager; 49 | typedef struct _IsManagerClass IsManagerClass; 50 | typedef struct _IsManagerPrivate IsManagerPrivate; 51 | 52 | struct _IsManagerClass 53 | { 54 | GtkTreeViewClass parent_class; 55 | }; 56 | 57 | struct _IsManager 58 | { 59 | GtkTreeView parent; 60 | IsManagerPrivate *priv; 61 | }; 62 | 63 | GType is_manager_get_type(void) G_GNUC_CONST; 64 | IsManager *is_manager_new(void); 65 | gboolean is_manager_add_sensor(IsManager *self, 66 | IsSensor *sensor); 67 | gboolean is_manager_remove_paths_with_prefix(IsManager *self, 68 | const gchar *prefix); 69 | gboolean is_manager_remove_path(IsManager *self, 70 | const gchar *path); 71 | IsSensor *is_manager_get_sensor(IsManager *self, 72 | const gchar *path); 73 | GSList *is_manager_get_all_sensors_list(IsManager *self); 74 | GSList *is_manager_get_enabled_sensors_list(IsManager *self); 75 | guint is_manager_get_num_enabled_sensors(IsManager *self); 76 | gchar **is_manager_get_enabled_sensors(IsManager *self); 77 | gboolean is_manager_set_enabled_sensors(IsManager *self, 78 | const gchar **enabled_sensors); 79 | IsSensor *is_manager_get_selected_sensor(IsManager *self); 80 | 81 | G_END_DECLS 82 | 83 | #endif /* __IS_MANAGER_H__ */ 84 | -------------------------------------------------------------------------------- /indicator-sensors/is-application.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_APPLICATION_H__ 19 | #define __IS_APPLICATION_H__ 20 | 21 | #include 22 | #include "is-manager.h" 23 | 24 | G_BEGIN_DECLS 25 | 26 | #define IS_TYPE_APPLICATION \ 27 | (is_application_get_type()) 28 | #define IS_APPLICATION(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 30 | IS_TYPE_APPLICATION, \ 31 | IsApplication)) 32 | #define IS_APPLICATION_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 34 | IS_TYPE_APPLICATION, \ 35 | IsApplicationClass)) 36 | #define IS_IS_APPLICATION(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 38 | IS_TYPE_APPLICATION)) 39 | #define IS_IS_APPLICATION_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 41 | IS_TYPE_APPLICATION)) 42 | #define IS_APPLICATION_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 44 | IS_TYPE_APPLICATION, \ 45 | IsApplicationClass)) 46 | 47 | typedef struct _IsApplication IsApplication; 48 | typedef struct _IsApplicationClass IsApplicationClass; 49 | typedef struct _IsApplicationPrivate IsApplicationPrivate; 50 | 51 | struct _IsApplicationClass 52 | { 53 | GObjectClass parent_class; 54 | }; 55 | 56 | struct _IsApplication 57 | { 58 | GObject parent; 59 | IsApplicationPrivate *priv; 60 | }; 61 | 62 | GType is_application_get_type(void) G_GNUC_CONST; 63 | IsApplication *is_application_new(void); 64 | IsManager *is_application_get_manager(IsApplication *self); 65 | void is_application_set_show_indicator(IsApplication *self, 66 | gboolean show_indicator); 67 | gboolean is_application_get_show_indicator(IsApplication *self); 68 | guint is_application_get_poll_timeout(IsApplication *self); 69 | void is_application_set_poll_timeout(IsApplication *self, guint poll_timeout); 70 | gboolean is_application_get_autostart(IsApplication *self); 71 | void is_application_set_autostart(IsApplication *self, gboolean autostart); 72 | IsTemperatureSensorScale is_application_get_temperature_scale(IsApplication *self); 73 | void is_application_set_temperature_scale(IsApplication *self, 74 | IsTemperatureSensorScale scale); 75 | void is_application_show_preferences(IsApplication *self); 76 | void is_application_show_about(IsApplication *self); 77 | void is_application_quit(IsApplication *self); 78 | 79 | G_END_DECLS 80 | 81 | #endif /* __IS_APPLICATION_H__ */ 82 | -------------------------------------------------------------------------------- /indicator-sensors/is-store.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_STORE_H__ 19 | #define __IS_STORE_H__ 20 | 21 | #include 22 | #include 23 | #include "is-sensor.h" 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define IS_TYPE_STORE \ 28 | (is_store_get_type()) 29 | #define IS_STORE(obj) \ 30 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 31 | IS_TYPE_STORE, \ 32 | IsStore)) 33 | #define IS_STORE_CLASS(klass) \ 34 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 35 | IS_TYPE_STORE, \ 36 | IsStoreClass)) 37 | #define IS_IS_STORE(obj) \ 38 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 39 | IS_TYPE_STORE)) 40 | #define IS_IS_STORE_CLASS(klass) \ 41 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 42 | IS_TYPE_STORE)) 43 | #define IS_STORE_GET_CLASS(obj) \ 44 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 45 | IS_TYPE_STORE, \ 46 | IsStoreClass)) 47 | 48 | typedef struct _IsStore IsStore; 49 | typedef struct _IsStoreClass IsStoreClass; 50 | typedef struct _IsStorePrivate IsStorePrivate; 51 | 52 | struct _IsStoreClass 53 | { 54 | GObjectClass parent_class; 55 | }; 56 | 57 | struct _IsStore 58 | { 59 | GObject parent; 60 | IsStorePrivate *priv; 61 | }; 62 | 63 | enum 64 | { 65 | IS_STORE_COL_NAME = 0, 66 | IS_STORE_COL_LABEL, 67 | IS_STORE_COL_ICON, 68 | IS_STORE_COL_IS_SENSOR, 69 | IS_STORE_COL_SENSOR, 70 | IS_STORE_COL_ENABLED, 71 | IS_STORE_N_COLUMNS, 72 | }; 73 | 74 | GType is_store_get_type(void) G_GNUC_CONST; 75 | IsStore *is_store_new(void); 76 | gboolean is_store_add_sensor(IsStore *self, 77 | IsSensor *sensor, 78 | GtkTreeIter *iter); 79 | gboolean is_store_remove(IsStore *self, 80 | GtkTreeIter *iter); 81 | gboolean is_store_remove_path(IsStore *self, 82 | const gchar *path); 83 | gboolean is_store_set_label(IsStore *self, 84 | GtkTreeIter *iter, 85 | const gchar *label); 86 | gboolean is_store_set_enabled(IsStore *self, 87 | GtkTreeIter *iter, 88 | gboolean enabled); 89 | gboolean is_store_get_iter(IsStore *self, 90 | const gchar *path, 91 | GtkTreeIter *iter); 92 | #define is_store_get_iter_for_sensor(self, sensor, iter) \ 93 | is_store_get_iter(self, \ 94 | is_sensor_get_path(sensor), \ 95 | iter) 96 | G_END_DECLS 97 | 98 | #endif /* __IS_STORE_H__ */ 99 | -------------------------------------------------------------------------------- /indicator-sensors/is-indicator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_INDICATOR_H__ 19 | #define __IS_INDICATOR_H__ 20 | 21 | #if HAVE_AYATANA_APPINDICATOR 22 | #include 23 | #else 24 | #include 25 | #endif 26 | #include "is-application.h" 27 | #include "is-sensor.h" 28 | 29 | G_BEGIN_DECLS 30 | 31 | #define IS_TYPE_INDICATOR \ 32 | (is_indicator_get_type()) 33 | #define IS_INDICATOR(obj) \ 34 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 35 | IS_TYPE_INDICATOR, \ 36 | IsIndicator)) 37 | #define IS_INDICATOR_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 39 | IS_TYPE_INDICATOR, \ 40 | IsIndicatorClass)) 41 | #define IS_IS_INDICATOR(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 43 | IS_TYPE_INDICATOR)) 44 | #define IS_IS_INDICATOR_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 46 | IS_TYPE_INDICATOR)) 47 | #define IS_INDICATOR_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 49 | IS_TYPE_INDICATOR, \ 50 | IsIndicatorClass)) 51 | 52 | typedef struct _IsIndicator IsIndicator; 53 | typedef struct _IsIndicatorClass IsIndicatorClass; 54 | typedef struct _IsIndicatorPrivate IsIndicatorPrivate; 55 | 56 | #if HAVE_AYATANA_APPINDICATOR 57 | #define IsIndicatorParentClass AppIndicatorClass 58 | #define IsIndicatorParent AppIndicator 59 | #define IS_INDICATOR_PARENT_TYPE APP_INDICATOR_TYPE 60 | #else 61 | #define IsIndicatorParentClass GtkStatusIconClass 62 | #define IsIndicatorParent GtkStatusIcon 63 | #define IS_INDICATOR_PARENT_TYPE GTK_TYPE_STATUS_ICON 64 | #endif 65 | 66 | struct _IsIndicatorClass 67 | { 68 | IsIndicatorParentClass parent_class; 69 | }; 70 | 71 | struct _IsIndicator 72 | { 73 | IsIndicatorParent parent; 74 | IsIndicatorPrivate *priv; 75 | }; 76 | 77 | typedef enum 78 | { 79 | IS_INDICATOR_DISPLAY_VALUE = (1 << 0), 80 | IS_INDICATOR_DISPLAY_LABEL = (1 << 1), 81 | IS_INDICATOR_DISPLAY_ICON = (1 << 2), 82 | IS_INDICATOR_DISPLAY_ALL = (IS_INDICATOR_DISPLAY_VALUE | 83 | IS_INDICATOR_DISPLAY_LABEL | 84 | IS_INDICATOR_DISPLAY_ICON) 85 | } IsIndicatorDisplayFlags; 86 | 87 | GType is_indicator_get_type(void) G_GNUC_CONST; 88 | IsIndicator *is_indicator_new(IsApplication *application); 89 | IsApplication *is_indicator_get_application(IsIndicator *self); 90 | void is_indicator_set_primary_sensor_path(IsIndicator *self, 91 | const gchar *path); 92 | const gchar *is_indicator_get_primary_sensor_path(IsIndicator *self); 93 | void is_indicator_set_display_flags(IsIndicator *self, 94 | IsIndicatorDisplayFlags flags); 95 | IsIndicatorDisplayFlags is_indicator_get_display_flags(IsIndicator *self); 96 | 97 | G_END_DECLS 98 | 99 | #endif /* __IS_INDICATOR_H__ */ 100 | -------------------------------------------------------------------------------- /indicator-sensors/is-sensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifndef __IS_SENSOR_H__ 19 | #define __IS_SENSOR_H__ 20 | 21 | #include 22 | #include 23 | 24 | 25 | G_BEGIN_DECLS 26 | 27 | #define IS_TYPE_SENSOR \ 28 | (is_sensor_get_type()) 29 | #define IS_SENSOR(obj) \ 30 | (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 31 | IS_TYPE_SENSOR, \ 32 | IsSensor)) 33 | #define IS_SENSOR_CLASS(klass) \ 34 | (G_TYPE_CHECK_CLASS_CAST((klass), \ 35 | IS_TYPE_SENSOR, \ 36 | IsSensorClass)) 37 | #define IS_IS_SENSOR(obj) \ 38 | (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 39 | IS_TYPE_SENSOR)) 40 | #define IS_IS_SENSOR_CLASS(klass) \ 41 | (G_TYPE_CHECK_CLASS_TYPE((klass), \ 42 | IS_TYPE_SENSOR)) 43 | #define IS_SENSOR_GET_CLASS(obj) \ 44 | (G_TYPE_INSTANCE_GET_CLASS((obj), \ 45 | IS_TYPE_SENSOR, \ 46 | IsSensorClass)) 47 | 48 | typedef struct _IsSensor IsSensor; 49 | typedef struct _IsSensorClass IsSensorClass; 50 | typedef struct _IsSensorPrivate IsSensorPrivate; 51 | 52 | struct _IsSensorClass 53 | { 54 | GObjectClass parent_class; 55 | /* signals */ 56 | void (*update_value)(IsSensor *sensor); 57 | }; 58 | 59 | struct _IsSensor 60 | { 61 | GObject parent; 62 | IsSensorPrivate *priv; 63 | }; 64 | 65 | typedef enum 66 | { 67 | IS_SENSOR_ALARM_MODE_DISABLED = 0, 68 | IS_SENSOR_ALARM_MODE_LOW, 69 | IS_SENSOR_ALARM_MODE_HIGH, 70 | } IsSensorAlarmMode; 71 | 72 | /* device icons */ 73 | #define IS_STOCK_CPU "indicator-sensors-cpu" 74 | #define IS_STOCK_DISK "indicator-sensors-disk" 75 | #define IS_STOCK_BATTERY "indicator-sensors-battery" 76 | #define IS_STOCK_MEMORY "indicator-sensors-memory" 77 | #define IS_STOCK_GPU "indicator-sensors-gpu" 78 | #define IS_STOCK_CHIP "indicator-sensors-chip" 79 | #define IS_STOCK_FAN "indicator-sensors-fan" 80 | #define IS_STOCK_CASE "indicator-sensors-case" 81 | 82 | #define IS_SENSOR_VALUE_UNSET (-G_MAXDOUBLE) 83 | 84 | GType is_sensor_get_type(void) G_GNUC_CONST; 85 | IsSensor *is_sensor_new(const gchar *path); 86 | void is_sensor_update_value(IsSensor *self); 87 | const gchar *is_sensor_get_path(IsSensor *self); 88 | const gchar *is_sensor_get_label(IsSensor *self); 89 | void is_sensor_set_label(IsSensor *self, const gchar *label); 90 | const gchar *is_sensor_get_units(IsSensor *self); 91 | void is_sensor_set_units(IsSensor *self, const gchar *units); 92 | gdouble is_sensor_get_value(IsSensor *self); 93 | void is_sensor_set_value(IsSensor *self, gdouble value); 94 | guint is_sensor_get_digits(IsSensor *self); 95 | void is_sensor_set_digits(IsSensor *self, guint digits); 96 | gdouble is_sensor_get_alarm_value(IsSensor *self); 97 | void is_sensor_set_alarm_value(IsSensor *self, gdouble limit); 98 | IsSensorAlarmMode is_sensor_get_alarm_mode(IsSensor *self); 99 | void is_sensor_set_alarm_mode(IsSensor *self, IsSensorAlarmMode mode); 100 | guint is_sensor_get_update_interval(IsSensor *self); 101 | void is_sensor_set_update_interval(IsSensor *self, guint update_interval); 102 | gboolean is_sensor_get_alarmed(IsSensor *self); 103 | const gchar *is_sensor_get_icon(IsSensor *self); 104 | void is_sensor_set_icon(IsSensor *self, const gchar *icon); 105 | gdouble is_sensor_get_low_value(IsSensor *self); 106 | void is_sensor_set_low_value(IsSensor *self, gdouble value); 107 | gdouble is_sensor_get_high_value(IsSensor *self); 108 | void is_sensor_set_high_value(IsSensor *self, gdouble value); 109 | const gchar *is_sensor_get_icon_path(IsSensor *self); 110 | const gchar *is_sensor_get_error(IsSensor *self); 111 | void is_sensor_set_error(IsSensor *self, const gchar *error); 112 | 113 | void sensor_prepare_cache_icons(); 114 | 115 | G_END_DECLS 116 | 117 | #endif /* __IS_SENSOR_H__ */ 118 | -------------------------------------------------------------------------------- /indicator-sensors/is-notify.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifdef HAVE_CONFIG_H 19 | #include "config.h" 20 | #endif 21 | 22 | #include "is-log.h" 23 | #include "is-notify.h" 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | static gboolean inited = FALSE; 31 | static gboolean append = FALSE; 32 | static gboolean persistence = FALSE; 33 | 34 | gboolean is_notify_init(void) 35 | { 36 | if (!inited) 37 | { 38 | inited = notify_init(PACKAGE); 39 | if (inited) 40 | { 41 | /* look for append capability */ 42 | GList *caps = notify_get_server_caps(); 43 | while (caps != NULL) 44 | { 45 | gchar *cap = (gchar *)caps->data; 46 | if (g_strcmp0(cap, "append") == 0) 47 | { 48 | append = TRUE; 49 | } 50 | if (g_strcmp0(cap, "persistence") == 0) 51 | { 52 | persistence = TRUE; 53 | } 54 | g_free(cap); 55 | caps = g_list_delete_link(caps, caps); 56 | } 57 | } 58 | } 59 | return inited; 60 | } 61 | 62 | void is_notify_uninit() 63 | { 64 | if (inited) 65 | { 66 | notify_uninit(); 67 | } 68 | } 69 | 70 | NotifyNotification * 71 | is_notify(IsNotifyLevel level, 72 | const gchar *title, 73 | const gchar *format, 74 | ...) 75 | { 76 | NotifyNotification *notification = NULL; 77 | va_list args; 78 | 79 | g_return_val_if_fail(inited, NULL); 80 | 81 | va_start(args, format); 82 | notification = is_notifyv(level, title, format, args); 83 | va_end(args); 84 | return notification; 85 | } 86 | 87 | static const gchar * 88 | is_notify_level_to_icon(IsNotifyLevel level) 89 | { 90 | const gchar *icon = NULL; 91 | 92 | g_return_val_if_fail((int)level >= IS_NOTIFY_LEVEL_ERROR && 93 | level < NUM_IS_NOTIFY_LEVELS, NULL); 94 | 95 | switch (level) 96 | { 97 | case IS_NOTIFY_LEVEL_ERROR: 98 | icon = "dialog-error"; 99 | break; 100 | 101 | case IS_NOTIFY_LEVEL_WARNING: 102 | icon = "dialog-warning"; 103 | break; 104 | 105 | case IS_NOTIFY_LEVEL_INFO: 106 | icon = "dialog-information"; 107 | break; 108 | 109 | case NUM_IS_NOTIFY_LEVELS: 110 | default: 111 | g_assert_not_reached(); 112 | } 113 | 114 | return icon; 115 | } 116 | 117 | NotifyNotification * 118 | is_notifyv(IsNotifyLevel level, 119 | const gchar *title, 120 | const gchar *format, 121 | va_list args) 122 | { 123 | NotifyNotification *notification; 124 | gchar *body; 125 | 126 | g_return_val_if_fail(inited, NULL); 127 | 128 | body = g_strdup_vprintf(format, args); 129 | is_debug("notify", "Notify: %s - %s", title, body); 130 | notification = notify_notification_new(title, 131 | body, 132 | is_notify_level_to_icon(level)); 133 | /* set app-name */ 134 | g_object_set(G_OBJECT(notification), "app-name", PACKAGE, NULL); 135 | /* use default timeout and urgency */ 136 | notify_notification_set_timeout(notification, NOTIFY_EXPIRES_DEFAULT); 137 | notify_notification_set_urgency(notification, NOTIFY_URGENCY_NORMAL); 138 | g_free(body); 139 | if (append) 140 | { 141 | is_debug("notify", "setting x-canonical-append TRUE"); 142 | notify_notification_set_hint(notification, "x-canonical-append", 143 | g_variant_new_string("")); 144 | } 145 | if (persistence) 146 | { 147 | is_debug("notify", "setting resident TRUE and transient FALSE"); 148 | notify_notification_set_hint(notification, "resident", 149 | g_variant_new_boolean(TRUE)); 150 | notify_notification_set_hint(notification, "transient", 151 | g_variant_new_boolean(FALSE)); 152 | } 153 | /* set desktop entry hint for gnome-shell */ 154 | notify_notification_set_hint(notification, "desktop-entry", 155 | g_variant_new_string(PACKAGE)); 156 | notify_notification_show(notification, NULL); 157 | return notification; 158 | } 159 | -------------------------------------------------------------------------------- /plugins/fake/is-fake-plugin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifdef HAVE_CONFIG_H 19 | #include 20 | #endif 21 | 22 | #include "is-fake-plugin.h" 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #define FAKE_PATH_PREFIX "fake" 30 | 31 | static void peas_activatable_iface_init(PeasActivatableInterface *iface); 32 | 33 | G_DEFINE_DYNAMIC_TYPE_EXTENDED(IsFakePlugin, 34 | is_fake_plugin, 35 | PEAS_TYPE_EXTENSION_BASE, 36 | 0, 37 | G_IMPLEMENT_INTERFACE_DYNAMIC(PEAS_TYPE_ACTIVATABLE, 38 | peas_activatable_iface_init)); 39 | 40 | enum 41 | { 42 | PROP_OBJECT = 1, 43 | }; 44 | 45 | struct _IsFakePluginPrivate 46 | { 47 | IsApplication *application; 48 | GRand *rand; 49 | }; 50 | 51 | static void is_fake_plugin_finalize(GObject *object); 52 | 53 | static void 54 | is_fake_plugin_set_property(GObject *object, 55 | guint prop_id, 56 | const GValue *value, 57 | GParamSpec *pspec) 58 | { 59 | IsFakePlugin *plugin = IS_FAKE_PLUGIN(object); 60 | 61 | switch (prop_id) 62 | { 63 | case PROP_OBJECT: 64 | plugin->priv->application = IS_APPLICATION(g_value_dup_object(value)); 65 | break; 66 | 67 | default: 68 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); 69 | break; 70 | } 71 | } 72 | 73 | static void 74 | is_fake_plugin_get_property(GObject *object, 75 | guint prop_id, 76 | GValue *value, 77 | GParamSpec *pspec) 78 | { 79 | IsFakePlugin *plugin = IS_FAKE_PLUGIN(object); 80 | 81 | switch (prop_id) 82 | { 83 | case PROP_OBJECT: 84 | g_value_set_object(value, plugin->priv->application); 85 | break; 86 | 87 | default: 88 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); 89 | break; 90 | } 91 | } 92 | 93 | static void 94 | is_fake_plugin_init(IsFakePlugin *self) 95 | { 96 | IsFakePluginPrivate *priv = 97 | G_TYPE_INSTANCE_GET_PRIVATE(self, IS_TYPE_FAKE_PLUGIN, 98 | IsFakePluginPrivate); 99 | 100 | self->priv = priv; 101 | priv->rand = g_rand_new(); 102 | } 103 | 104 | static void 105 | is_fake_plugin_finalize(GObject *object) 106 | { 107 | IsFakePlugin *self = IS_FAKE_PLUGIN(object); 108 | IsFakePluginPrivate *priv = self->priv; 109 | 110 | g_rand_free(priv->rand); 111 | 112 | G_OBJECT_CLASS(is_fake_plugin_parent_class)->finalize(object); 113 | } 114 | 115 | static void 116 | update_sensor_value(IsSensor *sensor, 117 | IsFakePlugin *self) 118 | { 119 | /* fake value */ 120 | is_sensor_set_value(sensor, 121 | g_rand_double_range(self->priv->rand, 122 | is_sensor_get_low_value(sensor), 123 | is_sensor_get_high_value(sensor))); 124 | } 125 | 126 | static void 127 | is_fake_plugin_activate(PeasActivatable *activatable) 128 | { 129 | IsFakePlugin *self = IS_FAKE_PLUGIN(activatable); 130 | IsFakePluginPrivate *priv = self->priv; 131 | int i; 132 | int n_fans = 0; 133 | 134 | /* generate some fake sensors */ 135 | for (i = 0; i < 5; i++) 136 | { 137 | gchar *path; 138 | gchar *label; 139 | IsSensor *sensor; 140 | 141 | path = g_strdup_printf(FAKE_PATH_PREFIX "/sensor%d", i); 142 | if (g_rand_boolean(priv->rand)) 143 | { 144 | n_fans++; 145 | sensor = is_fan_sensor_new(path); 146 | is_sensor_set_low_value(sensor, 100.0); 147 | is_sensor_set_high_value(sensor, 5000.0); 148 | label = g_strdup_printf(_("Fake Fan %d"), 149 | n_fans); 150 | 151 | } 152 | else 153 | { 154 | sensor = is_temperature_sensor_new(path); 155 | is_sensor_set_icon(sensor, IS_STOCK_CPU); 156 | label = g_strdup_printf(_("Fake CPU %d"), 157 | i - n_fans + 1); 158 | } 159 | /* no decimal places to display */ 160 | is_sensor_set_digits(sensor, 0); 161 | is_sensor_set_label(sensor, label); 162 | /* connect to update-value signal */ 163 | g_signal_connect(sensor, "update-value", 164 | G_CALLBACK(update_sensor_value), 165 | self); 166 | is_manager_add_sensor(is_application_get_manager(priv->application), 167 | sensor); 168 | g_free(label); 169 | g_free(path); 170 | } 171 | } 172 | 173 | static void 174 | is_fake_plugin_deactivate(PeasActivatable *activatable) 175 | { 176 | IsFakePlugin *plugin = IS_FAKE_PLUGIN(activatable); 177 | IsFakePluginPrivate *priv = plugin->priv; 178 | IsManager *manager; 179 | 180 | manager = is_application_get_manager(priv->application); 181 | is_manager_remove_paths_with_prefix(manager, FAKE_PATH_PREFIX); 182 | } 183 | 184 | static void 185 | is_fake_plugin_class_init(IsFakePluginClass *klass) 186 | { 187 | GObjectClass *gobject_class = G_OBJECT_CLASS(klass); 188 | 189 | g_type_class_add_private(klass, sizeof(IsFakePluginPrivate)); 190 | 191 | gobject_class->get_property = is_fake_plugin_get_property; 192 | gobject_class->set_property = is_fake_plugin_set_property; 193 | gobject_class->finalize = is_fake_plugin_finalize; 194 | 195 | g_object_class_override_property(gobject_class, PROP_OBJECT, "object"); 196 | } 197 | 198 | static void 199 | peas_activatable_iface_init(PeasActivatableInterface *iface) 200 | { 201 | iface->activate = is_fake_plugin_activate; 202 | iface->deactivate = is_fake_plugin_deactivate; 203 | } 204 | 205 | static void 206 | is_fake_plugin_class_finalize(IsFakePluginClass *klass) 207 | { 208 | /* nothing to do */ 209 | } 210 | 211 | G_MODULE_EXPORT void 212 | peas_register_types(PeasObjectModule *module) 213 | { 214 | is_fake_plugin_register_type(G_TYPE_MODULE(module)); 215 | 216 | peas_object_module_register_extension_type(module, 217 | PEAS_TYPE_ACTIVATABLE, 218 | IS_TYPE_FAKE_PLUGIN); 219 | } 220 | -------------------------------------------------------------------------------- /indicator-sensors/indicator-sensors.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #ifdef HAVE_CONFIG_H 19 | #include 20 | #endif 21 | 22 | #include "is-log.h" 23 | #include "is-notify.h" 24 | #include "is-application.h" 25 | #include "is-indicator.h" 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | static gboolean verbose = FALSE; 34 | 35 | static void 36 | on_extension_added(PeasExtensionSet *set, 37 | PeasPluginInfo *info, 38 | PeasExtension *exten, 39 | IsApplication *application) 40 | { 41 | is_debug("main", "Activating plugin: %s", peas_plugin_info_get_name(info)); 42 | peas_extension_call(exten, "activate", application); 43 | } 44 | 45 | static void 46 | on_extension_removed(PeasExtensionSet *set, 47 | PeasPluginInfo *info, 48 | PeasExtension *exten, 49 | IsApplication *application) 50 | { 51 | is_debug("main", "Deactivating plugin: %s", peas_plugin_info_get_name(info)); 52 | peas_extension_call(exten, "deactivate", application); 53 | } 54 | 55 | static void 56 | on_plugin_list_notify(PeasEngine *engine, 57 | GParamSpec *pspec, 58 | gpointer user_data) 59 | { 60 | const GList *plugins = peas_engine_get_plugin_list(engine); 61 | while (plugins != NULL) 62 | { 63 | PeasPluginInfo *info = PEAS_PLUGIN_INFO(plugins->data); 64 | peas_engine_load_plugin(engine, info); 65 | plugins = plugins->next; 66 | } 67 | } 68 | 69 | static void 70 | clear_sensor_icon_cache(void) 71 | { 72 | GDir *dir = NULL; 73 | const gchar *filename; 74 | gchar *cache_dir = g_build_filename(g_get_user_cache_dir(), 75 | PACKAGE, "icons", NULL); 76 | 77 | dir = g_dir_open(cache_dir, 0, NULL); 78 | if (dir == NULL) 79 | { 80 | is_error("main", "Failed to open icon cache dir %s\n", cache_dir); 81 | goto exit; 82 | } 83 | 84 | for (filename = g_dir_read_name(dir); 85 | filename != NULL; 86 | filename = g_dir_read_name(dir)) 87 | { 88 | gchar *path = g_build_filename(cache_dir, filename, NULL); 89 | int ret = g_remove(path); 90 | if (ret < 0) 91 | { 92 | is_error("main", "Error removing icon cache file: %s\n", path); 93 | } 94 | g_free(path); 95 | } 96 | g_dir_close(dir); 97 | 98 | exit: 99 | g_free(cache_dir); 100 | return; 101 | } 102 | 103 | static GOptionEntry options[] = 104 | { 105 | { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Print more verbose debug output", NULL }, 106 | { NULL } 107 | }; 108 | 109 | int main(int argc, char **argv) 110 | { 111 | GOptionContext *context; 112 | IsApplication *application; 113 | IsTemperatureSensorScale scale; 114 | gboolean show_indicator; 115 | GSettings *settings; 116 | IsManager *manager; 117 | gchar *plugin_dir; 118 | PeasEngine *engine; 119 | PeasExtensionSet *set; 120 | GError *error = NULL; 121 | gchar *locale_dir; 122 | 123 | /* Setup locale/gettext */ 124 | setlocale(LC_ALL, ""); 125 | 126 | locale_dir = g_build_filename(DATADIR, "locale", NULL); 127 | bindtextdomain(GETTEXT_PACKAGE, locale_dir); 128 | g_free(locale_dir); 129 | 130 | bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); 131 | textdomain(GETTEXT_PACKAGE); 132 | 133 | context = g_option_context_new("- hardware sensors monitor"); 134 | g_option_context_add_main_entries(context, options, GETTEXT_PACKAGE); 135 | g_option_context_add_group(context, gtk_get_option_group (TRUE)); 136 | 137 | if (!g_option_context_parse(context, &argc, &argv, &error)) 138 | { 139 | g_print("command-line option parsing failed: %s\n", error->message); 140 | goto exit; 141 | } 142 | 143 | if (verbose) 144 | { 145 | is_log_set_level(IS_LOG_LEVEL_DEBUG); 146 | } 147 | 148 | /* clear the sensor icon cache directory to use any new icon theme */ 149 | clear_sensor_icon_cache(); 150 | 151 | gtk_init(&argc, &argv); 152 | 153 | if (!g_irepository_require(g_irepository_get_default(), "Peas", "1.0", 154 | 0, &error)) 155 | { 156 | is_warning("main", "Could not load Peas repository: %s", error->message); 157 | g_error_free (error); 158 | error = NULL; 159 | } 160 | 161 | engine = peas_engine_get_default(); 162 | g_signal_connect(engine, "notify::plugin-list", 163 | G_CALLBACK(on_plugin_list_notify), NULL); 164 | 165 | /* add home dir to search path */ 166 | plugin_dir = g_build_filename(g_get_user_config_dir(), PACKAGE, 167 | "plugins", NULL); 168 | peas_engine_add_search_path(engine, plugin_dir, NULL); 169 | g_free(plugin_dir); 170 | 171 | /* add system path to search path */ 172 | plugin_dir = g_build_filename(LIBDIR, PACKAGE, "plugins", NULL); 173 | peas_engine_add_search_path(engine, plugin_dir, NULL); 174 | g_free(plugin_dir); 175 | 176 | /* init notifications */ 177 | is_notify_init(); 178 | /* make sure we create the application with the default settings */ 179 | settings = g_settings_new("indicator-sensors.application"); 180 | show_indicator = g_settings_get_boolean(settings, "show-indicator"); 181 | scale = g_settings_get_int(settings, "temperature-scale"); 182 | application = g_object_new(IS_TYPE_APPLICATION, 183 | "manager", is_manager_new(), 184 | "temperature-scale", scale, 185 | "show-indicator", show_indicator, 186 | NULL); 187 | g_settings_bind(settings, "temperature-scale", 188 | application, "temperature-scale", 189 | G_SETTINGS_BIND_DEFAULT); 190 | g_settings_bind(settings, "show-indicator", 191 | application, "show-indicator", 192 | G_SETTINGS_BIND_DEFAULT); 193 | 194 | /* create extension set and set manager as object */ 195 | set = peas_extension_set_new(engine, PEAS_TYPE_ACTIVATABLE, 196 | "object", application, NULL); 197 | 198 | /* activate all activatable extensions */ 199 | peas_extension_set_call(set, "activate"); 200 | 201 | /* and make sure to activate any ones which are found in the future */ 202 | g_signal_connect(set, "extension-added", 203 | G_CALLBACK(on_extension_added), application); 204 | g_signal_connect(set, "extension-removed", 205 | G_CALLBACK(on_extension_removed), application); 206 | 207 | /* since all plugins are now inited show a notification if we detected 208 | * sensors but none are enabled - TODO: perhaps just open the pref's 209 | * dialog?? */ 210 | manager = is_application_get_manager(application); 211 | GSList *sensors = is_manager_get_all_sensors_list(manager); 212 | if (sensors) 213 | { 214 | gchar **enabled_sensors = is_manager_get_enabled_sensors(manager); 215 | if (!g_strv_length(enabled_sensors)) 216 | { 217 | is_notify(IS_NOTIFY_LEVEL_INFO, 218 | _("No Sensors Enabled For Monitoring"), 219 | _("Sensors detected but none are enabled for monitoring. To enable monitoring of sensors open the Preferences window and select the sensors to monitor")); 220 | } 221 | g_strfreev(enabled_sensors); 222 | g_slist_foreach(sensors, (GFunc)g_object_unref, NULL); 223 | g_slist_free(sensors); 224 | } 225 | 226 | gtk_main(); 227 | 228 | g_object_unref(application); 229 | is_notify_uninit(); 230 | 231 | exit: 232 | return 0; 233 | } 234 | -------------------------------------------------------------------------------- /indicator-sensors/is-temperature-sensor.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011-2019 Alex Murray 3 | * 4 | * indicator-sensors is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * indicator-sensors is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with indicator-sensors. If not, see . 16 | */ 17 | 18 | #include 19 | #include "is-temperature-sensor.h" 20 | #include "is-log.h" 21 | 22 | G_DEFINE_TYPE(IsTemperatureSensor, is_temperature_sensor, IS_TYPE_SENSOR); 23 | 24 | static void is_temperature_sensor_finalize(GObject *object); 25 | static void is_temperature_sensor_get_property(GObject *object, 26 | guint property_id, GValue *value, GParamSpec *pspec); 27 | static void is_temperature_sensor_set_property(GObject *object, 28 | guint property_id, const GValue *value, GParamSpec *pspec); 29 | 30 | /* properties */ 31 | enum 32 | { 33 | PROP_0, 34 | PROP_SCALE, 35 | LAST_PROPERTY 36 | }; 37 | 38 | static GParamSpec *properties[LAST_PROPERTY]; 39 | 40 | struct _IsTemperatureSensorPrivate 41 | { 42 | IsTemperatureSensorScale scale; 43 | }; 44 | 45 | static void 46 | is_temperature_sensor_class_init(IsTemperatureSensorClass *klass) 47 | { 48 | GObjectClass *gobject_class = G_OBJECT_CLASS(klass); 49 | 50 | g_type_class_add_private(klass, sizeof(IsTemperatureSensorPrivate)); 51 | 52 | gobject_class->finalize = is_temperature_sensor_finalize; 53 | gobject_class->get_property = is_temperature_sensor_get_property; 54 | gobject_class->set_property = is_temperature_sensor_set_property; 55 | 56 | /* TODO: convert to an enum type */ 57 | properties[PROP_SCALE] = g_param_spec_int("scale", "temperature scale", 58 | "Sensor temperature scale.", 59 | IS_TEMPERATURE_SENSOR_SCALE_CELSIUS, 60 | IS_TEMPERATURE_SENSOR_SCALE_FAHRENHEIT, 61 | IS_TEMPERATURE_SENSOR_SCALE_CELSIUS, 62 | G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); 63 | g_object_class_install_property(gobject_class, PROP_SCALE, 64 | properties[PROP_SCALE]); 65 | } 66 | 67 | static const gchar * 68 | is_temperature_sensor_scale_to_string(IsTemperatureSensorScale scale) 69 | { 70 | const gchar *string = ""; 71 | 72 | switch (scale) 73 | { 74 | case IS_TEMPERATURE_SENSOR_SCALE_CELSIUS: 75 | string = "\342\204\203"; 76 | break; 77 | case IS_TEMPERATURE_SENSOR_SCALE_FAHRENHEIT: 78 | string = "\342\204\211"; 79 | break; 80 | case IS_TEMPERATURE_SENSOR_SCALE_INVALID: 81 | case NUM_IS_TEMPERATURE_SENSOR_SCALE: 82 | default: 83 | is_warning("temperature sensor", 84 | "Unable to convert IsTemperatureSensorScale %d to string", 85 | scale); 86 | } 87 | return string; 88 | } 89 | 90 | static void 91 | is_temperature_sensor_init(IsTemperatureSensor *self) 92 | { 93 | IsTemperatureSensorPrivate *priv = 94 | G_TYPE_INSTANCE_GET_PRIVATE(self, IS_TYPE_TEMPERATURE_SENSOR, 95 | IsTemperatureSensorPrivate); 96 | 97 | self->priv = priv; 98 | 99 | /* initialise scale to celcius */ 100 | priv->scale = IS_TEMPERATURE_SENSOR_SCALE_CELSIUS; 101 | is_sensor_set_units(IS_SENSOR(self), 102 | is_temperature_sensor_scale_to_string(priv->scale)); 103 | } 104 | 105 | static void 106 | is_temperature_sensor_get_property(GObject *object, 107 | guint property_id, GValue *value, GParamSpec *pspec) 108 | { 109 | IsTemperatureSensor *self = IS_TEMPERATURE_SENSOR(object); 110 | 111 | switch (property_id) 112 | { 113 | case PROP_SCALE: 114 | g_value_set_int(value, is_temperature_sensor_get_scale(self)); 115 | break; 116 | default: 117 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); 118 | break; 119 | } 120 | } 121 | 122 | static void 123 | is_temperature_sensor_set_property(GObject *object, 124 | guint property_id, const GValue *value, GParamSpec *pspec) 125 | { 126 | IsTemperatureSensor *self = IS_TEMPERATURE_SENSOR(object); 127 | 128 | switch (property_id) 129 | { 130 | case PROP_SCALE: 131 | is_temperature_sensor_set_scale(self, g_value_get_int(value)); 132 | break; 133 | default: 134 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); 135 | break; 136 | } 137 | } 138 | 139 | static void 140 | is_temperature_sensor_finalize(GObject *object) 141 | { 142 | IsTemperatureSensor *self = (IsTemperatureSensor *)object; 143 | 144 | /* Make compiler happy */ 145 | (void)self; 146 | 147 | G_OBJECT_CLASS(is_temperature_sensor_parent_class)->finalize(object); 148 | } 149 | 150 | IsSensor * 151 | is_temperature_sensor_new(const gchar *path) 152 | { 153 | return g_object_new(IS_TYPE_TEMPERATURE_SENSOR, 154 | "path", path, 155 | "value", IS_SENSOR_VALUE_UNSET, 156 | "digits", 0, 157 | "scale", IS_TEMPERATURE_SENSOR_SCALE_CELSIUS, 158 | "high-value", 100.0, 159 | NULL); 160 | } 161 | 162 | IsTemperatureSensorScale 163 | is_temperature_sensor_get_scale(IsTemperatureSensor *self) 164 | { 165 | g_return_val_if_fail(IS_IS_TEMPERATURE_SENSOR(self), 0); 166 | 167 | return self->priv->scale; 168 | } 169 | 170 | static gdouble 171 | celcius_to_fahrenheit(gdouble celcius) 172 | { 173 | return (celcius * 9.0 / 5.0) + 32.0; 174 | } 175 | 176 | static gdouble 177 | fahrenheit_to_celcius(gdouble fahrenheit) 178 | { 179 | return (fahrenheit - 32.0) * 5.0 / 9.0; 180 | } 181 | 182 | 183 | void is_temperature_sensor_set_scale(IsTemperatureSensor *self, 184 | IsTemperatureSensorScale scale) 185 | { 186 | IsTemperatureSensorPrivate *priv; 187 | 188 | g_return_if_fail(IS_IS_TEMPERATURE_SENSOR(self)); 189 | g_return_if_fail(scale == IS_TEMPERATURE_SENSOR_SCALE_CELSIUS || 190 | scale == IS_TEMPERATURE_SENSOR_SCALE_FAHRENHEIT); 191 | 192 | priv = self->priv; 193 | 194 | if (scale != priv->scale) 195 | { 196 | gdouble value = is_sensor_get_value(IS_SENSOR(self)); 197 | gdouble alarm_value = is_sensor_get_alarm_value(IS_SENSOR(self)); 198 | gdouble low_value = is_sensor_get_low_value(IS_SENSOR(self)); 199 | gdouble high_value = is_sensor_get_high_value(IS_SENSOR(self)); 200 | 201 | /* convert from current scale to new */ 202 | switch (priv->scale) 203 | { 204 | case IS_TEMPERATURE_SENSOR_SCALE_CELSIUS: 205 | value = celcius_to_fahrenheit(value); 206 | alarm_value = celcius_to_fahrenheit(alarm_value); 207 | low_value = celcius_to_fahrenheit(low_value); 208 | high_value = celcius_to_fahrenheit(high_value); 209 | break; 210 | case IS_TEMPERATURE_SENSOR_SCALE_FAHRENHEIT: 211 | value = fahrenheit_to_celcius(value); 212 | alarm_value = fahrenheit_to_celcius(alarm_value); 213 | low_value = fahrenheit_to_celcius(low_value); 214 | high_value = fahrenheit_to_celcius(high_value); 215 | break; 216 | case IS_TEMPERATURE_SENSOR_SCALE_INVALID: 217 | case NUM_IS_TEMPERATURE_SENSOR_SCALE: 218 | default: 219 | g_assert_not_reached(); 220 | break; 221 | } 222 | priv->scale = scale; 223 | is_sensor_set_units(IS_SENSOR(self), 224 | is_temperature_sensor_scale_to_string(priv->scale)); 225 | /* set all in one go */ 226 | g_object_set(self, 227 | "value", value, 228 | "alarm-value", alarm_value, 229 | "low-value", low_value, 230 | "high-value", high_value, 231 | NULL); 232 | } 233 | 234 | } 235 | 236 | void 237 | is_temperature_sensor_set_celsius_value(IsTemperatureSensor *self, 238 | gdouble value) 239 | { 240 | IsTemperatureSensorPrivate *priv; 241 | 242 | g_return_if_fail(IS_IS_TEMPERATURE_SENSOR(self)); 243 | 244 | priv = self->priv; 245 | 246 | switch (priv->scale) 247 | { 248 | case IS_TEMPERATURE_SENSOR_SCALE_CELSIUS: 249 | break; 250 | 251 | case IS_TEMPERATURE_SENSOR_SCALE_FAHRENHEIT: 252 | value = celcius_to_fahrenheit(value); 253 | break; 254 | 255 | case IS_TEMPERATURE_SENSOR_SCALE_INVALID: 256 | case NUM_IS_TEMPERATURE_SENSOR_SCALE: 257 | default: 258 | g_assert_not_reached(); 259 | } 260 | is_sensor_set_value(IS_SENSOR(self), value); 261 | } 262 | -------------------------------------------------------------------------------- /po/eo.po: -------------------------------------------------------------------------------- 1 | # Esperanto translation for indicator-sensors 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2011. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2011-04-29 13:55+0000\n" 12 | "Last-Translator: FULL NAME \n" 13 | "Language-Team: Esperanto \n" 14 | "Language: eo\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "" 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | 117 | #: ../indicator-sensors/is-application.c:824 118 | msgid "Indicator for GNOME / Unity showing hardware sensors." 119 | msgstr "" 120 | 121 | #: ../indicator-sensors/is-fan-sensor.c:40 122 | msgid " RPM" 123 | msgstr "" 124 | 125 | #: ../indicator-sensors/is-indicator.c:160 126 | msgid "Preferences…" 127 | msgstr "" 128 | 129 | #: ../indicator-sensors/is-indicator.c:161 130 | msgid "Preferences" 131 | msgstr "" 132 | 133 | #: ../indicator-sensors/is-indicator.c:162 134 | msgid "About…" 135 | msgstr "" 136 | 137 | #: ../indicator-sensors/is-indicator.c:163 138 | msgid "About" 139 | msgstr "" 140 | 141 | #: ../indicator-sensors/is-indicator.c:164 142 | #: ../indicator-sensors/is-indicator.c:165 143 | msgid "Quit" 144 | msgstr "" 145 | 146 | #: ../indicator-sensors/is-indicator.c:237 147 | msgid "No Sensors" 148 | msgstr "" 149 | 150 | #: ../indicator-sensors/is-indicator.c:554 151 | #: ../indicator-sensors/is-indicator.c:680 152 | msgid "No active sensors" 153 | msgstr "" 154 | 155 | #: ../indicator-sensors/is-manager.c:302 156 | #: ../indicator-sensors/is-sensor-dialog.c:315 157 | msgid "Sensor" 158 | msgstr "" 159 | 160 | #: ../indicator-sensors/is-manager.c:310 161 | #: ../indicator-sensors/is-preferences-dialog.c:149 162 | msgid "Icon" 163 | msgstr "" 164 | 165 | #: ../indicator-sensors/is-manager.c:319 166 | #: ../indicator-sensors/is-preferences-dialog.c:154 167 | #: ../indicator-sensors/is-sensor-dialog.c:106 168 | msgid "Label" 169 | msgstr "" 170 | 171 | #: ../indicator-sensors/is-manager.c:329 172 | msgid "Enabled" 173 | msgstr "" 174 | 175 | #: ../indicator-sensors/is-preferences-dialog.c:108 176 | msgid "Hardware Sensors Indicator Preferences" 177 | msgstr "" 178 | 179 | #: ../indicator-sensors/is-preferences-dialog.c:127 180 | msgid "General" 181 | msgstr "" 182 | 183 | #: ../indicator-sensors/is-preferences-dialog.c:135 184 | msgid "Start automatically on login" 185 | msgstr "" 186 | 187 | #: ../indicator-sensors/is-preferences-dialog.c:141 188 | msgid "Primary sensor display" 189 | msgstr "" 190 | 191 | #: ../indicator-sensors/is-preferences-dialog.c:159 192 | msgid "Value" 193 | msgstr "" 194 | 195 | #: ../indicator-sensors/is-preferences-dialog.c:176 196 | msgid "Celsius (°C)" 197 | msgstr "" 198 | 199 | #: ../indicator-sensors/is-preferences-dialog.c:187 200 | msgid "Fahrenheit (°F)" 201 | msgstr "" 202 | 203 | #: ../indicator-sensors/is-sensor.c:380 204 | msgid "Sensor Alarm" 205 | msgstr "" 206 | 207 | #: ../indicator-sensors/is-sensor-dialog.c:88 208 | msgid " Sensor Properties" 209 | msgstr "" 210 | 211 | #: ../indicator-sensors/is-sensor-dialog.c:115 212 | msgid "Alarm" 213 | msgstr "" 214 | 215 | #: ../indicator-sensors/is-sensor-dialog.c:123 216 | msgid "Disabled" 217 | msgstr "" 218 | 219 | #: ../indicator-sensors/is-sensor-dialog.c:126 220 | msgid "Below" 221 | msgstr "" 222 | 223 | #: ../indicator-sensors/is-sensor-dialog.c:129 224 | msgid "Above" 225 | msgstr "" 226 | 227 | #: ../indicator-sensors/is-sensor-dialog.c:147 228 | msgid "Low value" 229 | msgstr "" 230 | 231 | #: ../indicator-sensors/is-sensor-dialog.c:166 232 | msgid "High value" 233 | msgstr "" 234 | 235 | #. first placeholder is sensor name 236 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 237 | #, c-format 238 | msgid "Error reading temperature value for GPU %d" 239 | msgstr "" 240 | 241 | #. first placeholder is sensor name 242 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 243 | #, c-format 244 | msgid "Error reading fanspeed value for GPU %d" 245 | msgstr "" 246 | 247 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 248 | msgid "Temperature" 249 | msgstr "" 250 | 251 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 252 | msgid "Fan" 253 | msgstr "" 254 | 255 | #. first placeholder is sensor name, 256 | #. * second is error message 257 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 258 | #, c-format 259 | msgid "Error getting sensor value for sensor %s: %s [%d]" 260 | msgstr "" 261 | 262 | #. translators: V is the unit for Voltage, replace with 263 | #. appropriate unit 264 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 265 | msgid "V" 266 | msgstr "" 267 | 268 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 269 | msgid "No Sensors Detected" 270 | msgstr "" 271 | 272 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 273 | #, c-format 274 | msgid "" 275 | "Try running the command 'sensors-detect' from the command-line and " 276 | "restarting %s" 277 | msgstr "" 278 | 279 | #. first placeholder is 280 | #. * sensor name 281 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 282 | #, c-format 283 | msgid "Error getting sensor value for sensor %s" 284 | msgstr "" 285 | 286 | #: ../plugins/udisks/is-udisks-plugin.c:149 287 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 288 | #, c-format 289 | msgid "Error reading new SMART data for sensor %s" 290 | msgstr "" 291 | 292 | #: ../plugins/udisks/is-udisks-plugin.c:165 293 | #, c-format 294 | msgid "Error refreshing SMART data for sensor %s" 295 | msgstr "" 296 | -------------------------------------------------------------------------------- /po/sr.po: -------------------------------------------------------------------------------- 1 | # Serbian translation for indicator-sensors 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2011. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2011-07-23 23:15+0000\n" 12 | "Last-Translator: Мирослав Николић \n" 13 | "Language-Team: Serbian \n" 14 | "Language: sr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "Омогућени сензори" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "" 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | 117 | #: ../indicator-sensors/is-application.c:824 118 | msgid "Indicator for GNOME / Unity showing hardware sensors." 119 | msgstr "" 120 | 121 | #: ../indicator-sensors/is-fan-sensor.c:40 122 | msgid " RPM" 123 | msgstr "" 124 | 125 | #: ../indicator-sensors/is-indicator.c:160 126 | msgid "Preferences…" 127 | msgstr "" 128 | 129 | #: ../indicator-sensors/is-indicator.c:161 130 | msgid "Preferences" 131 | msgstr "" 132 | 133 | #: ../indicator-sensors/is-indicator.c:162 134 | msgid "About…" 135 | msgstr "" 136 | 137 | #: ../indicator-sensors/is-indicator.c:163 138 | msgid "About" 139 | msgstr "" 140 | 141 | #: ../indicator-sensors/is-indicator.c:164 142 | #: ../indicator-sensors/is-indicator.c:165 143 | msgid "Quit" 144 | msgstr "" 145 | 146 | #: ../indicator-sensors/is-indicator.c:237 147 | msgid "No Sensors" 148 | msgstr "Нема сензора" 149 | 150 | #: ../indicator-sensors/is-indicator.c:554 151 | #: ../indicator-sensors/is-indicator.c:680 152 | msgid "No active sensors" 153 | msgstr "Нема активних сензора" 154 | 155 | #: ../indicator-sensors/is-manager.c:302 156 | #: ../indicator-sensors/is-sensor-dialog.c:315 157 | msgid "Sensor" 158 | msgstr "Сензор" 159 | 160 | #: ../indicator-sensors/is-manager.c:310 161 | #: ../indicator-sensors/is-preferences-dialog.c:149 162 | msgid "Icon" 163 | msgstr "" 164 | 165 | #: ../indicator-sensors/is-manager.c:319 166 | #: ../indicator-sensors/is-preferences-dialog.c:154 167 | #: ../indicator-sensors/is-sensor-dialog.c:106 168 | msgid "Label" 169 | msgstr "Етикета" 170 | 171 | #: ../indicator-sensors/is-manager.c:329 172 | msgid "Enabled" 173 | msgstr "Укључено" 174 | 175 | #: ../indicator-sensors/is-preferences-dialog.c:108 176 | msgid "Hardware Sensors Indicator Preferences" 177 | msgstr "" 178 | 179 | #: ../indicator-sensors/is-preferences-dialog.c:127 180 | msgid "General" 181 | msgstr "Опште" 182 | 183 | #: ../indicator-sensors/is-preferences-dialog.c:135 184 | msgid "Start automatically on login" 185 | msgstr "Покрени приликом пријављивања" 186 | 187 | #: ../indicator-sensors/is-preferences-dialog.c:141 188 | msgid "Primary sensor display" 189 | msgstr "" 190 | 191 | #: ../indicator-sensors/is-preferences-dialog.c:159 192 | msgid "Value" 193 | msgstr "" 194 | 195 | #: ../indicator-sensors/is-preferences-dialog.c:176 196 | msgid "Celsius (°C)" 197 | msgstr "Целзијус (°C)" 198 | 199 | #: ../indicator-sensors/is-preferences-dialog.c:187 200 | msgid "Fahrenheit (°F)" 201 | msgstr "Фаренхајт (°F)" 202 | 203 | #: ../indicator-sensors/is-sensor.c:380 204 | msgid "Sensor Alarm" 205 | msgstr "" 206 | 207 | #: ../indicator-sensors/is-sensor-dialog.c:88 208 | msgid " Sensor Properties" 209 | msgstr "" 210 | 211 | #: ../indicator-sensors/is-sensor-dialog.c:115 212 | msgid "Alarm" 213 | msgstr "" 214 | 215 | #: ../indicator-sensors/is-sensor-dialog.c:123 216 | msgid "Disabled" 217 | msgstr "" 218 | 219 | #: ../indicator-sensors/is-sensor-dialog.c:126 220 | msgid "Below" 221 | msgstr "" 222 | 223 | #: ../indicator-sensors/is-sensor-dialog.c:129 224 | msgid "Above" 225 | msgstr "" 226 | 227 | #: ../indicator-sensors/is-sensor-dialog.c:147 228 | msgid "Low value" 229 | msgstr "" 230 | 231 | #: ../indicator-sensors/is-sensor-dialog.c:166 232 | msgid "High value" 233 | msgstr "" 234 | 235 | #. first placeholder is sensor name 236 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 237 | #, c-format 238 | msgid "Error reading temperature value for GPU %d" 239 | msgstr "" 240 | 241 | #. first placeholder is sensor name 242 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 243 | #, c-format 244 | msgid "Error reading fanspeed value for GPU %d" 245 | msgstr "" 246 | 247 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 248 | msgid "Temperature" 249 | msgstr "" 250 | 251 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 252 | msgid "Fan" 253 | msgstr "" 254 | 255 | #. first placeholder is sensor name, 256 | #. * second is error message 257 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 258 | #, c-format 259 | msgid "Error getting sensor value for sensor %s: %s [%d]" 260 | msgstr "" 261 | 262 | #. translators: V is the unit for Voltage, replace with 263 | #. appropriate unit 264 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 265 | msgid "V" 266 | msgstr "" 267 | 268 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 269 | msgid "No Sensors Detected" 270 | msgstr "" 271 | 272 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 273 | #, c-format 274 | msgid "" 275 | "Try running the command 'sensors-detect' from the command-line and " 276 | "restarting %s" 277 | msgstr "" 278 | 279 | #. first placeholder is 280 | #. * sensor name 281 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 282 | #, c-format 283 | msgid "Error getting sensor value for sensor %s" 284 | msgstr "" 285 | 286 | #: ../plugins/udisks/is-udisks-plugin.c:149 287 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 288 | #, c-format 289 | msgid "Error reading new SMART data for sensor %s" 290 | msgstr "" 291 | 292 | #: ../plugins/udisks/is-udisks-plugin.c:165 293 | #, c-format 294 | msgid "Error refreshing SMART data for sensor %s" 295 | msgstr "" 296 | -------------------------------------------------------------------------------- /po/ca.po: -------------------------------------------------------------------------------- 1 | # Catalan translation for indicator-sensors 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2011. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2013-08-06 19:27+0000\n" 12 | "Last-Translator: pataquets \n" 13 | "Language-Team: Catalan \n" 14 | "Language: ca\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "Sensors activats" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "Escala de temperatures" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "" 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "Mostra indicador" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | 117 | #: ../indicator-sensors/is-application.c:824 118 | msgid "Indicator for GNOME / Unity showing hardware sensors." 119 | msgstr "" 120 | 121 | #: ../indicator-sensors/is-fan-sensor.c:40 122 | msgid " RPM" 123 | msgstr " RPM" 124 | 125 | #: ../indicator-sensors/is-indicator.c:160 126 | msgid "Preferences…" 127 | msgstr "Preferències…" 128 | 129 | #: ../indicator-sensors/is-indicator.c:161 130 | msgid "Preferences" 131 | msgstr "Preferències" 132 | 133 | #: ../indicator-sensors/is-indicator.c:162 134 | msgid "About…" 135 | msgstr "" 136 | 137 | #: ../indicator-sensors/is-indicator.c:163 138 | msgid "About" 139 | msgstr "Quant a" 140 | 141 | #: ../indicator-sensors/is-indicator.c:164 142 | #: ../indicator-sensors/is-indicator.c:165 143 | msgid "Quit" 144 | msgstr "Surt" 145 | 146 | #: ../indicator-sensors/is-indicator.c:237 147 | msgid "No Sensors" 148 | msgstr "No hi ha sensors" 149 | 150 | #: ../indicator-sensors/is-indicator.c:554 151 | #: ../indicator-sensors/is-indicator.c:680 152 | msgid "No active sensors" 153 | msgstr "No hi ha sensors actius" 154 | 155 | #: ../indicator-sensors/is-manager.c:302 156 | #: ../indicator-sensors/is-sensor-dialog.c:315 157 | msgid "Sensor" 158 | msgstr "Sensor" 159 | 160 | #: ../indicator-sensors/is-manager.c:310 161 | #: ../indicator-sensors/is-preferences-dialog.c:149 162 | msgid "Icon" 163 | msgstr "Icona" 164 | 165 | #: ../indicator-sensors/is-manager.c:319 166 | #: ../indicator-sensors/is-preferences-dialog.c:154 167 | #: ../indicator-sensors/is-sensor-dialog.c:106 168 | msgid "Label" 169 | msgstr "Etiqueta" 170 | 171 | #: ../indicator-sensors/is-manager.c:329 172 | msgid "Enabled" 173 | msgstr "Activat" 174 | 175 | #: ../indicator-sensors/is-preferences-dialog.c:108 176 | msgid "Hardware Sensors Indicator Preferences" 177 | msgstr "" 178 | 179 | #: ../indicator-sensors/is-preferences-dialog.c:127 180 | msgid "General" 181 | msgstr "General" 182 | 183 | #: ../indicator-sensors/is-preferences-dialog.c:135 184 | msgid "Start automatically on login" 185 | msgstr "" 186 | 187 | #: ../indicator-sensors/is-preferences-dialog.c:141 188 | msgid "Primary sensor display" 189 | msgstr "" 190 | 191 | #: ../indicator-sensors/is-preferences-dialog.c:159 192 | msgid "Value" 193 | msgstr "" 194 | 195 | #: ../indicator-sensors/is-preferences-dialog.c:176 196 | msgid "Celsius (°C)" 197 | msgstr "Celsius (°C)" 198 | 199 | #: ../indicator-sensors/is-preferences-dialog.c:187 200 | msgid "Fahrenheit (°F)" 201 | msgstr "Fahrenheit (°F)" 202 | 203 | #: ../indicator-sensors/is-sensor.c:380 204 | msgid "Sensor Alarm" 205 | msgstr "" 206 | 207 | #: ../indicator-sensors/is-sensor-dialog.c:88 208 | msgid " Sensor Properties" 209 | msgstr "" 210 | 211 | #: ../indicator-sensors/is-sensor-dialog.c:115 212 | msgid "Alarm" 213 | msgstr "Alarma" 214 | 215 | #: ../indicator-sensors/is-sensor-dialog.c:123 216 | msgid "Disabled" 217 | msgstr "Desactivat" 218 | 219 | #: ../indicator-sensors/is-sensor-dialog.c:126 220 | msgid "Below" 221 | msgstr "Per sota" 222 | 223 | #: ../indicator-sensors/is-sensor-dialog.c:129 224 | msgid "Above" 225 | msgstr "Per damunt" 226 | 227 | #: ../indicator-sensors/is-sensor-dialog.c:147 228 | msgid "Low value" 229 | msgstr "" 230 | 231 | #: ../indicator-sensors/is-sensor-dialog.c:166 232 | msgid "High value" 233 | msgstr "" 234 | 235 | #. first placeholder is sensor name 236 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 237 | #, c-format 238 | msgid "Error reading temperature value for GPU %d" 239 | msgstr "" 240 | 241 | #. first placeholder is sensor name 242 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 243 | #, c-format 244 | msgid "Error reading fanspeed value for GPU %d" 245 | msgstr "" 246 | 247 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 248 | msgid "Temperature" 249 | msgstr "Temperatura" 250 | 251 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 252 | msgid "Fan" 253 | msgstr "Ventilador" 254 | 255 | #. first placeholder is sensor name, 256 | #. * second is error message 257 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 258 | #, c-format 259 | msgid "Error getting sensor value for sensor %s: %s [%d]" 260 | msgstr "" 261 | 262 | #. translators: V is the unit for Voltage, replace with 263 | #. appropriate unit 264 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 265 | msgid "V" 266 | msgstr "V" 267 | 268 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 269 | msgid "No Sensors Detected" 270 | msgstr "" 271 | 272 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 273 | #, c-format 274 | msgid "" 275 | "Try running the command 'sensors-detect' from the command-line and " 276 | "restarting %s" 277 | msgstr "" 278 | 279 | #. first placeholder is 280 | #. * sensor name 281 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 282 | #, c-format 283 | msgid "Error getting sensor value for sensor %s" 284 | msgstr "" 285 | 286 | #: ../plugins/udisks/is-udisks-plugin.c:149 287 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 288 | #, c-format 289 | msgid "Error reading new SMART data for sensor %s" 290 | msgstr "" 291 | 292 | #: ../plugins/udisks/is-udisks-plugin.c:165 293 | #, c-format 294 | msgid "Error refreshing SMART data for sensor %s" 295 | msgstr "" 296 | -------------------------------------------------------------------------------- /configure.ac: -------------------------------------------------------------------------------- 1 | # ================= initialization =================== # 2 | AC_PREREQ([2.68]) 3 | AC_INIT([Hardware Sensors Indicator],[1.4],[https://github.com/alexmurray/indicator-sensors],[indicator-sensors]) 4 | 5 | AC_CONFIG_HEADERS([indicator-sensors/config.h]) 6 | AC_CONFIG_SRCDIR([indicator-sensors/indicator-sensors.c]) 7 | AC_CONFIG_MACRO_DIR([m4]) 8 | 9 | AM_INIT_AUTOMAKE([1.11 dist-bzip2 foreign]) 10 | AM_MAINTAINER_MODE([enable]) 11 | 12 | AM_SILENT_RULES([yes]) 13 | 14 | # ============== basic compiler settings ============= # 15 | AC_PROG_CC 16 | AC_PROG_INSTALL 17 | AC_PROG_LIBTOOL 18 | AC_PROG_AWK 19 | AC_PROG_FGREP 20 | AC_PROG_SED 21 | AC_HEADER_STDC 22 | 23 | # ================= initialize libtool =============== # 24 | LT_PREREQ([2.2.6]) 25 | LT_INIT([disable-static]) 26 | 27 | # =========== take care of some localization ========= # 28 | IT_PROG_INTLTOOL([0.40.0]) 29 | 30 | # Check for and fix missing delete of intltool cache lock file. Only 31 | # needed with intltool >= 0.51.0-5.1, but just always fix as that is 32 | # simpler and safe. 33 | AC_MSG_CHECKING([whether po/Makefile.in.in deletes intltool cache lock file]) 34 | file='po/Makefile.in.in' 35 | if test ! -f "$srcdir/$file"; then 36 | AC_MSG_RESULT([not applicable]) 37 | elif $FGREP -q '.intltool-merge-cache.lock' "$srcdir/$file" 2> /dev/null; then 38 | AC_MSG_RESULT([yes]) 39 | else 40 | test -w "$srcdir/$file" && \ 41 | $SED -i '/rm -f .intltool-merge-cache/s/$/ .intltool-merge-cache.lock/' "$srcdir/$file" 2> /dev/null 42 | if $FGREP -q '.intltool-merge-cache.lock' "$srcdir/$file" 2> /dev/null; then 43 | AC_MSG_RESULT([fixed]) 44 | else 45 | AC_MSG_RESULT([no]) 46 | fi 47 | fi 48 | 49 | GETTEXT_PACKAGE=indicator-sensors 50 | AC_SUBST(GETTEXT_PACKAGE) 51 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) 52 | 53 | # ========== export compiler / linker options ======== # 54 | AC_SUBST(CFLAGS) 55 | AC_SUBST(CPPFLAGS) 56 | AC_SUBST(LDFLAGS) 57 | AC_SUBST(LIBS) 58 | 59 | # ============== look for dependencies =============== # 60 | # check for headers needed for standard interfaces 61 | #AC_CHECK_HEADERS() 62 | 63 | GLIB_REQUIRED=2.28.0 64 | GIO_REQUIRED=2.26.0 65 | GTK_REQUIRED=3.0.0 66 | AYATANA_APPINDICATOR_REQUIRED=0.0.7 67 | LIBPEAS_REQUIRED=0.7.2 68 | LIBNOTIFY_REQUIRED=0.7.2 69 | LIBUDISKS2_REQUIRED=2.0.0 70 | LIBATASMART_REQUIRED=0.16 71 | 72 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) 73 | AC_SUBST(GLIB_CFLAGS) 74 | AC_SUBST(GLIB_LIBS) 75 | 76 | PKG_CHECK_MODULES(GIO, gio-2.0 >= $GIO_REQUIRED) 77 | AC_SUBST(GIO_CFLAGS) 78 | AC_SUBST(GIO_LIBS) 79 | 80 | PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) 81 | AC_SUBST(GTK_CFLAGS) 82 | AC_SUBST(GTK_LIBS) 83 | 84 | PKG_CHECK_MODULES(LIBPEAS, libpeas-1.0 >= $LIBPEAS_REQUIRED) 85 | AC_SUBST(LIBPEAS_CFLAGS) 86 | AC_SUBST(LIBPEAS_LIBS) 87 | 88 | PKG_CHECK_MODULES(LIBPEASGTK, libpeas-gtk-1.0 >= $LIBPEAS_REQUIRED) 89 | AC_SUBST(LIBPEASGTK_CFLAGS) 90 | AC_SUBST(LIBPEASGTK_LIBS) 91 | 92 | PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED) 93 | AC_SUBST(LIBNOTIFY_CFLAGS) 94 | AC_SUBST(LIBNOTIFY_LIBS) 95 | 96 | PKG_CHECK_MODULES(AYATANA_APPINDICATOR, ayatana-appindicator3-0.1 >= $AYATANA_APPINDICATOR_REQUIRED, 97 | AC_DEFINE(HAVE_AYATANA_APPINDICATOR, 1, [ayatana-appindicator is available]), 98 | AC_DEFINE(HAVE_AYATANA_APPINDICATOR, 0, [ayatana-appindicator is not available])) 99 | AM_CONDITIONAL(AYATANA_APPINDICATOR, test -n "$AYATANA_AYATANA_APPINDICATOR_LIBS") 100 | 101 | AC_SUBST(AYATANA_AYATANA_APPINDICATOR_CFLAGS) 102 | AC_SUBST(AYATANA_AYATANA_APPINDICATOR_LIBS) 103 | 104 | GLIB_GSETTINGS 105 | 106 | AC_CHECK_HEADERS(regex.h) 107 | AC_CHECK_HEADERS(sensors/sensors.h, 108 | AC_CHECK_LIB(sensors, sensors_init,[ 109 | AC_DEFINE(HAVE_LIBSENSORS,1,[libsensors is available]) 110 | if test "x${SENSORS_DIR}" != "x"; then 111 | LIBSENSORS_CFLAGS="-I${SENSORS_DIR}/include" 112 | LIBSENSORS_LIBS="-L${SENSORS_DIR}/lib -lsensors" 113 | else 114 | LIBSENSORS_LIBS="-lsensors" 115 | fi])) 116 | 117 | AM_CONDITIONAL(LIBSENSORS, test -n "$LIBSENSORS_LIBS") 118 | 119 | AC_SUBST(LIBSENSORS_CFLAGS) 120 | AC_SUBST(LIBSENSORS_LIBS) 121 | 122 | # do nvidia by default if available 123 | AC_ARG_WITH(nvidia, 124 | [ --with-nvidia[=DIR] use nvidia in DIR],[ 125 | if test "$withval" != "no" -a "$withval" != "yes"; then 126 | NVIDIA_DIR=$withval 127 | CFLAGS="${CFLAGS} -I${NVIDIA_DIR}/include" 128 | LIBS="${LIBS} -L${NVIDIA_DIR}/lib" 129 | fi 130 | with_nvidia=$withval],[ 131 | with_nvidia="yes" 132 | ]) 133 | 134 | if test "$with_nvidia" = "no"; then 135 | echo "Disabling nvidia support" 136 | else 137 | AC_ARG_WITH(x11, 138 | [ --with-x11[=DIR] use x11 in DIR],[ 139 | if test "$withval" != "no" -a "$withval" != "yes"; then 140 | X11_DIR=$withval 141 | CFLAGS="${CFLAGS} -I${X11_DIR}/include" 142 | LIBS="${LIBS} -L${X11_DIR}/lib" 143 | fi 144 | with_x11=$withval],[ 145 | with_x11="yes" 146 | ]) 147 | 148 | AC_CHECK_HEADERS(X11/Xlib.h, 149 | AC_CHECK_LIB(X11, XOpenDisplay, [ HAVE_X11=true ])) 150 | # can't embed next AC_CHECK_HEADERS in true case of AC_CHECK_LIB 151 | if test "${HAVE_X11}" = "true"; then 152 | LIBS="${LIBS} -lX11 -lXext" 153 | # need to specifically include X11/Xlib header when 154 | # doing checks for NVCtrl headers 155 | AC_CHECK_HEADERS(NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h, [ HAVE_NVIDIA=true ], [], 156 | [ 157 | #include 158 | ]) 159 | if test "${HAVE_NVIDIA}" = "true"; then 160 | AC_CHECK_LIB(XNVCtrl, XNVCTRLQueryExtension, [ 161 | NVIDIA_LIBS="-lXNVCtrl" 162 | AC_DEFINE(HAVE_NVIDIA,1,[nvidia sensors available]) 163 | ]) 164 | fi 165 | fi 166 | fi 167 | AM_CONDITIONAL(NVIDIA, test -n "$NVIDIA_LIBS") 168 | 169 | AC_SUBST(NVIDIA_CFLAGS) 170 | AC_SUBST(NVIDIA_LIBS) 171 | 172 | PKG_CHECK_MODULES(LIBATASMART, libatasmart >= $LIBATASMART_REQUIRED, 173 | HAVE_LIBATASMART="yes", HAVE_LIBATASMART="no") 174 | AC_SUBST(LIBATASMART_CFLAGS) 175 | AC_SUBST(LIBATASMART_LIBS) 176 | AM_CONDITIONAL(UDISKS, test -n "$LIBATASMART_CFLAGS") 177 | 178 | PKG_CHECK_MODULES(LIBUDISKS2, udisks2 >= $LIBUDISKS2_REQUIRED, 179 | HAVE_LIBUDISKS2="yes", HAVE_LIBUDISKS2="no") 180 | AC_SUBST(LIBUDISKS2_CFLAGS) 181 | AC_SUBST(LIBUDISKS2_LIBS) 182 | AM_CONDITIONAL(UDISKS2, test -n "$LIBUDISKS2_CFLAGS") 183 | 184 | # enable fake plugin if requested 185 | AC_ARG_ENABLE(fake, 186 | AS_HELP_STRING([--enable-fake], [Build plugin to generate fake sensors for testing])) 187 | AM_CONDITIONAL(FAKE, test "x$enable_fake" = "xyes") 188 | 189 | # ============ enable extra warnings etc ============= # 190 | if test "$USE_MAINTAINER_MODE" = "yes"; then 191 | CFLAGS+=" -ggdb" 192 | CFLAGS+=" -Wall -Wextra" 193 | CFLAGS+=" -Wno-missing-field-initializers" 194 | CFLAGS+=" -Wno-unused-parameter" 195 | CFLAGS+=" -Wmissing-declarations" 196 | CFLAGS+=" -Wredundant-decls" 197 | CFLAGS+=" -Wmissing-noreturn" 198 | CFLAGS+=" -Wshadow" 199 | CFLAGS+=" -Wpointer-arith" 200 | CFLAGS+=" -Wcast-align" 201 | CFLAGS+=" -Wwrite-strings" 202 | CFLAGS+=" -Winline" 203 | CFLAGS+=" -Wformat-nonliteral" 204 | CFLAGS+=" -Wformat-security" 205 | CFLAGS+=" -Wswitch-enum" 206 | CFLAGS+=" -Wswitch-default" 207 | CFLAGS+=" -Winit-self" 208 | CFLAGS+=" -Wmissing-include-dirs" 209 | CFLAGS+=" -Wundef" 210 | CFLAGS+=" -Waggregate-return" 211 | CFLAGS+=" -Wmissing-format-attribute" 212 | CFLAGS+=" -Wnested-externs" 213 | fi 214 | 215 | AC_SUBST(CFLAGS) 216 | 217 | # ========== extra debugging options ================= # 218 | m4_define([debug_default],[minimum]) 219 | AC_ARG_ENABLE([debug], 220 | [AS_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@], 221 | [turn on debugging @<:@default=debug_default@:>@])], 222 | [], 223 | [enable_debug=debug_default]) 224 | AS_CASE([$enable_debug], 225 | [yes], [ test "$cflags_set" = set || CFLAGS="$CFLAGS -O0 -g3 -ggdb" DEBUG_CFLAGS="-DDEBUG" ], 226 | [minimum], [ DEBUG_CFLAGS="-DG_DISABLE_CAST_CHECKS" ], 227 | [no], [ DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS" ], 228 | [AC_MSG_ERROR([Unknown argument to --enable-debug])]) 229 | AC_SUBST(DEBUG_CFLAGS) 230 | 231 | # =========== we need glib-genmarshal ================ # 232 | AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) 233 | 234 | GNOME_COMPILE_WARNINGS(maximum) 235 | 236 | # Use --enable-maintainer-mode to disabled deprecated symbols 237 | GNOME_MAINTAINER_MODE_DEFINES 238 | 239 | # ==================== plugin stuff ================== # 240 | PLUGIN_LIBTOOL_FLAGS="-module -avoid-version" 241 | AC_SUBST(PLUGIN_LIBTOOL_FLAGS) 242 | 243 | # ================= generate files =================== # 244 | AC_CONFIG_FILES([ 245 | Makefile 246 | data/Makefile 247 | data/indicator-sensors.gschema.xml.in 248 | indicator-sensors/Makefile 249 | icons/Makefile 250 | plugins/Makefile 251 | plugins/aticonfig/Makefile 252 | plugins/dbus/Makefile 253 | plugins/dynamic/Makefile 254 | plugins/fake/Makefile 255 | plugins/libsensors/Makefile 256 | plugins/max/Makefile 257 | plugins/nvidia/Makefile 258 | plugins/udisks/Makefile 259 | plugins/udisks2/Makefile 260 | po/Makefile.in 261 | ]) 262 | AC_OUTPUT 263 | -------------------------------------------------------------------------------- /po/uk.po: -------------------------------------------------------------------------------- 1 | # Ukrainian translation for indicator-sensors 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2011. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2011-09-27 06:36+0000\n" 12 | "Last-Translator: Евгений \n" 13 | "Language-Team: Ukrainian \n" 14 | "Language: uk\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "Увімкнені датчики" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "Температурна шкала" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "" 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "Індикатор апаратних датчиків" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "Індикатор показань апаратних датчиків для Unity" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | 117 | #: ../indicator-sensors/is-application.c:824 118 | msgid "Indicator for GNOME / Unity showing hardware sensors." 119 | msgstr "" 120 | 121 | #: ../indicator-sensors/is-fan-sensor.c:40 122 | msgid " RPM" 123 | msgstr "" 124 | 125 | #: ../indicator-sensors/is-indicator.c:160 126 | msgid "Preferences…" 127 | msgstr "" 128 | 129 | #: ../indicator-sensors/is-indicator.c:161 130 | msgid "Preferences" 131 | msgstr "" 132 | 133 | #: ../indicator-sensors/is-indicator.c:162 134 | msgid "About…" 135 | msgstr "" 136 | 137 | #: ../indicator-sensors/is-indicator.c:163 138 | msgid "About" 139 | msgstr "" 140 | 141 | #: ../indicator-sensors/is-indicator.c:164 142 | #: ../indicator-sensors/is-indicator.c:165 143 | msgid "Quit" 144 | msgstr "Вийти" 145 | 146 | #: ../indicator-sensors/is-indicator.c:237 147 | msgid "No Sensors" 148 | msgstr "Нема датчиків" 149 | 150 | #: ../indicator-sensors/is-indicator.c:554 151 | #: ../indicator-sensors/is-indicator.c:680 152 | msgid "No active sensors" 153 | msgstr "Немає активних датчиків" 154 | 155 | #: ../indicator-sensors/is-manager.c:302 156 | #: ../indicator-sensors/is-sensor-dialog.c:315 157 | msgid "Sensor" 158 | msgstr "Датчик" 159 | 160 | #: ../indicator-sensors/is-manager.c:310 161 | #: ../indicator-sensors/is-preferences-dialog.c:149 162 | msgid "Icon" 163 | msgstr "" 164 | 165 | #: ../indicator-sensors/is-manager.c:319 166 | #: ../indicator-sensors/is-preferences-dialog.c:154 167 | #: ../indicator-sensors/is-sensor-dialog.c:106 168 | msgid "Label" 169 | msgstr "Мітка" 170 | 171 | #: ../indicator-sensors/is-manager.c:329 172 | msgid "Enabled" 173 | msgstr "Увімкнено" 174 | 175 | #: ../indicator-sensors/is-preferences-dialog.c:108 176 | msgid "Hardware Sensors Indicator Preferences" 177 | msgstr "" 178 | 179 | #: ../indicator-sensors/is-preferences-dialog.c:127 180 | msgid "General" 181 | msgstr "Загальні налаштування" 182 | 183 | #: ../indicator-sensors/is-preferences-dialog.c:135 184 | msgid "Start automatically on login" 185 | msgstr "Запускати автоматично при вході в систему" 186 | 187 | #: ../indicator-sensors/is-preferences-dialog.c:141 188 | msgid "Primary sensor display" 189 | msgstr "" 190 | 191 | #: ../indicator-sensors/is-preferences-dialog.c:159 192 | msgid "Value" 193 | msgstr "" 194 | 195 | #: ../indicator-sensors/is-preferences-dialog.c:176 196 | msgid "Celsius (°C)" 197 | msgstr "" 198 | 199 | #: ../indicator-sensors/is-preferences-dialog.c:187 200 | msgid "Fahrenheit (°F)" 201 | msgstr "" 202 | 203 | #: ../indicator-sensors/is-sensor.c:380 204 | msgid "Sensor Alarm" 205 | msgstr "" 206 | 207 | #: ../indicator-sensors/is-sensor-dialog.c:88 208 | msgid " Sensor Properties" 209 | msgstr "" 210 | 211 | #: ../indicator-sensors/is-sensor-dialog.c:115 212 | msgid "Alarm" 213 | msgstr "" 214 | 215 | #: ../indicator-sensors/is-sensor-dialog.c:123 216 | msgid "Disabled" 217 | msgstr "" 218 | 219 | #: ../indicator-sensors/is-sensor-dialog.c:126 220 | msgid "Below" 221 | msgstr "" 222 | 223 | #: ../indicator-sensors/is-sensor-dialog.c:129 224 | msgid "Above" 225 | msgstr "" 226 | 227 | #: ../indicator-sensors/is-sensor-dialog.c:147 228 | msgid "Low value" 229 | msgstr "" 230 | 231 | #: ../indicator-sensors/is-sensor-dialog.c:166 232 | msgid "High value" 233 | msgstr "" 234 | 235 | #. first placeholder is sensor name 236 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 237 | #, c-format 238 | msgid "Error reading temperature value for GPU %d" 239 | msgstr "" 240 | 241 | #. first placeholder is sensor name 242 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 243 | #, c-format 244 | msgid "Error reading fanspeed value for GPU %d" 245 | msgstr "" 246 | 247 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 248 | msgid "Temperature" 249 | msgstr "" 250 | 251 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 252 | msgid "Fan" 253 | msgstr "" 254 | 255 | #. first placeholder is sensor name, 256 | #. * second is error message 257 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 258 | #, c-format 259 | msgid "Error getting sensor value for sensor %s: %s [%d]" 260 | msgstr "" 261 | 262 | #. translators: V is the unit for Voltage, replace with 263 | #. appropriate unit 264 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 265 | msgid "V" 266 | msgstr "" 267 | 268 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 269 | msgid "No Sensors Detected" 270 | msgstr "" 271 | 272 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 273 | #, c-format 274 | msgid "" 275 | "Try running the command 'sensors-detect' from the command-line and " 276 | "restarting %s" 277 | msgstr "" 278 | 279 | #. first placeholder is 280 | #. * sensor name 281 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 282 | #, c-format 283 | msgid "Error getting sensor value for sensor %s" 284 | msgstr "Помилка отримання значення для датчика %s" 285 | 286 | #: ../plugins/udisks/is-udisks-plugin.c:149 287 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 288 | #, c-format 289 | msgid "Error reading new SMART data for sensor %s" 290 | msgstr "" 291 | 292 | #: ../plugins/udisks/is-udisks-plugin.c:165 293 | #, c-format 294 | msgid "Error refreshing SMART data for sensor %s" 295 | msgstr "" 296 | -------------------------------------------------------------------------------- /po/ar.po: -------------------------------------------------------------------------------- 1 | # Arabic translation for indicator-sensors 2 | # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2012. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2012-04-27 22:15+0000\n" 12 | "Last-Translator: Hanine HAMZIOUI \n" 13 | "Language-Team: Arabic \n" 14 | "Language: ar\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "مستشعرات ممكنة" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "سلم الحرارة" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "" 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "مؤشر مستشعرات الأجهزة" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "مؤشر خاص بيونيتي (Unity) لعرض قراءآت مستشعرات الأجهزة" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | 117 | #: ../indicator-sensors/is-application.c:824 118 | msgid "Indicator for GNOME / Unity showing hardware sensors." 119 | msgstr "" 120 | 121 | #: ../indicator-sensors/is-fan-sensor.c:40 122 | msgid " RPM" 123 | msgstr "" 124 | 125 | #: ../indicator-sensors/is-indicator.c:160 126 | msgid "Preferences…" 127 | msgstr "التفضيلات…" 128 | 129 | #: ../indicator-sensors/is-indicator.c:161 130 | msgid "Preferences" 131 | msgstr "تفضيلات" 132 | 133 | #: ../indicator-sensors/is-indicator.c:162 134 | msgid "About…" 135 | msgstr "حول البرنامج..." 136 | 137 | #: ../indicator-sensors/is-indicator.c:163 138 | msgid "About" 139 | msgstr "" 140 | 141 | #: ../indicator-sensors/is-indicator.c:164 142 | #: ../indicator-sensors/is-indicator.c:165 143 | msgid "Quit" 144 | msgstr "أُخرج" 145 | 146 | #: ../indicator-sensors/is-indicator.c:237 147 | msgid "No Sensors" 148 | msgstr "لا مستشعرات" 149 | 150 | #: ../indicator-sensors/is-indicator.c:554 151 | #: ../indicator-sensors/is-indicator.c:680 152 | msgid "No active sensors" 153 | msgstr "لا مستشعرات نشيطة" 154 | 155 | #: ../indicator-sensors/is-manager.c:302 156 | #: ../indicator-sensors/is-sensor-dialog.c:315 157 | msgid "Sensor" 158 | msgstr "مستشعر" 159 | 160 | #: ../indicator-sensors/is-manager.c:310 161 | #: ../indicator-sensors/is-preferences-dialog.c:149 162 | msgid "Icon" 163 | msgstr "رمز" 164 | 165 | #: ../indicator-sensors/is-manager.c:319 166 | #: ../indicator-sensors/is-preferences-dialog.c:154 167 | #: ../indicator-sensors/is-sensor-dialog.c:106 168 | msgid "Label" 169 | msgstr "التسمية" 170 | 171 | #: ../indicator-sensors/is-manager.c:329 172 | msgid "Enabled" 173 | msgstr "ممكّن" 174 | 175 | #: ../indicator-sensors/is-preferences-dialog.c:108 176 | msgid "Hardware Sensors Indicator Preferences" 177 | msgstr "" 178 | 179 | #: ../indicator-sensors/is-preferences-dialog.c:127 180 | msgid "General" 181 | msgstr "عام" 182 | 183 | #: ../indicator-sensors/is-preferences-dialog.c:135 184 | msgid "Start automatically on login" 185 | msgstr "بدء التشغيل تلقائيا عند تسجيل الدخول" 186 | 187 | #: ../indicator-sensors/is-preferences-dialog.c:141 188 | msgid "Primary sensor display" 189 | msgstr "عرض المستشعر الأساسي" 190 | 191 | #: ../indicator-sensors/is-preferences-dialog.c:159 192 | msgid "Value" 193 | msgstr "القيمة" 194 | 195 | #: ../indicator-sensors/is-preferences-dialog.c:176 196 | msgid "Celsius (°C)" 197 | msgstr "" 198 | 199 | #: ../indicator-sensors/is-preferences-dialog.c:187 200 | msgid "Fahrenheit (°F)" 201 | msgstr "فهرنهايت (درجة فهرنهايت)" 202 | 203 | #: ../indicator-sensors/is-sensor.c:380 204 | msgid "Sensor Alarm" 205 | msgstr "" 206 | 207 | #: ../indicator-sensors/is-sensor-dialog.c:88 208 | msgid " Sensor Properties" 209 | msgstr " خصائص المستشعر" 210 | 211 | #: ../indicator-sensors/is-sensor-dialog.c:115 212 | msgid "Alarm" 213 | msgstr "منبه" 214 | 215 | #: ../indicator-sensors/is-sensor-dialog.c:123 216 | msgid "Disabled" 217 | msgstr "مُعطَّل" 218 | 219 | #: ../indicator-sensors/is-sensor-dialog.c:126 220 | msgid "Below" 221 | msgstr "أقل من" 222 | 223 | #: ../indicator-sensors/is-sensor-dialog.c:129 224 | msgid "Above" 225 | msgstr "فوق" 226 | 227 | #: ../indicator-sensors/is-sensor-dialog.c:147 228 | msgid "Low value" 229 | msgstr "قيمة منخفضة" 230 | 231 | #: ../indicator-sensors/is-sensor-dialog.c:166 232 | msgid "High value" 233 | msgstr "قيمة مرتفعة" 234 | 235 | #. first placeholder is sensor name 236 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 237 | #, c-format 238 | msgid "Error reading temperature value for GPU %d" 239 | msgstr "" 240 | 241 | #. first placeholder is sensor name 242 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 243 | #, c-format 244 | msgid "Error reading fanspeed value for GPU %d" 245 | msgstr "" 246 | 247 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 248 | msgid "Temperature" 249 | msgstr "درجة الحرارة" 250 | 251 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 252 | msgid "Fan" 253 | msgstr "المروحة" 254 | 255 | #. first placeholder is sensor name, 256 | #. * second is error message 257 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 258 | #, c-format 259 | msgid "Error getting sensor value for sensor %s: %s [%d]" 260 | msgstr "" 261 | 262 | #. translators: V is the unit for Voltage, replace with 263 | #. appropriate unit 264 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 265 | msgid "V" 266 | msgstr "فولت" 267 | 268 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 269 | msgid "No Sensors Detected" 270 | msgstr "" 271 | 272 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 273 | #, c-format 274 | msgid "" 275 | "Try running the command 'sensors-detect' from the command-line and " 276 | "restarting %s" 277 | msgstr "" 278 | 279 | #. first placeholder is 280 | #. * sensor name 281 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 282 | #, c-format 283 | msgid "Error getting sensor value for sensor %s" 284 | msgstr "" 285 | 286 | #: ../plugins/udisks/is-udisks-plugin.c:149 287 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 288 | #, c-format 289 | msgid "Error reading new SMART data for sensor %s" 290 | msgstr "" 291 | 292 | #: ../plugins/udisks/is-udisks-plugin.c:165 293 | #, c-format 294 | msgid "Error refreshing SMART data for sensor %s" 295 | msgstr "" 296 | -------------------------------------------------------------------------------- /po/zh_CN.po: -------------------------------------------------------------------------------- 1 | # Chinese (Simplified) translation for indicator-sensors 2 | # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2013. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2013-08-24 20:56+0000\n" 12 | "Last-Translator: Xiaoxing Ye \n" 13 | "Language-Team: Chinese (Simplified) \n" 14 | "Language: \n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "主传感器显示" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "为这个指示器显示标志" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "已启用的传感器" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "温度缩放" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "用于显示温度传感器值的温度单位。" 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "显示指示器" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "在通知区域显示指示器" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "硬件传感指示器" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "用于在 Unity 显示硬件传感器读数的指示器" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "没有启用任何传感器" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | "已侦测到传感器,但没有正在监控的。要启用传感器的监控功能,打开偏好窗口并选择" 117 | "要监控的传感器。" 118 | 119 | #: ../indicator-sensors/is-application.c:824 120 | msgid "Indicator for GNOME / Unity showing hardware sensors." 121 | msgstr "用于GNOME / Unity 显示硬件传感器信息的指示器。" 122 | 123 | #: ../indicator-sensors/is-fan-sensor.c:40 124 | msgid " RPM" 125 | msgstr " 转每分" 126 | 127 | #: ../indicator-sensors/is-indicator.c:160 128 | msgid "Preferences…" 129 | msgstr "首选项..." 130 | 131 | #: ../indicator-sensors/is-indicator.c:161 132 | msgid "Preferences" 133 | msgstr "首选项" 134 | 135 | #: ../indicator-sensors/is-indicator.c:162 136 | msgid "About…" 137 | msgstr "关于..." 138 | 139 | #: ../indicator-sensors/is-indicator.c:163 140 | msgid "About" 141 | msgstr "关于" 142 | 143 | #: ../indicator-sensors/is-indicator.c:164 144 | #: ../indicator-sensors/is-indicator.c:165 145 | msgid "Quit" 146 | msgstr "退出" 147 | 148 | #: ../indicator-sensors/is-indicator.c:237 149 | msgid "No Sensors" 150 | msgstr "没有传感器" 151 | 152 | #: ../indicator-sensors/is-indicator.c:554 153 | #: ../indicator-sensors/is-indicator.c:680 154 | msgid "No active sensors" 155 | msgstr "没有活跃的传感器" 156 | 157 | #: ../indicator-sensors/is-manager.c:302 158 | #: ../indicator-sensors/is-sensor-dialog.c:315 159 | msgid "Sensor" 160 | msgstr "传感器" 161 | 162 | #: ../indicator-sensors/is-manager.c:310 163 | #: ../indicator-sensors/is-preferences-dialog.c:149 164 | msgid "Icon" 165 | msgstr "图标" 166 | 167 | #: ../indicator-sensors/is-manager.c:319 168 | #: ../indicator-sensors/is-preferences-dialog.c:154 169 | #: ../indicator-sensors/is-sensor-dialog.c:106 170 | msgid "Label" 171 | msgstr "标签" 172 | 173 | #: ../indicator-sensors/is-manager.c:329 174 | msgid "Enabled" 175 | msgstr "已启用" 176 | 177 | #: ../indicator-sensors/is-preferences-dialog.c:108 178 | msgid "Hardware Sensors Indicator Preferences" 179 | msgstr "硬件传感器指示器偏好设定" 180 | 181 | #: ../indicator-sensors/is-preferences-dialog.c:127 182 | msgid "General" 183 | msgstr "一般" 184 | 185 | #: ../indicator-sensors/is-preferences-dialog.c:135 186 | msgid "Start automatically on login" 187 | msgstr "在登入时自动启动" 188 | 189 | #: ../indicator-sensors/is-preferences-dialog.c:141 190 | msgid "Primary sensor display" 191 | msgstr "需显示的主传感器" 192 | 193 | #: ../indicator-sensors/is-preferences-dialog.c:159 194 | msgid "Value" 195 | msgstr "值" 196 | 197 | #: ../indicator-sensors/is-preferences-dialog.c:176 198 | msgid "Celsius (°C)" 199 | msgstr "摄氏度 (°C)" 200 | 201 | #: ../indicator-sensors/is-preferences-dialog.c:187 202 | msgid "Fahrenheit (°F)" 203 | msgstr "华氏度 (°F)" 204 | 205 | #: ../indicator-sensors/is-sensor.c:380 206 | msgid "Sensor Alarm" 207 | msgstr "传感器警报" 208 | 209 | #: ../indicator-sensors/is-sensor-dialog.c:88 210 | msgid " Sensor Properties" 211 | msgstr " 传感器属性" 212 | 213 | #: ../indicator-sensors/is-sensor-dialog.c:115 214 | msgid "Alarm" 215 | msgstr "警告" 216 | 217 | #: ../indicator-sensors/is-sensor-dialog.c:123 218 | msgid "Disabled" 219 | msgstr "已禁用" 220 | 221 | #: ../indicator-sensors/is-sensor-dialog.c:126 222 | msgid "Below" 223 | msgstr "之下" 224 | 225 | #: ../indicator-sensors/is-sensor-dialog.c:129 226 | msgid "Above" 227 | msgstr "之上" 228 | 229 | #: ../indicator-sensors/is-sensor-dialog.c:147 230 | msgid "Low value" 231 | msgstr "低值" 232 | 233 | #: ../indicator-sensors/is-sensor-dialog.c:166 234 | msgid "High value" 235 | msgstr "" 236 | 237 | #. first placeholder is sensor name 238 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 239 | #, c-format 240 | msgid "Error reading temperature value for GPU %d" 241 | msgstr "" 242 | 243 | #. first placeholder is sensor name 244 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 245 | #, c-format 246 | msgid "Error reading fanspeed value for GPU %d" 247 | msgstr "" 248 | 249 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 250 | msgid "Temperature" 251 | msgstr "温度" 252 | 253 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 254 | msgid "Fan" 255 | msgstr "风扇" 256 | 257 | #. first placeholder is sensor name, 258 | #. * second is error message 259 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 260 | #, c-format 261 | msgid "Error getting sensor value for sensor %s: %s [%d]" 262 | msgstr "" 263 | 264 | #. translators: V is the unit for Voltage, replace with 265 | #. appropriate unit 266 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 267 | msgid "V" 268 | msgstr "伏" 269 | 270 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 271 | msgid "No Sensors Detected" 272 | msgstr "未检测到传感器" 273 | 274 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 275 | #, c-format 276 | msgid "" 277 | "Try running the command 'sensors-detect' from the command-line and " 278 | "restarting %s" 279 | msgstr "尝试在终端运行命令 'sensors-detect' 并重新启动%s" 280 | 281 | #. first placeholder is 282 | #. * sensor name 283 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 284 | #, c-format 285 | msgid "Error getting sensor value for sensor %s" 286 | msgstr "" 287 | 288 | #: ../plugins/udisks/is-udisks-plugin.c:149 289 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 290 | #, c-format 291 | msgid "Error reading new SMART data for sensor %s" 292 | msgstr "" 293 | 294 | #: ../plugins/udisks/is-udisks-plugin.c:165 295 | #, c-format 296 | msgid "Error refreshing SMART data for sensor %s" 297 | msgstr "" 298 | -------------------------------------------------------------------------------- /po/de.po: -------------------------------------------------------------------------------- 1 | # German translation for indicator-sensors 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2011. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2012-02-29 14:53+0000\n" 12 | "Last-Translator: Jan Simon \n" 13 | "Language-Team: German \n" 14 | "Language: de\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "Aktivierte Module" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "" 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "Temperaturskala" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "" 74 | "Die Temperaturskala für die Anzeige der Werte des Temperatur-" 75 | "Systeminformations-Moduls." 76 | 77 | #: ../data/indicator-sensors.gschema.xml.in.h:11 78 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 79 | msgid "Show indicator" 80 | msgstr "" 81 | 82 | #: ../data/indicator-sensors.gschema.xml.in.h:12 83 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 84 | msgid "Whether to show the indicator in the notification area." 85 | msgstr "" 86 | 87 | #: ../data/indicator-sensors.desktop.in.h:1 88 | #: ../indicator-sensors/is-application.c:822 89 | msgid "Hardware Sensors Indicator" 90 | msgstr "Status-Applet zur Anzeige von Systeminformation." 91 | 92 | #: ../data/indicator-sensors.desktop.in.h:2 93 | msgid "An indicator for Unity which displays hardware sensor readings" 94 | msgstr "Ein Status-Applet für Unity, das Systeminformationen anzeigt." 95 | 96 | #: ../data/indicator-sensors.appdata.xml.in.h:1 97 | msgid "" 98 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 99 | "readings within the panel of your desktop." 100 | msgstr "" 101 | 102 | #: ../data/indicator-sensors.appdata.xml.in.h:2 103 | msgid "" 104 | "When running GNOME Shell it is recommended to also install the associated " 105 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 106 | "org/extension/336/hardware-sensors-indicator/ ." 107 | msgstr "" 108 | 109 | #: ../indicator-sensors/indicator-sensors.c:152 110 | msgid "No Sensors Enabled For Monitoring" 111 | msgstr "" 112 | 113 | #: ../indicator-sensors/indicator-sensors.c:153 114 | msgid "" 115 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 116 | "of sensors open the Preferences window and select the sensors to monitor" 117 | msgstr "" 118 | 119 | #: ../indicator-sensors/is-application.c:824 120 | msgid "Indicator for GNOME / Unity showing hardware sensors." 121 | msgstr "" 122 | 123 | #: ../indicator-sensors/is-fan-sensor.c:40 124 | msgid " RPM" 125 | msgstr "" 126 | 127 | #: ../indicator-sensors/is-indicator.c:160 128 | msgid "Preferences…" 129 | msgstr "Einstellungen…" 130 | 131 | #: ../indicator-sensors/is-indicator.c:161 132 | msgid "Preferences" 133 | msgstr "Einstellungen" 134 | 135 | #: ../indicator-sensors/is-indicator.c:162 136 | msgid "About…" 137 | msgstr "" 138 | 139 | #: ../indicator-sensors/is-indicator.c:163 140 | msgid "About" 141 | msgstr "" 142 | 143 | #: ../indicator-sensors/is-indicator.c:164 144 | #: ../indicator-sensors/is-indicator.c:165 145 | msgid "Quit" 146 | msgstr "Programm beenden" 147 | 148 | #: ../indicator-sensors/is-indicator.c:237 149 | msgid "No Sensors" 150 | msgstr "Keine Sensoren" 151 | 152 | #: ../indicator-sensors/is-indicator.c:554 153 | #: ../indicator-sensors/is-indicator.c:680 154 | msgid "No active sensors" 155 | msgstr "Keine aktiven Systeminformations-Module" 156 | 157 | #: ../indicator-sensors/is-manager.c:302 158 | #: ../indicator-sensors/is-sensor-dialog.c:315 159 | msgid "Sensor" 160 | msgstr "Sensor" 161 | 162 | #: ../indicator-sensors/is-manager.c:310 163 | #: ../indicator-sensors/is-preferences-dialog.c:149 164 | msgid "Icon" 165 | msgstr "Symbol" 166 | 167 | #: ../indicator-sensors/is-manager.c:319 168 | #: ../indicator-sensors/is-preferences-dialog.c:154 169 | #: ../indicator-sensors/is-sensor-dialog.c:106 170 | msgid "Label" 171 | msgstr "Beschriftung" 172 | 173 | #: ../indicator-sensors/is-manager.c:329 174 | msgid "Enabled" 175 | msgstr "Aktiviert" 176 | 177 | #: ../indicator-sensors/is-preferences-dialog.c:108 178 | msgid "Hardware Sensors Indicator Preferences" 179 | msgstr "" 180 | 181 | #: ../indicator-sensors/is-preferences-dialog.c:127 182 | msgid "General" 183 | msgstr "Allgemein" 184 | 185 | #: ../indicator-sensors/is-preferences-dialog.c:135 186 | msgid "Start automatically on login" 187 | msgstr "Beim Einloggen automatisch starten" 188 | 189 | #: ../indicator-sensors/is-preferences-dialog.c:141 190 | msgid "Primary sensor display" 191 | msgstr "" 192 | 193 | #: ../indicator-sensors/is-preferences-dialog.c:159 194 | msgid "Value" 195 | msgstr "" 196 | 197 | #: ../indicator-sensors/is-preferences-dialog.c:176 198 | msgid "Celsius (°C)" 199 | msgstr "Celsius (°C)" 200 | 201 | #: ../indicator-sensors/is-preferences-dialog.c:187 202 | msgid "Fahrenheit (°F)" 203 | msgstr "Fahrenheit (°F)" 204 | 205 | #: ../indicator-sensors/is-sensor.c:380 206 | msgid "Sensor Alarm" 207 | msgstr "Sensor-Alarm" 208 | 209 | #: ../indicator-sensors/is-sensor-dialog.c:88 210 | msgid " Sensor Properties" 211 | msgstr "" 212 | 213 | #: ../indicator-sensors/is-sensor-dialog.c:115 214 | msgid "Alarm" 215 | msgstr "Erinnerung" 216 | 217 | #: ../indicator-sensors/is-sensor-dialog.c:123 218 | msgid "Disabled" 219 | msgstr "Deaktiviert" 220 | 221 | #: ../indicator-sensors/is-sensor-dialog.c:126 222 | msgid "Below" 223 | msgstr "Unter" 224 | 225 | #: ../indicator-sensors/is-sensor-dialog.c:129 226 | msgid "Above" 227 | msgstr "Über" 228 | 229 | #: ../indicator-sensors/is-sensor-dialog.c:147 230 | msgid "Low value" 231 | msgstr "" 232 | 233 | #: ../indicator-sensors/is-sensor-dialog.c:166 234 | msgid "High value" 235 | msgstr "" 236 | 237 | #. first placeholder is sensor name 238 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 239 | #, c-format 240 | msgid "Error reading temperature value for GPU %d" 241 | msgstr "" 242 | 243 | #. first placeholder is sensor name 244 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 245 | #, c-format 246 | msgid "Error reading fanspeed value for GPU %d" 247 | msgstr "" 248 | 249 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 250 | msgid "Temperature" 251 | msgstr "Temperatur" 252 | 253 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 254 | msgid "Fan" 255 | msgstr "Lüfter" 256 | 257 | #. first placeholder is sensor name, 258 | #. * second is error message 259 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 260 | #, c-format 261 | msgid "Error getting sensor value for sensor %s: %s [%d]" 262 | msgstr "" 263 | 264 | #. translators: V is the unit for Voltage, replace with 265 | #. appropriate unit 266 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 267 | msgid "V" 268 | msgstr "V" 269 | 270 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 271 | msgid "No Sensors Detected" 272 | msgstr "" 273 | 274 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 275 | #, c-format 276 | msgid "" 277 | "Try running the command 'sensors-detect' from the command-line and " 278 | "restarting %s" 279 | msgstr "" 280 | 281 | #. first placeholder is 282 | #. * sensor name 283 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 284 | #, c-format 285 | msgid "Error getting sensor value for sensor %s" 286 | msgstr "Fehler bei dem Versuch die Werte von %s zu holen." 287 | 288 | #: ../plugins/udisks/is-udisks-plugin.c:149 289 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 290 | #, c-format 291 | msgid "Error reading new SMART data for sensor %s" 292 | msgstr "Fehler bei dem Versuch neue SMART-Werte von %s zu lesen." 293 | 294 | #: ../plugins/udisks/is-udisks-plugin.c:165 295 | #, c-format 296 | msgid "Error refreshing SMART data for sensor %s" 297 | msgstr "Fehler beim Aktualisieren der SMART-Werte von %s" 298 | -------------------------------------------------------------------------------- /po/he.po: -------------------------------------------------------------------------------- 1 | # Hebrew translation for indicator-sensors 2 | # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2013. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2013-06-07 16:18+0000\n" 12 | "Last-Translator: mosko \n" 13 | "Language-Team: Hebrew \n" 14 | "Language: he\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "חיישן ראשי להצגה" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "החיישן הראשי שיוצג באינדיקטור, מזוהה על-פי הנתיב שלו." 31 | 32 | #: ../data/indicator-sensors.gschema.xml.in.h:3 33 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 34 | msgid "Display flags for the indicator" 35 | msgstr "" 36 | 37 | #: ../data/indicator-sensors.gschema.xml.in.h:4 38 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 39 | msgid "The elements used to display the primary sensor within the indicator." 40 | msgstr "" 41 | 42 | #: ../data/indicator-sensors.gschema.xml.in.h:5 43 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 44 | msgid "Enabled sensors" 45 | msgstr "חיישנים זמינים" 46 | 47 | #: ../data/indicator-sensors.gschema.xml.in.h:6 48 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 49 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 50 | msgstr "רשימת החיישנים הזמינים לפיקוח, כל אחד מזוהה על-פי הנתיב שלו." 51 | 52 | #: ../data/indicator-sensors.gschema.xml.in.h:7 53 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 54 | msgid "Seconds to delay hiding / showing alarms" 55 | msgstr "" 56 | 57 | #: ../data/indicator-sensors.gschema.xml.in.h:8 58 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 59 | msgid "" 60 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 61 | "fluctuating values." 62 | msgstr "" 63 | 64 | #: ../data/indicator-sensors.gschema.xml.in.h:9 65 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 66 | #: ../indicator-sensors/is-preferences-dialog.c:168 67 | msgid "Temperature scale" 68 | msgstr "סולם טמפרטורה" 69 | 70 | #: ../data/indicator-sensors.gschema.xml.in.h:10 71 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 72 | msgid "The temperature scale to display temperature sensor values." 73 | msgstr "סולם הטמפרטורה בו יוצגו ערכי חיישן הטמפרטורה." 74 | 75 | #: ../data/indicator-sensors.gschema.xml.in.h:11 76 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 77 | msgid "Show indicator" 78 | msgstr "הצג אינדיקטור" 79 | 80 | #: ../data/indicator-sensors.gschema.xml.in.h:12 81 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 82 | msgid "Whether to show the indicator in the notification area." 83 | msgstr "" 84 | 85 | #: ../data/indicator-sensors.desktop.in.h:1 86 | #: ../indicator-sensors/is-application.c:822 87 | msgid "Hardware Sensors Indicator" 88 | msgstr "אינדיקטור חיישני חומרה" 89 | 90 | #: ../data/indicator-sensors.desktop.in.h:2 91 | msgid "An indicator for Unity which displays hardware sensor readings" 92 | msgstr "אינדיקטור ל-Unity שמציג קריאות חיישן חומרה" 93 | 94 | #: ../data/indicator-sensors.appdata.xml.in.h:1 95 | msgid "" 96 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 97 | "readings within the panel of your desktop." 98 | msgstr "" 99 | 100 | #: ../data/indicator-sensors.appdata.xml.in.h:2 101 | msgid "" 102 | "When running GNOME Shell it is recommended to also install the associated " 103 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 104 | "org/extension/336/hardware-sensors-indicator/ ." 105 | msgstr "" 106 | 107 | #: ../indicator-sensors/indicator-sensors.c:152 108 | msgid "No Sensors Enabled For Monitoring" 109 | msgstr "אין חיישנים זמינים לפיקוח" 110 | 111 | #: ../indicator-sensors/indicator-sensors.c:153 112 | msgid "" 113 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 114 | "of sensors open the Preferences window and select the sensors to monitor" 115 | msgstr "" 116 | 117 | #: ../indicator-sensors/is-application.c:824 118 | msgid "Indicator for GNOME / Unity showing hardware sensors." 119 | msgstr "אינדיקטור ל-GNOME / Unity המציג חיישני חומרה." 120 | 121 | #: ../indicator-sensors/is-fan-sensor.c:40 122 | msgid " RPM" 123 | msgstr " סל\"ד" 124 | 125 | #: ../indicator-sensors/is-indicator.c:160 126 | msgid "Preferences…" 127 | msgstr "העדפות..." 128 | 129 | #: ../indicator-sensors/is-indicator.c:161 130 | msgid "Preferences" 131 | msgstr "העדפות" 132 | 133 | #: ../indicator-sensors/is-indicator.c:162 134 | msgid "About…" 135 | msgstr "אודות..." 136 | 137 | #: ../indicator-sensors/is-indicator.c:163 138 | msgid "About" 139 | msgstr "אודות" 140 | 141 | #: ../indicator-sensors/is-indicator.c:164 142 | #: ../indicator-sensors/is-indicator.c:165 143 | msgid "Quit" 144 | msgstr "יציאה" 145 | 146 | #: ../indicator-sensors/is-indicator.c:237 147 | msgid "No Sensors" 148 | msgstr "אין חיישנים" 149 | 150 | #: ../indicator-sensors/is-indicator.c:554 151 | #: ../indicator-sensors/is-indicator.c:680 152 | msgid "No active sensors" 153 | msgstr "אין חיישנים פעילים" 154 | 155 | #: ../indicator-sensors/is-manager.c:302 156 | #: ../indicator-sensors/is-sensor-dialog.c:315 157 | msgid "Sensor" 158 | msgstr "חיישן" 159 | 160 | #: ../indicator-sensors/is-manager.c:310 161 | #: ../indicator-sensors/is-preferences-dialog.c:149 162 | msgid "Icon" 163 | msgstr "סמל" 164 | 165 | #: ../indicator-sensors/is-manager.c:319 166 | #: ../indicator-sensors/is-preferences-dialog.c:154 167 | #: ../indicator-sensors/is-sensor-dialog.c:106 168 | msgid "Label" 169 | msgstr "תווית" 170 | 171 | #: ../indicator-sensors/is-manager.c:329 172 | msgid "Enabled" 173 | msgstr "זמין" 174 | 175 | #: ../indicator-sensors/is-preferences-dialog.c:108 176 | msgid "Hardware Sensors Indicator Preferences" 177 | msgstr "העדפות אינדיקטור חיישני חומרה" 178 | 179 | #: ../indicator-sensors/is-preferences-dialog.c:127 180 | msgid "General" 181 | msgstr "כללי" 182 | 183 | #: ../indicator-sensors/is-preferences-dialog.c:135 184 | msgid "Start automatically on login" 185 | msgstr "הפעל אוטומטית בעת התחברות" 186 | 187 | #: ../indicator-sensors/is-preferences-dialog.c:141 188 | msgid "Primary sensor display" 189 | msgstr "תצוגת חיישן ראשית" 190 | 191 | #: ../indicator-sensors/is-preferences-dialog.c:159 192 | msgid "Value" 193 | msgstr "ערך" 194 | 195 | #: ../indicator-sensors/is-preferences-dialog.c:176 196 | msgid "Celsius (°C)" 197 | msgstr "צלזיוס (°C)" 198 | 199 | #: ../indicator-sensors/is-preferences-dialog.c:187 200 | msgid "Fahrenheit (°F)" 201 | msgstr "פרנהייט (°F)" 202 | 203 | #: ../indicator-sensors/is-sensor.c:380 204 | msgid "Sensor Alarm" 205 | msgstr "התרעת חיישן" 206 | 207 | #: ../indicator-sensors/is-sensor-dialog.c:88 208 | msgid " Sensor Properties" 209 | msgstr " מאפייני חיישן" 210 | 211 | #: ../indicator-sensors/is-sensor-dialog.c:115 212 | msgid "Alarm" 213 | msgstr "התרעה" 214 | 215 | #: ../indicator-sensors/is-sensor-dialog.c:123 216 | msgid "Disabled" 217 | msgstr "לא זמין" 218 | 219 | #: ../indicator-sensors/is-sensor-dialog.c:126 220 | msgid "Below" 221 | msgstr "מתחת" 222 | 223 | #: ../indicator-sensors/is-sensor-dialog.c:129 224 | msgid "Above" 225 | msgstr "מעל" 226 | 227 | #: ../indicator-sensors/is-sensor-dialog.c:147 228 | msgid "Low value" 229 | msgstr "ערך תחתון" 230 | 231 | #: ../indicator-sensors/is-sensor-dialog.c:166 232 | msgid "High value" 233 | msgstr "ערך עליון" 234 | 235 | #. first placeholder is sensor name 236 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 237 | #, c-format 238 | msgid "Error reading temperature value for GPU %d" 239 | msgstr "שגיאה בקריאת ערך הטמפרטורה עבור GPU %d" 240 | 241 | #. first placeholder is sensor name 242 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 243 | #, c-format 244 | msgid "Error reading fanspeed value for GPU %d" 245 | msgstr "שגיאה בקריאת מהירות המאוורר עבור GPU %d" 246 | 247 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 248 | msgid "Temperature" 249 | msgstr "טמפרטורה" 250 | 251 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 252 | msgid "Fan" 253 | msgstr "מאוורר" 254 | 255 | #. first placeholder is sensor name, 256 | #. * second is error message 257 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 258 | #, c-format 259 | msgid "Error getting sensor value for sensor %s: %s [%d]" 260 | msgstr "" 261 | 262 | #. translators: V is the unit for Voltage, replace with 263 | #. appropriate unit 264 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 265 | msgid "V" 266 | msgstr "" 267 | 268 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 269 | msgid "No Sensors Detected" 270 | msgstr "לא זוהו חיישנים" 271 | 272 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 273 | #, c-format 274 | msgid "" 275 | "Try running the command 'sensors-detect' from the command-line and " 276 | "restarting %s" 277 | msgstr "נסה להריץ את הפקודה 'sensors-detect' משורת הפקודה ולהפעיל מחדש את %s" 278 | 279 | #. first placeholder is 280 | #. * sensor name 281 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 282 | #, c-format 283 | msgid "Error getting sensor value for sensor %s" 284 | msgstr "שגיאה בהשגת ערך החיישן עבור חיישן %s" 285 | 286 | #: ../plugins/udisks/is-udisks-plugin.c:149 287 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 288 | #, c-format 289 | msgid "Error reading new SMART data for sensor %s" 290 | msgstr "" 291 | 292 | #: ../plugins/udisks/is-udisks-plugin.c:165 293 | #, c-format 294 | msgid "Error refreshing SMART data for sensor %s" 295 | msgstr "" 296 | -------------------------------------------------------------------------------- /po/en_GB.po: -------------------------------------------------------------------------------- 1 | # English (United Kingdom) translation for indicator-sensors 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 3 | # This file is distributed under the same license as the indicator-sensors package. 4 | # FIRST AUTHOR , 2011. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: indicator-sensors\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2013-11-02 22:58+1030\n" 11 | "PO-Revision-Date: 2011-12-14 14:14+0000\n" 12 | "Last-Translator: Alfredo Hernández \n" 13 | "Language-Team: English (United Kingdom) \n" 14 | "Language: \n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2013-11-02 11:56+0000\n" 19 | "X-Generator: Launchpad (build 16820)\n" 20 | 21 | #: ../data/indicator-sensors.gschema.xml.in.h:1 22 | #: ../data/indicator-sensors.gschema.xml.in.in.h:1 23 | msgid "Primary sensor to display" 24 | msgstr "Primary sensor to display" 25 | 26 | #: ../data/indicator-sensors.gschema.xml.in.h:2 27 | #: ../data/indicator-sensors.gschema.xml.in.in.h:2 28 | msgid "" 29 | "The primary sensor to display in the indicator, identified by it’s path." 30 | msgstr "" 31 | "The primary sensor to display in the indicator, identified by it’s path." 32 | 33 | #: ../data/indicator-sensors.gschema.xml.in.h:3 34 | #: ../data/indicator-sensors.gschema.xml.in.in.h:3 35 | msgid "Display flags for the indicator" 36 | msgstr "" 37 | 38 | #: ../data/indicator-sensors.gschema.xml.in.h:4 39 | #: ../data/indicator-sensors.gschema.xml.in.in.h:4 40 | msgid "The elements used to display the primary sensor within the indicator." 41 | msgstr "" 42 | 43 | #: ../data/indicator-sensors.gschema.xml.in.h:5 44 | #: ../data/indicator-sensors.gschema.xml.in.in.h:5 45 | msgid "Enabled sensors" 46 | msgstr "Enabled sensors" 47 | 48 | #: ../data/indicator-sensors.gschema.xml.in.h:6 49 | #: ../data/indicator-sensors.gschema.xml.in.in.h:6 50 | msgid "The list of enabled sensors to monitor, each identified by it’s path." 51 | msgstr "The list of enabled sensors to monitor, each identified by it’s path." 52 | 53 | #: ../data/indicator-sensors.gschema.xml.in.h:7 54 | #: ../data/indicator-sensors.gschema.xml.in.in.h:7 55 | msgid "Seconds to delay hiding / showing alarms" 56 | msgstr "" 57 | 58 | #: ../data/indicator-sensors.gschema.xml.in.h:8 59 | #: ../data/indicator-sensors.gschema.xml.in.in.h:8 60 | msgid "" 61 | "Alarm delay adds some hysteresis so alarms aren't shown for quickly " 62 | "fluctuating values." 63 | msgstr "" 64 | 65 | #: ../data/indicator-sensors.gschema.xml.in.h:9 66 | #: ../data/indicator-sensors.gschema.xml.in.in.h:9 67 | #: ../indicator-sensors/is-preferences-dialog.c:168 68 | msgid "Temperature scale" 69 | msgstr "Temperature scale" 70 | 71 | #: ../data/indicator-sensors.gschema.xml.in.h:10 72 | #: ../data/indicator-sensors.gschema.xml.in.in.h:10 73 | msgid "The temperature scale to display temperature sensor values." 74 | msgstr "The temperature scale to display temperature sensor values." 75 | 76 | #: ../data/indicator-sensors.gschema.xml.in.h:11 77 | #: ../data/indicator-sensors.gschema.xml.in.in.h:11 78 | msgid "Show indicator" 79 | msgstr "" 80 | 81 | #: ../data/indicator-sensors.gschema.xml.in.h:12 82 | #: ../data/indicator-sensors.gschema.xml.in.in.h:12 83 | msgid "Whether to show the indicator in the notification area." 84 | msgstr "" 85 | 86 | #: ../data/indicator-sensors.desktop.in.h:1 87 | #: ../indicator-sensors/is-application.c:822 88 | msgid "Hardware Sensors Indicator" 89 | msgstr "Hardware Sensors Indicator" 90 | 91 | #: ../data/indicator-sensors.desktop.in.h:2 92 | msgid "An indicator for Unity which displays hardware sensor readings" 93 | msgstr "An indicator for Unity which displays hardware sensor readings" 94 | 95 | #: ../data/indicator-sensors.appdata.xml.in.h:1 96 | msgid "" 97 | "Hardware Sensors Indicator provides temperature, fan and voltage sensor " 98 | "readings within the panel of your desktop." 99 | msgstr "" 100 | 101 | #: ../data/indicator-sensors.appdata.xml.in.h:2 102 | msgid "" 103 | "When running GNOME Shell it is recommended to also install the associated " 104 | "GNOME Shell extension from extensions.gnome.org - https://extensions.gnome." 105 | "org/extension/336/hardware-sensors-indicator/ ." 106 | msgstr "" 107 | 108 | #: ../indicator-sensors/indicator-sensors.c:152 109 | msgid "No Sensors Enabled For Monitoring" 110 | msgstr "" 111 | 112 | #: ../indicator-sensors/indicator-sensors.c:153 113 | msgid "" 114 | "Sensors detected but none are enabled for monitoring. To enable monitoring " 115 | "of sensors open the Preferences window and select the sensors to monitor" 116 | msgstr "" 117 | 118 | #: ../indicator-sensors/is-application.c:824 119 | msgid "Indicator for GNOME / Unity showing hardware sensors." 120 | msgstr "" 121 | 122 | #: ../indicator-sensors/is-fan-sensor.c:40 123 | msgid " RPM" 124 | msgstr "" 125 | 126 | #: ../indicator-sensors/is-indicator.c:160 127 | msgid "Preferences…" 128 | msgstr "Preferences…" 129 | 130 | #: ../indicator-sensors/is-indicator.c:161 131 | msgid "Preferences" 132 | msgstr "" 133 | 134 | #: ../indicator-sensors/is-indicator.c:162 135 | msgid "About…" 136 | msgstr "" 137 | 138 | #: ../indicator-sensors/is-indicator.c:163 139 | msgid "About" 140 | msgstr "" 141 | 142 | #: ../indicator-sensors/is-indicator.c:164 143 | #: ../indicator-sensors/is-indicator.c:165 144 | msgid "Quit" 145 | msgstr "Quit" 146 | 147 | #: ../indicator-sensors/is-indicator.c:237 148 | msgid "No Sensors" 149 | msgstr "No Sensors" 150 | 151 | #: ../indicator-sensors/is-indicator.c:554 152 | #: ../indicator-sensors/is-indicator.c:680 153 | msgid "No active sensors" 154 | msgstr "No active sensors" 155 | 156 | #: ../indicator-sensors/is-manager.c:302 157 | #: ../indicator-sensors/is-sensor-dialog.c:315 158 | msgid "Sensor" 159 | msgstr "Sensor" 160 | 161 | #: ../indicator-sensors/is-manager.c:310 162 | #: ../indicator-sensors/is-preferences-dialog.c:149 163 | msgid "Icon" 164 | msgstr "" 165 | 166 | #: ../indicator-sensors/is-manager.c:319 167 | #: ../indicator-sensors/is-preferences-dialog.c:154 168 | #: ../indicator-sensors/is-sensor-dialog.c:106 169 | msgid "Label" 170 | msgstr "Label" 171 | 172 | #: ../indicator-sensors/is-manager.c:329 173 | msgid "Enabled" 174 | msgstr "Enabled" 175 | 176 | #: ../indicator-sensors/is-preferences-dialog.c:108 177 | msgid "Hardware Sensors Indicator Preferences" 178 | msgstr "" 179 | 180 | #: ../indicator-sensors/is-preferences-dialog.c:127 181 | msgid "General" 182 | msgstr "General" 183 | 184 | #: ../indicator-sensors/is-preferences-dialog.c:135 185 | msgid "Start automatically on login" 186 | msgstr "Start automatically on login" 187 | 188 | #: ../indicator-sensors/is-preferences-dialog.c:141 189 | msgid "Primary sensor display" 190 | msgstr "Primary sensor display" 191 | 192 | #: ../indicator-sensors/is-preferences-dialog.c:159 193 | msgid "Value" 194 | msgstr "" 195 | 196 | #: ../indicator-sensors/is-preferences-dialog.c:176 197 | msgid "Celsius (°C)" 198 | msgstr "Celsius (°C)" 199 | 200 | #: ../indicator-sensors/is-preferences-dialog.c:187 201 | msgid "Fahrenheit (°F)" 202 | msgstr "Fahrenheit (°F)" 203 | 204 | #: ../indicator-sensors/is-sensor.c:380 205 | msgid "Sensor Alarm" 206 | msgstr "Sensor Alarm" 207 | 208 | #: ../indicator-sensors/is-sensor-dialog.c:88 209 | msgid " Sensor Properties" 210 | msgstr " Sensor Properties" 211 | 212 | #: ../indicator-sensors/is-sensor-dialog.c:115 213 | msgid "Alarm" 214 | msgstr "Alarm" 215 | 216 | #: ../indicator-sensors/is-sensor-dialog.c:123 217 | msgid "Disabled" 218 | msgstr "Disabled" 219 | 220 | #: ../indicator-sensors/is-sensor-dialog.c:126 221 | msgid "Below" 222 | msgstr "Below" 223 | 224 | #: ../indicator-sensors/is-sensor-dialog.c:129 225 | msgid "Above" 226 | msgstr "Above" 227 | 228 | #: ../indicator-sensors/is-sensor-dialog.c:147 229 | msgid "Low value" 230 | msgstr "" 231 | 232 | #: ../indicator-sensors/is-sensor-dialog.c:166 233 | msgid "High value" 234 | msgstr "" 235 | 236 | #. first placeholder is sensor name 237 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:159 238 | #, c-format 239 | msgid "Error reading temperature value for GPU %d" 240 | msgstr "Error reading temperature value for GPU %d" 241 | 242 | #. first placeholder is sensor name 243 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:198 244 | #, c-format 245 | msgid "Error reading fanspeed value for GPU %d" 246 | msgstr "Error reading fanspeed value for GPU %d" 247 | 248 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:337 249 | msgid "Temperature" 250 | msgstr "Temperature" 251 | 252 | #: ../plugins/aticonfig/is-aticonfig-plugin.c:355 253 | msgid "Fan" 254 | msgstr "Fan" 255 | 256 | #. first placeholder is sensor name, 257 | #. * second is error message 258 | #: ../plugins/libsensors/is-libsensors-plugin.c:174 259 | #, c-format 260 | msgid "Error getting sensor value for sensor %s: %s [%d]" 261 | msgstr "Error getting sensor value for sensor %s: %s [%d]" 262 | 263 | #. translators: V is the unit for Voltage, replace with 264 | #. appropriate unit 265 | #: ../plugins/libsensors/is-libsensors-plugin.c:315 266 | msgid "V" 267 | msgstr "V" 268 | 269 | #: ../plugins/libsensors/is-libsensors-plugin.c:375 270 | msgid "No Sensors Detected" 271 | msgstr "" 272 | 273 | #: ../plugins/libsensors/is-libsensors-plugin.c:376 274 | #, c-format 275 | msgid "" 276 | "Try running the command 'sensors-detect' from the command-line and " 277 | "restarting %s" 278 | msgstr "" 279 | 280 | #. first placeholder is 281 | #. * sensor name 282 | #: ../plugins/nvidia/is-nvidia-plugin.c:192 283 | #, c-format 284 | msgid "Error getting sensor value for sensor %s" 285 | msgstr "Error getting sensor value for sensor %s" 286 | 287 | #: ../plugins/udisks/is-udisks-plugin.c:149 288 | #: ../plugins/udisks2/is-udisks2-plugin.c:126 289 | #, c-format 290 | msgid "Error reading new SMART data for sensor %s" 291 | msgstr "Error reading new SMART data for sensor %s" 292 | 293 | #: ../plugins/udisks/is-udisks-plugin.c:165 294 | #, c-format 295 | msgid "Error refreshing SMART data for sensor %s" 296 | msgstr "Error refreshing SMART data for sensor %s" 297 | --------------------------------------------------------------------------------