mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
commit before renaming
This commit is contained in:
parent
bc8aadc17b
commit
4164c7fe04
4
COPYING
4
COPYING
@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively
|
|||||||
state the exclusion of warranty; and each file should have at least
|
state the exclusion of warranty; and each file should have at least
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
pytextmonitor
|
awesome-widgets
|
||||||
Copyright (C) 2013-2014 Evgeniy Alekseev
|
Copyright (C) 2013-2014 Evgeniy Alekseev
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
|
|||||||
If the program does terminal interaction, make it output a short
|
If the program does terminal interaction, make it output a short
|
||||||
notice like this when it starts in an interactive mode:
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
pytextmonitor Copyright (C) 2013 Evgeniy Alekseev
|
awesome-widgets Copyright (C) 2013 Evgeniy Alekseev
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
This is free software, and you are welcome to redistribute it
|
This is free software, and you are welcome to redistribute it
|
||||||
under certain conditions; type `show c' for details.
|
under certain conditions; type `show c' for details.
|
||||||
|
@ -221,7 +221,7 @@ List of commands, which will be run. Number of null lines is a number of unneede
|
|||||||
|
|
||||||
Select one of supported music playes for player label.
|
Select one of supported music playes for player label.
|
||||||
|
|
||||||
PTM desktop panel
|
Desktop panel
|
||||||
=================
|
=================
|
||||||
|
|
||||||
Since version 1.11.0 it provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
|
Since version 1.11.0 it provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
|
||||||
|
@ -5,7 +5,7 @@ cmake_policy (SET CMP0002 OLD)
|
|||||||
cmake_policy (SET CMP0011 NEW)
|
cmake_policy (SET CMP0011 NEW)
|
||||||
cmake_policy (SET CMP0015 NEW)
|
cmake_policy (SET CMP0015 NEW)
|
||||||
|
|
||||||
project (pytextmonitor)
|
project (awesome-widgets)
|
||||||
set (PROJECT_VERSION_MAJOR 2)
|
set (PROJECT_VERSION_MAJOR 2)
|
||||||
set (PROJECT_VERSION_MINOR 0)
|
set (PROJECT_VERSION_MINOR 0)
|
||||||
set (PROJECT_VERSION_PATCH 0)
|
set (PROJECT_VERSION_PATCH 0)
|
||||||
@ -26,5 +26,4 @@ endif ()
|
|||||||
add_subdirectory (awesome-widget)
|
add_subdirectory (awesome-widget)
|
||||||
add_subdirectory (ext-sysmon)
|
add_subdirectory (ext-sysmon)
|
||||||
add_subdirectory (desktop-panel)
|
add_subdirectory (desktop-panel)
|
||||||
add_subdirectory (ptm)
|
|
||||||
add_subdirectory (readme)
|
add_subdirectory (readme)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# set project name
|
# set project name
|
||||||
set (SUBPROJECT plasma_applet_ptm-awesome-widget)
|
set (SUBPROJECT plasma_applet_awesome-widget)
|
||||||
set (PLUGIN_NAME ${SUBPROJECT})
|
set (PLUGIN_NAME ${SUBPROJECT})
|
||||||
message (STATUS "Subproject ${SUBPROJECT}")
|
message (STATUS "Subproject ${SUBPROJECT}")
|
||||||
|
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "awesome-widget.h"
|
#include "awesome-widget.h"
|
||||||
@ -39,7 +39,7 @@ AwesomeWidget::AwesomeWidget(QObject *parent, const QVariantList &args)
|
|||||||
{
|
{
|
||||||
// debug
|
// debug
|
||||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||||
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
|
||||||
if (debugEnv == QString("yes"))
|
if (debugEnv == QString("yes"))
|
||||||
debug = true;
|
debug = true;
|
||||||
else
|
else
|
||||||
@ -380,4 +380,4 @@ void AwesomeWidget::showReadme()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
K_EXPORT_PLASMA_APPLET(ptm-awesome-widget, AwesomeWidget)
|
K_EXPORT_PLASMA_APPLET(awesome-widget, AwesomeWidget)
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "awesome-widget.h"
|
#include "awesome-widget.h"
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "customlabel.h"
|
#include "customlabel.h"
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef CUSTOMLABEL_H
|
#ifndef CUSTOMLABEL_H
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "awesome-widget.h"
|
#include "awesome-widget.h"
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=PTM Awesome Widget
|
Name=Awesome Widget
|
||||||
Comment=A minimalistic Plasmoid script written on Python2
|
Comment=A minimalistic Plasmoid
|
||||||
Comment[en]=A minimalistic Plasmoid script written on Python2
|
Comment[en]=A minimalistic Plasmoid
|
||||||
Comment[es]=Un plasmoide minimalista escrito en Python2
|
Comment[es]=Un plasmoide minimalista
|
||||||
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
|
Comment[es]=Un script Plasmoïde minimaliste
|
||||||
Comment[pt_BR]=Um script Plasmoid escrito em Python2
|
Comment[pt_BR]=Um script Plasmoid
|
||||||
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
|
Comment[ru]=Минималистичный плазмоид
|
||||||
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
|
Comment[uk]=Мінімалістичний плазмоїд
|
||||||
X-KDE-ServiceTypes=Plasma/Applet
|
X-KDE-ServiceTypes=Plasma/Applet
|
||||||
Type=Service
|
Type=Service
|
||||||
Icon=utilities-system-monitor
|
Icon=utilities-system-monitor
|
||||||
|
|
||||||
X-KDE-Library=plasma_applet_ptm-awesome-widget
|
X-KDE-Library=plasma_applet_awesome-widget
|
||||||
|
|
||||||
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||||
X-KDE-PluginInfo-Name=ptm-awesome-widget
|
X-KDE-PluginInfo-Name=awesome-widget
|
||||||
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
||||||
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
|
X-KDE-PluginInfo-Website=http://arcanis.name/projects/awesome-widgets/
|
||||||
X-KDE-PluginInfo-Category=System Information
|
X-KDE-PluginInfo-Category=System Information
|
||||||
X-KDE-PluginInfo-Depends=
|
X-KDE-PluginInfo-Depends=
|
||||||
X-KDE-PluginInfo-License=GPLv3
|
X-KDE-PluginInfo-License=GPLv3
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[Global]
|
[Global]
|
||||||
IconName=system
|
IconName=system
|
||||||
Name=ptm-awesome-widget
|
Name=awesome-widget
|
||||||
Comment=Awesome widget information
|
Comment=Awesome widget information
|
||||||
|
|
||||||
[Event/system]
|
[Event/system]
|
||||||
|
@ -18,7 +18,8 @@ foreach (_current_PO_FILE ${_po_files})
|
|||||||
DEPENDS ${_current_PO_FILE}
|
DEPENDS ${_current_PO_FILE}
|
||||||
)
|
)
|
||||||
|
|
||||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME plasma_applet_ptm-awesome-widget.mo)
|
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/
|
||||||
|
RENAME plasma_applet_awesome-widget.mo)
|
||||||
list (APPEND _gmoFiles ${_gmoFile})
|
list (APPEND _gmoFiles ${_gmoFile})
|
||||||
endforeach (_current_PO_FILE)
|
endforeach (_current_PO_FILE)
|
||||||
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
|
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
BASEDIR="../" # root of translatable sources
|
BASEDIR="../" # root of translatable sources
|
||||||
PROJECT="plasma_applet_ptm-awesome-widget" # project name
|
PROJECT="plasma_applet_awesome-widget" # project name
|
||||||
BUGADDR="https://github.com/arcan1s/pytextmonitor/issues" # MSGID-Bugs
|
BUGADDR="https://github.com/arcan1s/awesome-widgets/issues" # MSGID-Bugs
|
||||||
WDIR=$(pwd) # working dir
|
WDIR=$(pwd) # working dir
|
||||||
|
|
||||||
echo "Preparing rc files"
|
echo "Preparing rc files"
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "awesome-widget.h"
|
#include "awesome-widget.h"
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Detailed information may be found on <a href="http://arcanis.name/projects/pytextmonitor/">project homepage</a></string>
|
<string>Detailed information may be found on <a href="http://arcanis.name/projects/awesome-widgets/">project homepage</a></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# set project name
|
# set project name
|
||||||
set (SUBPROJECT plasma_applet_ptm-desktop-panel)
|
set (SUBPROJECT plasma_applet_desktop-panel)
|
||||||
message (STATUS "Subproject ${SUBPROJECT}")
|
message (STATUS "Subproject ${SUBPROJECT}")
|
||||||
|
|
||||||
# find required libaries
|
# find required libaries
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "desktop-panel.h"
|
#include "desktop-panel.h"
|
||||||
@ -42,7 +42,7 @@ CustomPlasmaLabel::CustomPlasmaLabel(DesktopPanel *wid, const int num)
|
|||||||
{
|
{
|
||||||
// debug
|
// debug
|
||||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||||
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
|
||||||
if (debugEnv == QString("yes"))
|
if (debugEnv == QString("yes"))
|
||||||
debug = true;
|
debug = true;
|
||||||
else
|
else
|
||||||
@ -81,7 +81,7 @@ DesktopPanel::DesktopPanel(QObject *parent, const QVariantList &args)
|
|||||||
{
|
{
|
||||||
// debug
|
// debug
|
||||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||||
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
|
||||||
if (debugEnv == QString("yes"))
|
if (debugEnv == QString("yes"))
|
||||||
debug = true;
|
debug = true;
|
||||||
else
|
else
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ private:
|
|||||||
QStringList formatLine;
|
QStringList formatLine;
|
||||||
};
|
};
|
||||||
|
|
||||||
K_EXPORT_PLASMA_APPLET(ptm-desktop-panel, DesktopPanel)
|
K_EXPORT_PLASMA_APPLET(desktop-panel, DesktopPanel)
|
||||||
|
|
||||||
|
|
||||||
#endif /* DESKTOP_PANEL_H */
|
#endif /* DESKTOP_PANEL_H */
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=PTM Desktop Panel
|
Name=Desktop Panel
|
||||||
Comment=A minimalistic Plasmoid script written on Python2
|
Comment=A minimalistic Plasmoid
|
||||||
Comment[en]=A minimalistic Plasmoid script written on Python2
|
Comment[en]=A minimalistic Plasmoid
|
||||||
Comment[es]=Un plasmoide minimalista escrito en Python2
|
Comment[es]=Un plasmoide minimalista
|
||||||
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
|
Comment[es]=Un script Plasmoïde minimaliste
|
||||||
Comment[pt_BR]=Um script Plasmoid escrito em Python2
|
Comment[pt_BR]=Um script Plasmoid
|
||||||
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
|
Comment[ru]=Минималистичный плазмоид
|
||||||
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
|
Comment[uk]=Мінімалістичний плазмоїд
|
||||||
X-KDE-ServiceTypes=Plasma/Applet
|
X-KDE-ServiceTypes=Plasma/Applet
|
||||||
Type=Service
|
Type=Service
|
||||||
Icon=utilities-system-monitor
|
Icon=utilities-system-monitor
|
||||||
|
|
||||||
X-KDE-Library=plasma_applet_ptm-desktop-panel
|
X-KDE-Library=plasma_applet_desktop-panel
|
||||||
|
|
||||||
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||||
X-KDE-PluginInfo-Name=ptm-desktop-panel
|
X-KDE-PluginInfo-Name=desktop-panel
|
||||||
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
||||||
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
|
X-KDE-PluginInfo-Website=http://arcanis.name/projects/awesome-widgets/
|
||||||
X-KDE-PluginInfo-Category=System Information
|
X-KDE-PluginInfo-Category=System Information
|
||||||
X-KDE-PluginInfo-Depends=
|
X-KDE-PluginInfo-Depends=
|
||||||
X-KDE-PluginInfo-License=GPLv3
|
X-KDE-PluginInfo-License=GPLv3
|
||||||
|
@ -18,7 +18,7 @@ foreach (_current_PO_FILE ${_po_files})
|
|||||||
DEPENDS ${_current_PO_FILE}
|
DEPENDS ${_current_PO_FILE}
|
||||||
)
|
)
|
||||||
|
|
||||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME plasma_applet_ptm-desktop-panel.mo)
|
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME plasma_applet_desktop-panel.mo)
|
||||||
list (APPEND _gmoFiles ${_gmoFile})
|
list (APPEND _gmoFiles ${_gmoFile})
|
||||||
endforeach (_current_PO_FILE)
|
endforeach (_current_PO_FILE)
|
||||||
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
|
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
BASEDIR="../" # root of translatable sources
|
BASEDIR="../" # root of translatable sources
|
||||||
PROJECT="plasma_applet_ptm-desktop-panel" # project name
|
PROJECT="plasma_applet_desktop-panel" # project name
|
||||||
BUGADDR="https://github.com/arcan1s/pytextmonitor/issues" # MSGID-Bugs
|
BUGADDR="https://github.com/arcan1s/awesome-widgets/issues" # MSGID-Bugs
|
||||||
WDIR=`pwd` # working dir
|
WDIR=`pwd` # working dir
|
||||||
|
|
||||||
echo "Preparing rc files"
|
echo "Preparing rc files"
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
|||||||
|
|
||||||
// debug
|
// debug
|
||||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||||
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
|
||||||
if (debugEnv == QString("yes"))
|
if (debugEnv == QString("yes"))
|
||||||
debug = true;
|
debug = true;
|
||||||
else
|
else
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* This file is part of pytextmonitor *
|
* This file is part of awesome-widgets *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is free software: you can redistribute it and/or *
|
* awesome-widgets is free software: you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
* published by the Free Software Foundation, either version 3 of the *
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* License, or (at your option) any later version. *
|
* License, or (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* pytextmonitor is distributed in the hope that it will be useful, *
|
* awesome-widgets is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
|
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef EXTSYSMON_H
|
#ifndef EXTSYSMON_H
|
||||||
|
@ -16,5 +16,5 @@ X-KDE-PluginInfo-Name=ext-sysmon
|
|||||||
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
||||||
X-KDE-PluginInfo-Category=System Information
|
X-KDE-PluginInfo-Category=System Information
|
||||||
X-KDE-PluginInfo-Depends=
|
X-KDE-PluginInfo-Depends=
|
||||||
X-KDE-PluginInfo-License=GPLv3
|
X-KDE-PluginInfo-License=GPL3
|
||||||
X-KDE-PluginInfo-EnabledByDefault=true
|
X-KDE-PluginInfo-EnabledByDefault=true
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
# set project name
|
|
||||||
set (SUBPROJECT pytextmonitor)
|
|
||||||
# for notifications
|
|
||||||
set (PLUGIN_NAME plasma_applet_pytextmonitor)
|
|
||||||
message (STATUS "Subproject ${SUBPROJECT}")
|
|
||||||
|
|
||||||
# find required libaries
|
|
||||||
find_package (KDE4 REQUIRED)
|
|
||||||
add_definitions (${KDE4_DEFINITIONS})
|
|
||||||
|
|
||||||
add_subdirectory (po)
|
|
||||||
|
|
||||||
# set sources
|
|
||||||
set (SUBPROJECT_CODE_DIR "contents/code")
|
|
||||||
set (SUBPROJECT_MISC_DIR "contents/misc")
|
|
||||||
set (SUBPROJECT_UI_DIR "contents/ui")
|
|
||||||
file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
|
|
||||||
file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
|
|
||||||
file (GLOB SUBPROJECT_NOTIFY ${SUBPROJECT_MISC_DIR}/*.notifyrc)
|
|
||||||
file (GLOB SUBPROJECT_SOURCE ${SUBPROJECT_CODE_DIR}/*.py)
|
|
||||||
file (GLOB SUBPROJECT_UI ${SUBPROJECT_UI_DIR}/*.ui)
|
|
||||||
|
|
||||||
# prepare
|
|
||||||
configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
|
|
||||||
|
|
||||||
# install
|
|
||||||
install (FILES ${SUBPROJECT_SOURCE} DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}/${SUBPROJECT_CODE_DIR}")
|
|
||||||
install (FILES ${SUBPROJECT_UI} DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}/${SUBPROJECT_UI_DIR}")
|
|
||||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR} RENAME "plasma-applet-${SUBPROJECT}.desktop")
|
|
||||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}")
|
|
||||||
install (FILES ${SUBPROJECT_NOTIFY} DESTINATION ${DATA_INSTALL_DIR}/${PLUGIN_NAME})
|
|
@ -1,56 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.plasma import *
|
|
||||||
from PyQt4 import uic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AdvancedWindow(QWidget):
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""settings window definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
QWidget.__init__(self)
|
|
||||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'advanced.ui'), self)
|
|
||||||
self.parent = parent
|
|
||||||
|
|
||||||
QObject.connect(self.ui.checkBox_netdev, SIGNAL("stateChanged(int)"), self.setNetdevEnabled)
|
|
||||||
QObject.connect(self.ui.listWidget_hddDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddDevice.openPersistentEditor)
|
|
||||||
QObject.connect(self.ui.listWidget_hddSpeedDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddSpeedDevice.openPersistentEditor)
|
|
||||||
QObject.connect(self.ui.listWidget_mount, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_mount.openPersistentEditor)
|
|
||||||
QObject.connect(self.ui.listWidget_tempDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_tempDevice.openPersistentEditor)
|
|
||||||
|
|
||||||
|
|
||||||
def setNetdevEnabled(self):
|
|
||||||
"""function to set enabled netdev"""
|
|
||||||
if self.debug: qDebug("[PTM] [advanced.py] [setNetdevEnabled]")
|
|
||||||
if self.debug: qDebug("[PTM] [advanced.py] [setNetdevEnabled] : State '%s'" %(self.ui.checkBox_netdev.checkState()))
|
|
||||||
if (self.ui.checkBox_netdev.checkState() == 0):
|
|
||||||
self.ui.comboBox_netdev.setDisabled(True)
|
|
||||||
else:
|
|
||||||
self.ui.comboBox_netdev.setEnabled(True)
|
|
@ -1,40 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.plasma import *
|
|
||||||
from PyQt4 import uic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AppearanceWindow(QWidget):
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""settings window definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
QWidget.__init__(self)
|
|
||||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'appearance.ui'), self)
|
|
||||||
self.parent = parent
|
|
@ -1,34 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com> #
|
|
||||||
# #
|
|
||||||
# This program is free software; you can redistribute it and/or modify #
|
|
||||||
# it under the terms of the GNU General Public License as published by #
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or #
|
|
||||||
# (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# This program is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License along #
|
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc., #
|
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Config():
|
|
||||||
def __init__(self, applet):
|
|
||||||
self.applet = applet
|
|
||||||
self.config = self.applet.config()
|
|
||||||
|
|
||||||
|
|
||||||
def get(self, key, default = ''):
|
|
||||||
return self.config.readEntry(key, default).toString()
|
|
||||||
|
|
||||||
|
|
||||||
def set(self, key, value):
|
|
||||||
self.config.writeEntry(key, value)
|
|
@ -1,332 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.kdecore import *
|
|
||||||
from PyKDE4.kdeui import *
|
|
||||||
import commands
|
|
||||||
import config
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ConfigDefinition:
|
|
||||||
def __init__(self, parent, configpage, defaults):
|
|
||||||
"""class definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
self.parent = parent
|
|
||||||
self.configpage = configpage
|
|
||||||
self.defaults = defaults
|
|
||||||
|
|
||||||
|
|
||||||
def configAccepted(self):
|
|
||||||
"""function to accept settings"""
|
|
||||||
if self.debug: qDebug("[PTM] [configdef.py] [configAccepted]")
|
|
||||||
settings = config.Config(self.parent)
|
|
||||||
|
|
||||||
# update local variables
|
|
||||||
settings.set('interval', self.configpage['appearance'].ui.spinBox_interval.value())
|
|
||||||
settings.set('font_family', str(self.configpage['appearance'].ui.fontComboBox.currentFont().family()))
|
|
||||||
settings.set('font_size', self.configpage['appearance'].ui.spinBox_fontSize.value())
|
|
||||||
settings.set('font_color', str(self.configpage['appearance'].ui.kcolorcombo.color().name()))
|
|
||||||
settings.set('font_style', str(self.configpage['appearance'].ui.comboBox_style.currentText()))
|
|
||||||
settings.set('font_weight', self.configpage['appearance'].ui.spinBox_weight.value())
|
|
||||||
|
|
||||||
settings.set('background', self.configpage['advanced'].ui.checkBox_background.checkState())
|
|
||||||
settings.set('layout', self.configpage['advanced'].ui.checkBox_layout.checkState())
|
|
||||||
settings.set('popup', self.configpage['advanced'].ui.checkBox_popup.checkState())
|
|
||||||
settings.set('left_stretch', self.configpage['advanced'].ui.checkBox_leftStretch.checkState())
|
|
||||||
settings.set('right_stretch', self.configpage['advanced'].ui.checkBox_rightStretch.checkState())
|
|
||||||
settings.set('custom_time', str(self.configpage['advanced'].ui.lineEdit_timeFormat.text()))
|
|
||||||
settings.set('custom_uptime', str(self.configpage['advanced'].ui.lineEdit_uptimeFormat.text()))
|
|
||||||
settings.set('temp_units', str(self.configpage['advanced'].ui.comboBox_tempUnits.currentText()))
|
|
||||||
item = QStringList()
|
|
||||||
for i in range(self.configpage['advanced'].ui.listWidget_tempDevice.count()):
|
|
||||||
if (self.configpage['advanced'].ui.listWidget_tempDevice.item(i).checkState() == Qt.Checked):
|
|
||||||
item.append(self.configpage['advanced'].ui.listWidget_tempDevice.item(i).text())
|
|
||||||
settings.set('temp_device', str(item.join(QString('@@'))))
|
|
||||||
item = QStringList()
|
|
||||||
for i in range(self.configpage['advanced'].ui.listWidget_mount.count()):
|
|
||||||
if (self.configpage['advanced'].ui.listWidget_mount.item(i).checkState() == Qt.Checked):
|
|
||||||
item.append(self.configpage['advanced'].ui.listWidget_mount.item(i).text())
|
|
||||||
settings.set('mount', str(item.join(QString('@@'))))
|
|
||||||
item = QStringList()
|
|
||||||
for i in range(self.configpage['advanced'].ui.listWidget_hddSpeedDevice.count()):
|
|
||||||
if (self.configpage['advanced'].ui.listWidget_hddSpeedDevice.item(i).checkState() == Qt.Checked):
|
|
||||||
item.append(self.configpage['advanced'].ui.listWidget_hddSpeedDevice.item(i).text())
|
|
||||||
settings.set('disk', str(item.join(QString('@@'))))
|
|
||||||
item = QStringList()
|
|
||||||
for i in range(self.configpage['advanced'].ui.listWidget_hddDevice.count()):
|
|
||||||
if (self.configpage['advanced'].ui.listWidget_hddDevice.item(i).checkState() == Qt.Checked):
|
|
||||||
item.append(self.configpage['advanced'].ui.listWidget_hddDevice.item(i).text())
|
|
||||||
settings.set('hdd', str(item.join(QString('@@'))))
|
|
||||||
settings.set('netdir', str(self.configpage['advanced'].ui.lineEdit_netdir.text()))
|
|
||||||
settings.set('netdevBool', self.configpage['advanced'].ui.checkBox_netdev.checkState())
|
|
||||||
settings.set('custom_netdev', str(self.configpage['advanced'].ui.comboBox_netdev.currentText()))
|
|
||||||
settings.set('battery_device', str(self.configpage['advanced'].ui.lineEdit_batdev.text()))
|
|
||||||
settings.set('ac_device', str(self.configpage['advanced'].ui.lineEdit_acdev.text()))
|
|
||||||
settings.set('ac_online', str(self.configpage['advanced'].ui.lineEdit_acOnline.text()))
|
|
||||||
settings.set('ac_offline', str(self.configpage['advanced'].ui.lineEdit_acOffline.text()))
|
|
||||||
|
|
||||||
settings.set('tooltip_num', self.configpage['tooltip'].ui.spinBox_tooltipNum.value())
|
|
||||||
if (self.configpage['tooltip'].checkBox_background.checkState() == 0):
|
|
||||||
settings.set("tooltip_background", "null")
|
|
||||||
else:
|
|
||||||
settings.set("tooltip_background", str(self.configpage['tooltip'].kcolorcombos["background"].color().name()))
|
|
||||||
for label in ['cpu', 'cpuclock', 'mem', 'swap', 'down', 'up']:
|
|
||||||
settings.set(self.defaults['confColor'][label], str(self.configpage['tooltip'].kcolorcombos[label].color().name()))
|
|
||||||
|
|
||||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
|
||||||
try:
|
|
||||||
with open(dataengineConfig, 'w') as deConfigFile:
|
|
||||||
item = QStringList()
|
|
||||||
for i in range(self.configpage['dataengine'].ui.tableWidget_customCommand.rowCount()):
|
|
||||||
if (self.configpage['dataengine'].ui.tableWidget_customCommand.item(i, 0) != None):
|
|
||||||
item.append(self.configpage['dataengine'].ui.tableWidget_customCommand.item(i, 0).text())
|
|
||||||
deConfigFile.write("CUSTOM=" + str(item.join(QString('@@'))) + "\n")
|
|
||||||
deConfigFile.write("DESKTOPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_desktopCmd.text()) + "\n")
|
|
||||||
deConfigFile.write("GPUDEV=" + str(self.configpage['dataengine'].ui.comboBox_gpudev.currentText()) + "\n")
|
|
||||||
deConfigFile.write("HDDDEV=" + str(self.configpage['dataengine'].ui.comboBox_hdddev.currentText()) + "\n")
|
|
||||||
deConfigFile.write("HDDTEMPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_hddtempCmd.text()) + "\n")
|
|
||||||
deConfigFile.write("MPDADDRESS=" + str(self.configpage['dataengine'].ui.lineEdit_mpdaddress.text()) + "\n")
|
|
||||||
deConfigFile.write("MPDPORT=" + str(self.configpage['dataengine'].ui.spinBox_mpdport.value()) + "\n")
|
|
||||||
deConfigFile.write("MPRIS=" + str(self.configpage['dataengine'].ui.comboBox_mpris.currentText()) + "\n")
|
|
||||||
item = QStringList()
|
|
||||||
for i in range(self.configpage['dataengine'].ui.tableWidget_pkgCommand.rowCount()):
|
|
||||||
if (self.configpage['dataengine'].ui.tableWidget_pkgCommand.item(i, 0) != None):
|
|
||||||
item.append(self.configpage['dataengine'].ui.tableWidget_pkgCommand.item(i, 0).text() + ":" +
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.item(i, 1).text())
|
|
||||||
pkgCmd = []
|
|
||||||
pkgNull = []
|
|
||||||
for command in item:
|
|
||||||
try:
|
|
||||||
pkgCmd.append(str(command.split(QString(":"))[0]))
|
|
||||||
pkgNull.append(str(command.split(QString(":"))[1]))
|
|
||||||
except:
|
|
||||||
pkgCmd.append(str(command))
|
|
||||||
pkgNull.append("0")
|
|
||||||
deConfigFile.write("PKGCMD=" + ','.join(pkgCmd) + "\n")
|
|
||||||
deConfigFile.write("PKGNULL=" + ','.join(pkgNull) + "\n")
|
|
||||||
deConfigFile.write("PLAYER=" + str(self.configpage['dataengine'].ui.comboBox_playerSelect.currentText()) + "\n")
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# disconnecting from source and clear layout
|
|
||||||
self.parent.disconnectFromSource()
|
|
||||||
|
|
||||||
labelOrder = "--------------------"
|
|
||||||
for label in self.defaults['order'].keys():
|
|
||||||
if (self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState() > 0):
|
|
||||||
pos = self.configpage['widget'].sliders[self.defaults['order'][label]].value() - 1
|
|
||||||
labelOrder = labelOrder[:pos] + label + labelOrder[pos+1:]
|
|
||||||
settings.set(self.defaults['confFormat'][self.defaults['order'][label]], str(self.configpage['widget'].lineedits[self.defaults['order'][label]].text()))
|
|
||||||
settings.set(self.defaults['confBool'][self.defaults['order'][label]], self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState())
|
|
||||||
labelOrder = ''.join(labelOrder.split('-'))
|
|
||||||
settings.set('label_order', labelOrder)
|
|
||||||
|
|
||||||
# reinitializate
|
|
||||||
self.parent.reInit()
|
|
||||||
|
|
||||||
|
|
||||||
def createConfigurationInterface(self, parent):
|
|
||||||
"""function to setup configuration window"""
|
|
||||||
if self.debug: qDebug("[PTM] [configdef.py] [createConfigurationInterface]")
|
|
||||||
settings = config.Config(self.parent)
|
|
||||||
|
|
||||||
font = QFont(str(settings.get('font_family', 'Terminus')), settings.get('font_size', 12).toInt()[0], 400, False)
|
|
||||||
self.configpage['appearance'].ui.spinBox_interval.setValue(settings.get('interval', 2000).toInt()[0])
|
|
||||||
self.configpage['appearance'].ui.fontComboBox.setCurrentFont(font)
|
|
||||||
self.configpage['appearance'].ui.spinBox_fontSize.setValue(settings.get('font_size', 12).toInt()[0])
|
|
||||||
self.configpage['appearance'].ui.kcolorcombo.setColor(QColor(str(settings.get('font_color', '#000000'))))
|
|
||||||
font = str(settings.get('font_style', 'normal'))
|
|
||||||
if (font == 'normal'):
|
|
||||||
self.configpage['appearance'].ui.comboBox_style.setCurrentIndex(0)
|
|
||||||
else:
|
|
||||||
self.configpage['appearance'].ui.comboBox_style.setCurrentIndex(1)
|
|
||||||
self.configpage['appearance'].ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0])
|
|
||||||
|
|
||||||
self.configpage['advanced'].ui.checkBox_background.setCheckState(settings.get('background', 2).toInt()[0])
|
|
||||||
self.configpage['advanced'].ui.checkBox_layout.setCheckState(settings.get('layout', 0).toInt()[0])
|
|
||||||
self.configpage['advanced'].ui.checkBox_popup.setCheckState(settings.get('popup', 2).toInt()[0])
|
|
||||||
self.configpage['advanced'].ui.checkBox_leftStretch.setCheckState(settings.get('left_stretch', 2).toInt()[0])
|
|
||||||
self.configpage['advanced'].ui.checkBox_rightStretch.setCheckState(settings.get('right_stretch', 2).toInt()[0])
|
|
||||||
self.configpage['advanced'].ui.lineEdit_timeFormat.setText(str(settings.get('custom_time', '$hh:$mm')))
|
|
||||||
self.configpage['advanced'].ui.lineEdit_uptimeFormat.setText(str(settings.get('custom_uptime', '$dd,$hh,$mm')))
|
|
||||||
index = self.configpage['advanced'].ui.comboBox_tempUnits.findText(str(settings.get('temp_units', "Celsius")))
|
|
||||||
self.configpage['advanced'].ui.comboBox_tempUnits.setCurrentIndex(index)
|
|
||||||
self.configpage['advanced'].ui.listWidget_tempDevice.clear()
|
|
||||||
commandOut = commands.getoutput("sensors")
|
|
||||||
for item in commandOut.split("\n\n"):
|
|
||||||
for device in item.split("\n"):
|
|
||||||
if (device.find('\xc2\xb0C') > -1):
|
|
||||||
try:
|
|
||||||
listItem = QListWidgetItem('lmsensors/' + item.split("\n")[0] + '/' + '_'.join(device.split(":")[0].split()))
|
|
||||||
listItem.setCheckState(0)
|
|
||||||
self.configpage['advanced'].ui.listWidget_tempDevice.addItem(listItem)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
for item in str(settings.get('temp_device', '')).split('@@'):
|
|
||||||
items = self.configpage['advanced'].ui.listWidget_tempDevice.findItems(item, Qt.MatchFixedString)
|
|
||||||
for listItem in items:
|
|
||||||
listItem.setCheckState(2)
|
|
||||||
self.configpage['advanced'].ui.listWidget_mount.clear()
|
|
||||||
commandOut = commands.getoutput("mount")
|
|
||||||
for item in commandOut.split("\n"):
|
|
||||||
try:
|
|
||||||
listItem = QListWidgetItem(item.split(' on ')[1].split(' type ')[0])
|
|
||||||
listItem.setCheckState(0)
|
|
||||||
self.configpage['advanced'].ui.listWidget_mount.addItem(listItem)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
for item in str(settings.get('mount', '/')).split('@@'):
|
|
||||||
items = self.configpage['advanced'].ui.listWidget_mount.findItems(item, Qt.MatchFixedString)
|
|
||||||
for listItem in items:
|
|
||||||
listItem.setCheckState(2)
|
|
||||||
self.configpage['advanced'].ui.listWidget_hddSpeedDevice.clear()
|
|
||||||
for item in self.defaults['disk']:
|
|
||||||
listItem = QListWidgetItem(item)
|
|
||||||
listItem.setCheckState(0)
|
|
||||||
self.configpage['advanced'].ui.listWidget_hddSpeedDevice.addItem(listItem)
|
|
||||||
for item in str(settings.get('disk', 'disk/sda_(8:0)')).split('@@'):
|
|
||||||
items = self.configpage['advanced'].ui.listWidget_hddSpeedDevice.findItems(item, Qt.MatchFixedString)
|
|
||||||
for listItem in items:
|
|
||||||
listItem.setCheckState(2)
|
|
||||||
self.configpage['advanced'].ui.listWidget_hddDevice.clear()
|
|
||||||
commandOut = commands.getoutput("find /dev -name '[hms]d[a-z]'")
|
|
||||||
for item in commandOut.split("\n"):
|
|
||||||
try:
|
|
||||||
listItem = QListWidgetItem(item)
|
|
||||||
listItem.setCheckState(0)
|
|
||||||
self.configpage['advanced'].ui.listWidget_hddDevice.addItem(listItem)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
|
|
||||||
items = self.configpage['advanced'].ui.listWidget_hddDevice.findItems(item, Qt.MatchFixedString)
|
|
||||||
for listItem in items:
|
|
||||||
listItem.setCheckState(2)
|
|
||||||
self.configpage['advanced'].ui.lineEdit_netdir.setText(str(settings.get('netdir', '/sys/class/net')))
|
|
||||||
self.configpage['advanced'].ui.checkBox_netdev.setCheckState(settings.get('netdevBool', 0).toInt()[0])
|
|
||||||
for item in QDir.entryList(QDir(str(settings.get('netdir', '/sys/class/net'))), QDir.Dirs | QDir.NoDotAndDotDot):
|
|
||||||
self.configpage['advanced'].ui.comboBox_netdev.addItem(item)
|
|
||||||
index = self.configpage['advanced'].ui.comboBox_netdev.findText(str(settings.get('custom_netdev', 'lo')))
|
|
||||||
self.configpage['advanced'].ui.comboBox_netdev.setCurrentIndex(index)
|
|
||||||
self.configpage['advanced'].ui.lineEdit_batdev.setText(str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity')))
|
|
||||||
self.configpage['advanced'].ui.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
|
|
||||||
self.configpage['advanced'].ui.lineEdit_acOnline.setText(str(settings.get('ac_online', '(*)')))
|
|
||||||
self.configpage['advanced'].ui.lineEdit_acOffline.setText(str(settings.get('ac_offline', '( )')))
|
|
||||||
|
|
||||||
self.configpage['tooltip'].ui.spinBox_tooltipNum.setValue(settings.get('tooltip_num', 100).toInt()[0])
|
|
||||||
if (str(settings.get('tooltip_background', 'null')) == "null"):
|
|
||||||
self.configpage['tooltip'].checkBox_background.setCheckState(0)
|
|
||||||
else:
|
|
||||||
self.configpage['tooltip'].checkBox_background.setCheckState(2)
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_background.setColor(QColor(str(settings.get('tooltip_background', 'null'))))
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_cpu.setColor(QColor(str(settings.get('cpu_color', '#ff0000'))))
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_cpuclock.setColor(QColor(str(settings.get('cpuclock_color', '#00ff00'))))
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_mem.setColor(QColor(str(settings.get('mem_color', '#0000ff'))))
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_swap.setColor(QColor(str(settings.get('swap_color', '#ffff00'))))
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
|
|
||||||
self.configpage['tooltip'].ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff'))))
|
|
||||||
|
|
||||||
deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'DESKTOPCMD':'qdbus org.kde.kwin /KWin currentDesktop',
|
|
||||||
'GPUDEV':'auto', 'HDDDEV':'all', 'HDDTEMPCMD':'sudo hddtemp', 'MPDADDRESS':'localhost',
|
|
||||||
'MPDPORT':'6600', 'MPRIS':'auto', 'PKGCMD':'pacman -Qu', 'PKGNULL':'0', 'PLAYER':'mpris'}
|
|
||||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
|
||||||
try:
|
|
||||||
with open(dataengineConfig, 'r') as deConfigFile:
|
|
||||||
for line in deConfigFile:
|
|
||||||
if ((line[0] != '#') and (line.split('=')[0] != line)):
|
|
||||||
deSettings[line.split('=')[0]] = line.split('=')[1][:-1]
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_customCommand.clear()
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_customCommand.setRowCount(len(deSettings['CUSTOM'].split('@@')))
|
|
||||||
headerList = QStringList()
|
|
||||||
headerList.append(i18n("Custom command"))
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_customCommand.setHorizontalHeaderLabels(headerList)
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_customCommand.horizontalHeader().setResizeMode(QHeaderView.Stretch)
|
|
||||||
for i in range(len(deSettings['CUSTOM'].split('@@'))):
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_customCommand.setItem(i, 0, QTableWidgetItem(deSettings['CUSTOM'].split('@@')[i]))
|
|
||||||
self.configpage['dataengine'].ui.lineEdit_desktopCmd.setText(deSettings['DESKTOPCMD'])
|
|
||||||
index = self.configpage['dataengine'].ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
|
|
||||||
self.configpage['dataengine'].ui.comboBox_gpudev.setCurrentIndex(index)
|
|
||||||
self.configpage['dataengine'].ui.comboBox_hdddev.clear()
|
|
||||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("all")
|
|
||||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("disable")
|
|
||||||
commandOut = commands.getoutput("find /dev -name '[hms]d[a-z]'")
|
|
||||||
for item in commandOut.split("\n"):
|
|
||||||
try:
|
|
||||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem(item)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
index = self.configpage['dataengine'].ui.comboBox_hdddev.findText(deSettings['HDDDEV'])
|
|
||||||
self.configpage['dataengine'].ui.comboBox_hdddev.setCurrentIndex(index)
|
|
||||||
self.configpage['dataengine'].ui.lineEdit_hddtempCmd.setText(deSettings['HDDTEMPCMD'])
|
|
||||||
self.configpage['dataengine'].ui.lineEdit_mpdaddress.setText(deSettings['MPDADDRESS'])
|
|
||||||
self.configpage['dataengine'].ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
|
||||||
self.configpage['dataengine'].ui.comboBox_mpris.addItem(deSettings['MPRIS'])
|
|
||||||
self.configpage['dataengine'].ui.comboBox_mpris.setCurrentIndex(self.configpage['dataengine'].ui.comboBox_mpris.count()-1)
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.clear()
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.setRowCount(len(deSettings['PKGCMD'].split(',')))
|
|
||||||
headerList = QStringList()
|
|
||||||
headerList.append(i18n("Package manager"))
|
|
||||||
headerList.append(i18n("Null lines"))
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.setHorizontalHeaderLabels(headerList)
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.horizontalHeader().setResizeMode(QHeaderView.Stretch)
|
|
||||||
for i in range(len(deSettings['PKGCMD'].split(','))):
|
|
||||||
try:
|
|
||||||
num = deSettings['PKGNULL'].split(',')[i]
|
|
||||||
except:
|
|
||||||
num = "0"
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.setItem(i, 0, QTableWidgetItem(deSettings['PKGCMD'].split(',')[i]))
|
|
||||||
self.configpage['dataengine'].ui.tableWidget_pkgCommand.setItem(i, 1, QTableWidgetItem(num))
|
|
||||||
index = self.configpage['dataengine'].ui.comboBox_playerSelect.findText(deSettings['PLAYER'])
|
|
||||||
self.configpage['dataengine'].ui.comboBox_playerSelect.setCurrentIndex(index)
|
|
||||||
|
|
||||||
labelOrder = str(settings.get('label_order', '1345'))
|
|
||||||
for label in self.defaults['order'].keys():
|
|
||||||
bool = settings.get(self.defaults['confBool'][self.defaults['order'][label]],
|
|
||||||
self.defaults['bool'][self.defaults['order'][label]]).toInt()[0]
|
|
||||||
self.configpage['widget'].checkboxes[self.defaults['order'][label]].setCheckState(bool)
|
|
||||||
if (bool > 0):
|
|
||||||
self.configpage['widget'].sliders[self.defaults['order'][label]].setValue(labelOrder.find(label) + 1)
|
|
||||||
self.configpage['widget'].lineedits[self.defaults['order'][label]].setText(str(settings.get(self.defaults['confFormat'][self.defaults['order'][label]],
|
|
||||||
self.defaults['format'][self.defaults['order'][label]])))
|
|
||||||
|
|
||||||
# add config page
|
|
||||||
page = {}
|
|
||||||
page['widget'] = parent.addPage(self.configpage['widget'], i18n("Widget"))
|
|
||||||
page['widget'].setIcon(KIcon("utilities-system-monitor"))
|
|
||||||
page['advanced'] = parent.addPage(self.configpage['advanced'], i18n("Advanced"))
|
|
||||||
page['advanced'].setIcon(KIcon("system-run"))
|
|
||||||
page['tooltip'] = parent.addPage(self.configpage['tooltip'], i18n("Tooltip"))
|
|
||||||
page['tooltip'].setIcon(KIcon("preferences-desktop-color"))
|
|
||||||
page['appearance'] = parent.addPage(self.configpage['appearance'], i18n("Appearance"))
|
|
||||||
page['appearance'].setIcon(KIcon("preferences-desktop-theme"))
|
|
||||||
page['dataengine'] = parent.addPage(self.configpage['dataengine'], i18n("DataEngine"))
|
|
||||||
page['dataengine'].setIcon(KIcon("utilities-system-monitor"))
|
|
||||||
|
|
||||||
QObject.connect(parent, SIGNAL("okClicked()"), self.configAccepted)
|
|
@ -1,359 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.plasma import Plasma
|
|
||||||
|
|
||||||
import datetime
|
|
||||||
|
|
||||||
timeLetters = ['dddd', 'ddd', 'dd', 'd', \
|
|
||||||
'MMMM', 'MMM', 'MM', 'M', 'yyyy', 'yy', \
|
|
||||||
'hh', 'h', 'mm', 'm', 'ss', 's']
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class DataEngine:
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""class definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
self.parent = parent
|
|
||||||
|
|
||||||
|
|
||||||
def connectToEngine(self, bools=None, dataEngines=None, interval=1000, names=None):
|
|
||||||
"""function to initializate engine"""
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine]")
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine] : Run function with bools '%s'" %(bools))
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine] : Run function with dataengines '%s'" %(dataEngines))
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine] : Run function with names '%s'" %(names))
|
|
||||||
if (bools['cpu'] > 0):
|
|
||||||
dataEngines['system'].connectSource("cpu/system/TotalLoad", self.parent, interval)
|
|
||||||
for core in range(8):
|
|
||||||
dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/TotalLoad", self.parent, interval)
|
|
||||||
if (bools['cpuclock'] > 0):
|
|
||||||
dataEngines['system'].connectSource("cpu/system/AverageClock", self.parent, interval)
|
|
||||||
for core in range(8):
|
|
||||||
dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/clock", self.parent, interval)
|
|
||||||
if (bools['custom'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("custom", self.parent, interval)
|
|
||||||
if (bools['desktop'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("desktop", self.parent, interval)
|
|
||||||
if (bools['disk'] > 0):
|
|
||||||
for item in names['disk']:
|
|
||||||
dataEngines['system'].connectSource(item + "/Rate/rblk", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource(item + "/Rate/wblk", self.parent, interval)
|
|
||||||
if (bools['gpu'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("gpu", self.parent, interval)
|
|
||||||
if (bools['gputemp'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("gputemp", self.parent, interval)
|
|
||||||
if (bools['hdd'] > 0):
|
|
||||||
for item in names['hdd']:
|
|
||||||
dataEngines['system'].connectSource("partitions" + item + "/filllevel", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource("partitions" + item + "/freespace", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource("partitions" + item + "/usedspace", self.parent, interval)
|
|
||||||
if (bools['hddtemp'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("hddtemp", self.parent, interval)
|
|
||||||
if (bools['mem'] > 0):
|
|
||||||
dataEngines['system'].connectSource("mem/physical/free", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource("mem/physical/used", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource("mem/physical/application", self.parent, interval)
|
|
||||||
if (bools['net'] > 0):
|
|
||||||
self.updateNetdev = 0
|
|
||||||
dataEngines['system'].connectSource("network/interfaces/" + names['net'] + "/transmitter/data", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource("network/interfaces/" + names['net'] + "/receiver/data", self.parent, interval)
|
|
||||||
if (bools['pkg'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("pkg", self.parent, 60*60*1000, Plasma.AlignToHour)
|
|
||||||
if (bools['player'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("player", self.parent, interval)
|
|
||||||
if (bools['ps'] > 0):
|
|
||||||
dataEngines['ext'].connectSource("ps", self.parent, interval)
|
|
||||||
if (bools['swap'] > 0):
|
|
||||||
dataEngines['system'].connectSource("mem/swap/free", self.parent, interval)
|
|
||||||
dataEngines['system'].connectSource("mem/swap/used", self.parent, interval)
|
|
||||||
if (bools['temp'] > 0):
|
|
||||||
for item in names['temp']:
|
|
||||||
dataEngines['system'].connectSource(item, self.parent, interval)
|
|
||||||
if (bools['time'] > 0):
|
|
||||||
dataEngines['time'].connectSource("Local", self.parent, 1000)
|
|
||||||
if (bools['uptime'] > 0):
|
|
||||||
dataEngines['system'].connectSource("system/uptime", self.parent, interval)
|
|
||||||
|
|
||||||
|
|
||||||
def dataUpdated(self, sourceName, data, ptm):
|
|
||||||
"""function to update data"""
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated]")
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Run function with source '%s'" %(sourceName))
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Run function with data '%s'" %(data))
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Run function with settings '%s'" %(ptm))
|
|
||||||
adv = ptm['vars']['adv']
|
|
||||||
systemDataEngine = ptm['dataengine']['system']
|
|
||||||
formats = ptm['vars']['formats']
|
|
||||||
interval = ptm['vars']['app']['interval']
|
|
||||||
names = ptm['names']
|
|
||||||
updatedData = {'name':None, 'type':None, 'value':None}
|
|
||||||
try:
|
|
||||||
if (sourceName == "cpu/system/TotalLoad"):
|
|
||||||
updatedData['name'] = "cpu"
|
|
||||||
updatedData['type'] = -1
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif ((sourceName[:7] == "cpu/cpu") and (sourceName.split('/')[2] == "TotalLoad")):
|
|
||||||
updatedData['name'] = "cpu"
|
|
||||||
updatedData['type'] = int(sourceName[7])
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "cpu/system/AverageClock"):
|
|
||||||
updatedData['name'] = "cpuclock"
|
|
||||||
updatedData['type'] = -1
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 0)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif ((sourceName[:7] == "cpu/cpu") and (sourceName.split('/')[2] == "clock")):
|
|
||||||
updatedData['name'] = "cpuclock"
|
|
||||||
updatedData['type'] = int(sourceName[7])
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 0)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "custom"):
|
|
||||||
updatedData['name'] = "custom"
|
|
||||||
updatedData['value'] = {}
|
|
||||||
for singleData in data.keys():
|
|
||||||
updatedData['value'][str(singleData.toLower())] = str(data[singleData].toUtf8()).decode("utf-8")
|
|
||||||
elif (sourceName == "desktop"):
|
|
||||||
updatedData['name'] = "desktop"
|
|
||||||
updatedData['value'] = {}
|
|
||||||
updatedData['value']['current'] = data[QString(u'currentNumber')]
|
|
||||||
updatedData['value']['names'] = [str(desktop.toUtf8()).decode("utf-8") for desktop in data[QString(u'list')].split(';;')]
|
|
||||||
elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "rblk")):
|
|
||||||
updatedData['name'] = "disk-r"
|
|
||||||
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 0)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "wblk")):
|
|
||||||
updatedData['name'] = "disk-w"
|
|
||||||
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 0)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "gpu"):
|
|
||||||
updatedData['name'] = "gpu"
|
|
||||||
value = round(data[QString(u'GPU')], 1)
|
|
||||||
updatedData['value'] = "%4.1f" % (value)
|
|
||||||
elif (sourceName == "gputemp"):
|
|
||||||
updatedData['name'] = "gputemp"
|
|
||||||
value = round(data[QString(u'GPUTemp')], 1)
|
|
||||||
updatedData['value'] = "%4.1f" % (value)
|
|
||||||
elif (sourceName.split('/')[0] == "partitions") and (sourceName.split('/')[-1] == "filllevel"):
|
|
||||||
updatedData['name'] = "hdd"
|
|
||||||
updatedData['type'] = '/' + '/'.join(sourceName.split('/')[1:-1])
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName.split('/')[0] == "partitions") and (sourceName.split('/')[-1] == "freespace"):
|
|
||||||
updatedData['name'] = "hddfreemb"
|
|
||||||
updatedData['type'] = '/' + '/'.join(sourceName.split('/')[1:-1])
|
|
||||||
value = data[QString(u'value')].toFloat()[0]
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName.split('/')[0] == "partitions") and (sourceName.split('/')[-1] == "usedspace"):
|
|
||||||
updatedData['name'] = "hddmb"
|
|
||||||
updatedData['type'] = '/' + '/'.join(sourceName.split('/')[1:-1])
|
|
||||||
value = data[QString(u'value')].toFloat()[0]
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "hddtemp"):
|
|
||||||
updatedData['name'] = "hddtemp"
|
|
||||||
updatedData['value'] = {}
|
|
||||||
for item in names['hddtemp']:
|
|
||||||
value = round(data[QString(item)], 1)
|
|
||||||
updatedData['value'][item] = "%4.1f" % (value)
|
|
||||||
elif (sourceName == "mem/physical/application"):
|
|
||||||
updatedData['name'] = "mem"
|
|
||||||
updatedData['type'] = "app"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "mem/physical/free"):
|
|
||||||
updatedData['name'] = "mem"
|
|
||||||
updatedData['type'] = "free"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "mem/physical/used"):
|
|
||||||
updatedData['name'] = "mem"
|
|
||||||
updatedData['type'] = "used"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif ((sourceName.split('/')[0] == "network") and (sourceName.split('/')[3] == "receiver")):
|
|
||||||
updatedData['name'] = "net"
|
|
||||||
updatedData['type'] = "down"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 0)
|
|
||||||
updatedData['value'] = value
|
|
||||||
# update network device
|
|
||||||
self.updateNetdev = self.updateNetdev + 1
|
|
||||||
if (self.updateNetdev == 30):
|
|
||||||
self.updateNetdev = 0
|
|
||||||
if (adv['netdevBool'] == 0):
|
|
||||||
systemDataEngine.disconnectSource("network/interfaces/" + names['net'] + "/transmitter/data", self.parent)
|
|
||||||
systemDataEngine.disconnectSource("network/interfaces/" + names['net'] + "/receiver/data", self.parent)
|
|
||||||
names['net'] = self.parent.setNetdev()
|
|
||||||
systemDataEngine.connectSource("network/interfaces/" + names['net'] + "/transmitter/data", self.parent, interval)
|
|
||||||
systemDataEngine.connectSource("network/interfaces/" + names['net'] + "/receiver/data", self.parent, interval)
|
|
||||||
elif ((sourceName.split('/')[0] == "network") and (sourceName.split('/')[3] == "transmitter")):
|
|
||||||
updatedData['name'] = "net"
|
|
||||||
updatedData['type'] = "up"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 0)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "pkg"):
|
|
||||||
updatedData['name'] = "pkg"
|
|
||||||
updatedData['value'] = {}
|
|
||||||
for singleData in data.keys():
|
|
||||||
updatedData['value'][str(singleData.toLower())] = "%i" % (data[singleData])
|
|
||||||
elif (sourceName == "player"):
|
|
||||||
updatedData['name'] = "player"
|
|
||||||
updatedData['value'] = {}
|
|
||||||
updatedData['value']['album'] = str(data[QString(u'album')].toUtf8()).decode("utf-8")
|
|
||||||
updatedData['value']['artist'] = str(data[QString(u'artist')].toUtf8()).decode("utf-8")
|
|
||||||
updatedData['value']['progress'] = str(data[QString(u'progress')].toUtf8()).decode("utf-8")
|
|
||||||
updatedData['value']['time'] = str(data[QString(u'duration')].toUtf8()).decode("utf-8")
|
|
||||||
updatedData['value']['title'] = str(data[QString(u'title')].toUtf8()).decode("utf-8")
|
|
||||||
elif (sourceName == "ps"):
|
|
||||||
updatedData['name'] = "ps"
|
|
||||||
updatedData['value'] = {}
|
|
||||||
updatedData['value']['num'] = "%i" % (data[QString(u'psCount')])
|
|
||||||
updatedData['value']['total'] = "%i" % (data[QString(u'psTotal')])
|
|
||||||
updatedData['value']['list'] = data[QString(u'ps')]
|
|
||||||
elif (sourceName == "mem/swap/free"):
|
|
||||||
updatedData['name'] = "swap"
|
|
||||||
updatedData['type'] = "free"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "mem/swap/used"):
|
|
||||||
updatedData['name'] = "swap"
|
|
||||||
updatedData['type'] = "used"
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName.split('/')[0] == "lmsensors"):
|
|
||||||
updatedData['name'] = "temp"
|
|
||||||
updatedData['type'] = sourceName
|
|
||||||
value = round(data[QString(u'value')].toFloat()[0], 1)
|
|
||||||
updatedData['value'] = "%4.1f" % (value)
|
|
||||||
elif (sourceName == "Local"):
|
|
||||||
updatedData['name'] = "time"
|
|
||||||
if (formats['time'].split('$time')[0] != formats['time']):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8()).decode("utf-8")
|
|
||||||
elif (formats['time'].split('$isotime')[0] != formats['time']):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.ISODate).toUtf8()).decode("utf-8")
|
|
||||||
elif (formats['time'].split('$shorttime')[0] != formats['time']):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleShortDate).toUtf8()).decode("utf-8")
|
|
||||||
elif (formats['time'].split('$longtime')[0] != formats['time']):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleLongDate).toUtf8()).decode("utf-8")
|
|
||||||
elif (formats['time'].split('$custom')[0] != formats['time']):
|
|
||||||
rawDate = data[QString(u'DateTime')]
|
|
||||||
value = adv['customTime']
|
|
||||||
for letters in timeLetters:
|
|
||||||
if (value.split('$' + letters)[0] != value):
|
|
||||||
value = value.split('$' + letters)[0] + str(rawDate.toString(letters).toUtf8()).decode("utf-8") + value.split('$' + letters)[1]
|
|
||||||
updatedData['value'] = value
|
|
||||||
elif (sourceName == "system/uptime"):
|
|
||||||
updatedData['name'] = "uptime"
|
|
||||||
value = datetime.timedelta(0, int(round(float(data[QString(u'value')]), 1)))
|
|
||||||
days = value.days
|
|
||||||
hours = int(value.seconds / 60 / 60)
|
|
||||||
minutes = int(value.seconds / 60 % 60)
|
|
||||||
if (formats['uptime'].split('$uptime')[0] != formats['uptime']):
|
|
||||||
updatedData['value'] = "%3id%2ih%2im" % (days, hours, minutes)
|
|
||||||
elif (formats['uptime'].split('$custom')[0] != formats['uptime']):
|
|
||||||
updatedData['value'] = adv['customUptime']
|
|
||||||
if (updatedData['value'].split('$dd')[0] != updatedData['value']):
|
|
||||||
updatedData['value'] = "%s%03i%s" % (updatedData['value'].split('$dd')[0], days, updatedData['value'].split('$dd')[1])
|
|
||||||
if (updatedData['value'].split('$d')[0] != updatedData['value']):
|
|
||||||
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$d')[0], days, updatedData['value'].split('$d')[1])
|
|
||||||
if (updatedData['value'].split('$hh')[0] != updatedData['value']):
|
|
||||||
updatedData['value'] = "%s%02i%s" % (updatedData['value'].split('$hh')[0], hours, updatedData['value'].split('$hh')[1])
|
|
||||||
if (updatedData['value'].split('$h')[0] != updatedData['value']):
|
|
||||||
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$h')[0], hours, updatedData['value'].split('$h')[1])
|
|
||||||
if (updatedData['value'].split('$mm')[0] != updatedData['value']):
|
|
||||||
updatedData['value'] = "%s%02i%s" % (updatedData['value'].split('$mm')[0], minutes, updatedData['value'].split('$mm')[1])
|
|
||||||
if (updatedData['value'].split('$m')[0] != updatedData['value']):
|
|
||||||
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$m')[0], minutes, updatedData['value'].split('$m')[1])
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Returns '%s'" %(updatedData))
|
|
||||||
return updatedData
|
|
||||||
|
|
||||||
|
|
||||||
def disconnectFromSource(self, dataEngines=None, keys=None, name=None):
|
|
||||||
"""function to disconnect from sources"""
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource]")
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource] : Run function with dataengines '%s'" %(dataEngines))
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource] : Run function with keys '%s'" %(keys))
|
|
||||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource] : Run function with name '%s'" %(name))
|
|
||||||
if (name == "bat"):
|
|
||||||
pass
|
|
||||||
elif (name == "cpu"):
|
|
||||||
dataEngines['system'].disconnectSource("cpu/system/TotalLoad", self.parent)
|
|
||||||
for item in keys['cpu']:
|
|
||||||
if (item != -1):
|
|
||||||
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/TotalLoad", self.parent)
|
|
||||||
elif (name == "cpuclock"):
|
|
||||||
dataEngines['system'].disconnectSource("cpu/system/AverageClock", self.parent)
|
|
||||||
for item in keys['cpuclock']:
|
|
||||||
if (item != -1):
|
|
||||||
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/clock", self.parent)
|
|
||||||
elif (name == "custom"):
|
|
||||||
dataEngines['ext'].disconnectSource("custom", self.parent)
|
|
||||||
elif (name == "desktop"):
|
|
||||||
dataEngines['ext'].disconnectSource("desktop", self.parent)
|
|
||||||
elif (name == "disk"):
|
|
||||||
for item in keys['disk']:
|
|
||||||
dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent)
|
|
||||||
dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent)
|
|
||||||
elif (name == "gpu"):
|
|
||||||
dataEngines['ext'].disconnectSource("gpu", self.parent)
|
|
||||||
elif (name == "gputemp"):
|
|
||||||
dataEngines['ext'].disconnectSource("gputemp", self.parent)
|
|
||||||
elif (name == "hdd"):
|
|
||||||
for item in keys['hdd']:
|
|
||||||
dataEngines['system'].disconnectSource("partitions" + item + "/filllevel", self.parent)
|
|
||||||
dataEngines['system'].disconnectSource("partitions" + item + "/usedspace", self.parent)
|
|
||||||
elif (name == "hddtemp"):
|
|
||||||
dataEngines['ext'].disconnectSource("hddtemp", self.parent)
|
|
||||||
elif (name == "mem"):
|
|
||||||
dataEngines['system'].disconnectSource("mem/physical/application", self.parent)
|
|
||||||
dataEngines['system'].disconnectSource("mem/physical/free", self.parent)
|
|
||||||
dataEngines['system'].disconnectSource("mem/physical/used", self.parent)
|
|
||||||
elif (name == "net"):
|
|
||||||
dataEngines['system'].disconnectSource("network/interfaces/" + keys['net'] + "/transmitter/data", self.parent)
|
|
||||||
dataEngines['system'].disconnectSource("network/interfaces/" + keys['net'] + "/receiver/data", self.parent)
|
|
||||||
elif (name == "pkg"):
|
|
||||||
dataEngines['ext'].disconnectSource("pkg", self.parent)
|
|
||||||
elif (name == "player"):
|
|
||||||
dataEngines['ext'].disconnectSource("player", self.parent)
|
|
||||||
elif (name == "ps"):
|
|
||||||
dataEngines['ext'].disconnectSource("ps", self.parent)
|
|
||||||
elif (name == "swap"):
|
|
||||||
dataEngines['system'].disconnectSource("mem/swap/used", self.parent)
|
|
||||||
dataEngines['system'].disconnectSource("mem/swap/free", self.parent)
|
|
||||||
elif (name == "temp"):
|
|
||||||
for item in keys['temp']:
|
|
||||||
dataEngines['system'].disconnectSource(item, self.parent)
|
|
||||||
elif (name == "time"):
|
|
||||||
dataEngines['time'].disconnectSource("Local", self.parent)
|
|
||||||
elif (name == "uptime"):
|
|
||||||
dataEngines['system'].disconnectSource("system/uptime", self.parent)
|
|
@ -1,74 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.plasma import *
|
|
||||||
from PyQt4 import uic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class DEConfigWindow(QWidget):
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""settings window definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
QWidget.__init__(self)
|
|
||||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'deconfig.ui'), self)
|
|
||||||
self.parent = parent
|
|
||||||
|
|
||||||
QObject.connect(self.ui.tableWidget_customCommand, SIGNAL("itemActivated(QTableWidgetItem*)"), self.ui.tableWidget_customCommand.openPersistentEditor)
|
|
||||||
QObject.connect(self.ui.tableWidget_customCommand, SIGNAL("itemChanged(QTableWidgetItem*)"), self.addCustomCommand)
|
|
||||||
QObject.connect(self.ui.tableWidget_pkgCommand, SIGNAL("itemActivated(QTableWidgetItem*)"), self.ui.tableWidget_pkgCommand.openPersistentEditor)
|
|
||||||
QObject.connect(self.ui.tableWidget_pkgCommand, SIGNAL("itemChanged(QTableWidgetItem*)"), self.addPkgCommand)
|
|
||||||
|
|
||||||
|
|
||||||
def keyPressEvent(self, event):
|
|
||||||
"""delete events"""
|
|
||||||
if self.debug: qDebug("[PTM] [deconfig.py] [keyPressEvent]")
|
|
||||||
if self.debug: qDebug("[PTM] [deconfig.py] [keyPressEvent] : Run function with event '%s'" %(event.key()))
|
|
||||||
if (event.key() == Qt.Key_Delete):
|
|
||||||
if (self.ui.tableWidget_customCommand.hasFocus() and
|
|
||||||
(self.ui.tableWidget_customCommand.currentRow() > -1)):
|
|
||||||
self.ui.tableWidget_customCommand.removeRow(self.ui.tableWidget_customCommand.currentRow())
|
|
||||||
elif (self.ui.tableWidget_pkgCommand.hasFocus() and
|
|
||||||
(self.ui.tableWidget_pkgCommand.currentRow() > -1)):
|
|
||||||
self.ui.tableWidget_pkgCommand.removeRow(self.ui.tableWidget_pkgCommand.currentRow())
|
|
||||||
|
|
||||||
|
|
||||||
def addCustomCommand(self, item):
|
|
||||||
"""function to add custom command"""
|
|
||||||
if self.debug: qDebug("[PTM] [deconfig.py] [addCustomCommand]")
|
|
||||||
if (item.row() == (self.ui.tableWidget_customCommand.rowCount() - 1)):
|
|
||||||
self.ui.tableWidget_customCommand.insertRow(self.ui.tableWidget_customCommand.rowCount());
|
|
||||||
|
|
||||||
|
|
||||||
def addPkgCommand(self, item):
|
|
||||||
"""function to add new row"""
|
|
||||||
if self.debug: qDebug("[PTM] [deconfig.py] [addPkgCommand]")
|
|
||||||
if ((item.row() == (self.ui.tableWidget_pkgCommand.rowCount() - 1)) and
|
|
||||||
(item.column() == 0)):
|
|
||||||
self.ui.tableWidget_pkgCommand.insertRow(self.ui.tableWidget_pkgCommand.rowCount());
|
|
||||||
self.ui.tableWidget_pkgCommand.setItem(self.ui.tableWidget_pkgCommand.rowCount()-1, 1, QTableWidgetItem("0"))
|
|
@ -1,843 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.kdecore import *
|
|
||||||
from PyKDE4.kdeui import *
|
|
||||||
from PyKDE4.kio import *
|
|
||||||
from PyKDE4 import plasmascript
|
|
||||||
from PyKDE4.plasma import Plasma
|
|
||||||
import commands, os
|
|
||||||
|
|
||||||
import advanced
|
|
||||||
import appearance
|
|
||||||
import configdef
|
|
||||||
import dataengine
|
|
||||||
import deconfig
|
|
||||||
import ptmnotify
|
|
||||||
import reinit
|
|
||||||
import tooltip
|
|
||||||
import tooltipconfig
|
|
||||||
import widget
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def getTemp(temp, unit):
|
|
||||||
"""function to return temperature"""
|
|
||||||
if (unit == "Celsius"):
|
|
||||||
pass
|
|
||||||
elif (unit == "Fahrenheit"):
|
|
||||||
temp = str(round(((float(temp) * 9.0 / 5.0) + 32.0), 1))
|
|
||||||
elif (unit == "Kelvin"):
|
|
||||||
temp = str(round((float(temp) + 273.15), 1))
|
|
||||||
elif (unit == "Reaumur"):
|
|
||||||
temp = str(round((float(temp) * 0.8), 1))
|
|
||||||
elif (unit == "cm^-1"):
|
|
||||||
kelvin = round((float(temp) + 273.15), 1)
|
|
||||||
temp = str(round((kelvin * 0.695), 1))
|
|
||||||
elif (unit == "kJ/mol"):
|
|
||||||
kelvin = round((float(temp) + 273.15), 1)
|
|
||||||
temp = str(round((kelvin * 8.31), 1))
|
|
||||||
elif (unit == "kcal/mol"):
|
|
||||||
kelvin = round((float(temp) + 273.15), 1)
|
|
||||||
temp = str(round((kelvin * 1.98), 1))
|
|
||||||
return temp
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CustomPlasmaLabel(Plasma.Label):
|
|
||||||
"""new Label with defined clicked() event"""
|
|
||||||
def __init__(self, applet, name, enablePopup):
|
|
||||||
"""class definition"""
|
|
||||||
Plasma.Label.__init__(self, applet)
|
|
||||||
self.enablePopup = enablePopup
|
|
||||||
self.name = name
|
|
||||||
self.notify = ptmnotify.PTMNotify(self)
|
|
||||||
|
|
||||||
|
|
||||||
def mousePressEvent(self, event):
|
|
||||||
"""mouse click event"""
|
|
||||||
if (self.enablePopup > 0):
|
|
||||||
if (event.button() == Qt.LeftButton):
|
|
||||||
self.notify.init(self.name)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class pyTextWidget(plasmascript.Applet):
|
|
||||||
def __init__(self, parent, args=None):
|
|
||||||
"""widget definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
plasmascript.Applet.__init__(self, parent)
|
|
||||||
|
|
||||||
|
|
||||||
# initialization
|
|
||||||
def init(self):
|
|
||||||
"""function to initializate widget"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [init]")
|
|
||||||
self.setupVar()
|
|
||||||
|
|
||||||
self.dataengine = dataengine.DataEngine(self)
|
|
||||||
self.reinit = reinit.Reinit(self, self.ptm['defaults'])
|
|
||||||
self.tooltipAgent = tooltip.Tooltip(self)
|
|
||||||
|
|
||||||
self.timer = QTimer()
|
|
||||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.startPolling)
|
|
||||||
|
|
||||||
self.theme = Plasma.Svg(self)
|
|
||||||
self.initTooltip()
|
|
||||||
self.reInit()
|
|
||||||
self.applet.setLayout(self.ptm['layout'])
|
|
||||||
|
|
||||||
self.setHasConfigurationInterface(True)
|
|
||||||
|
|
||||||
# actions
|
|
||||||
self.createActions()
|
|
||||||
|
|
||||||
|
|
||||||
# context menu
|
|
||||||
def createActions(self):
|
|
||||||
"""function to create actions"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [createActions]")
|
|
||||||
self.ptmActions = {}
|
|
||||||
self.ptmActions['ksysguard'] = QAction(i18n("Run ksysguard"), self)
|
|
||||||
QObject.connect(self.ptmActions['ksysguard'], SIGNAL("triggered(bool)"), self.runKsysguard)
|
|
||||||
self.ptmActions['readme'] = QAction(i18n("Show README"), self)
|
|
||||||
QObject.connect(self.ptmActions['readme'], SIGNAL("triggered(bool)"), self.showReadme)
|
|
||||||
self.ptmActions['update'] = QAction(i18n("Update text"), self)
|
|
||||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"),
|
|
||||||
self.ptm['dataengine']['ext'], SLOT("updateAllSources()"))
|
|
||||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"),
|
|
||||||
self.ptm['dataengine']['system'], SLOT("updateAllSources()"))
|
|
||||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"),
|
|
||||||
self.ptm['dataengine']['time'], SLOT("updateAllSources()"))
|
|
||||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"), self.updateNetdev)
|
|
||||||
|
|
||||||
|
|
||||||
def contextualActions(self):
|
|
||||||
"""function to create context menu"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [contextualActions]")
|
|
||||||
contextMenu = []
|
|
||||||
contextMenu.append(self.ptmActions['ksysguard'])
|
|
||||||
contextMenu.append(self.ptmActions['readme'])
|
|
||||||
contextMenu.append(self.ptmActions['update'])
|
|
||||||
return contextMenu
|
|
||||||
|
|
||||||
|
|
||||||
def runKsysguard(self, event):
|
|
||||||
"""function to run ksysguard"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [runKsysguard]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [runKsysguard] : Run cmd " + "'ksysguard &'")
|
|
||||||
os.system("ksysguard &")
|
|
||||||
|
|
||||||
|
|
||||||
def showReadme(self):
|
|
||||||
"""function to show readme file"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [showReadme]")
|
|
||||||
kdehome = unicode(KGlobal.dirs().localkdedir())
|
|
||||||
if (os.path.exists("/usr/share/pytextmonitor/")):
|
|
||||||
dirPath = "/usr/share/pytextmonitor/"
|
|
||||||
elif (os.path.exists(kdehome + "/share/pytextmonitor/")):
|
|
||||||
dirPath = kdehome + "/share/pytextmonitor/"
|
|
||||||
else:
|
|
||||||
return
|
|
||||||
locale = str(QLocale.system().name())
|
|
||||||
if (os.path.exists(dirPath + locale + ".html")):
|
|
||||||
filePath = dirPath + locale + ".html"
|
|
||||||
else:
|
|
||||||
locale = locale.split('_')[0]
|
|
||||||
if (os.path.exists(dirPath + locale + ".html")):
|
|
||||||
filePath = dirPath + locale + ".html"
|
|
||||||
elif (os.path.exists(dirPath + "en.html")):
|
|
||||||
filePath = dirPath + "en.html"
|
|
||||||
else:
|
|
||||||
return
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [showReadme] : Run cmd " + "'kioclient exec " + str(filePath) + " &'")
|
|
||||||
os.system("kioclient exec " + str(filePath) + " &")
|
|
||||||
|
|
||||||
|
|
||||||
# internal functions
|
|
||||||
def addDiskDevice(self, sourceName):
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addDiskDevice]")
|
|
||||||
diskRegexp = QRegExp("disk/(?:md|sd|hd)[a-z|0-9]_.*/Rate/(?:rblk)")
|
|
||||||
if (diskRegexp.indexIn(sourceName) > -1):
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addDiskDevice] : Add device '%s'" %(str(sourceName).split('/')[1]))
|
|
||||||
self.ptm['defaults']['disk'].append('/'.join(str(sourceName).split('/')[0:2]))
|
|
||||||
|
|
||||||
|
|
||||||
def createConfigurationInterface(self, parent):
|
|
||||||
"""function to setup configuration window"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [createConfigurationInterface]")
|
|
||||||
configpage = {}
|
|
||||||
configpage['advanced'] = advanced.AdvancedWindow(self)
|
|
||||||
configpage['appearance'] = appearance.AppearanceWindow(self)
|
|
||||||
configpage['dataengine'] = deconfig.DEConfigWindow(self)
|
|
||||||
configpage['tooltip'] = tooltipconfig.TooltipWindow(self)
|
|
||||||
configpage['widget'] = widget.WidgetWindow(self)
|
|
||||||
|
|
||||||
self.confdef = configdef.ConfigDefinition(self, configpage, self.ptm['defaults'])
|
|
||||||
self.confdef.createConfigurationInterface(parent)
|
|
||||||
|
|
||||||
|
|
||||||
def initTooltip(self):
|
|
||||||
"""function to create tooltip"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [initTooltip]")
|
|
||||||
self.tooltip = Plasma.ToolTipContent()
|
|
||||||
self.tooltip.setMainText("PyTextMonitor")
|
|
||||||
self.tooltip.setSubText('')
|
|
||||||
Plasma.ToolTipManager.self().registerWidget(self.applet)
|
|
||||||
# graphical tooltip
|
|
||||||
self.tooltipScene = QGraphicsScene()
|
|
||||||
self.tooltipView = QGraphicsView(self.tooltipScene)
|
|
||||||
self.tooltipView.setStyleSheet("background: transparent")
|
|
||||||
self.tooltipView.setContentsMargins(0, 0, 0, 0)
|
|
||||||
self.tooltipView.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
|
||||||
self.tooltipView.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
|
||||||
# show tooltip
|
|
||||||
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
|
||||||
|
|
||||||
|
|
||||||
def setupVar(self):
|
|
||||||
"""function to setup variables"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setupVar]")
|
|
||||||
# variables
|
|
||||||
self.ptm = {}
|
|
||||||
# dataengines
|
|
||||||
self.ptm['dataengine'] = {'ext':None, 'system':None, 'time':None}
|
|
||||||
# defaults
|
|
||||||
self.ptm['defaults'] = {}
|
|
||||||
self.ptm['defaults']['confBool'] = {'bat':'batBool', 'cpu':'cpuBool',
|
|
||||||
'cpuclock':'cpuclockBool', 'custom':'customBool', 'desktop':'desktopBool',
|
|
||||||
'disk':'diskBool', 'gpu':'gpuBool', 'gputemp':'gputempBool', 'hdd':'hddBool',
|
|
||||||
'hddtemp':'hddtempBool', 'mem':'memBool', 'net':'netBool', 'pkg':'pkgBool',
|
|
||||||
'player':'playerBool', 'ps':'psBool', 'swap':'swapBool', 'temp':'tempBool',
|
|
||||||
'uptime':'uptimeBool', 'time':'timeBool'}
|
|
||||||
self.ptm['defaults']['confColor'] = {'cpu':'cpu_color', 'cpuclock':'cpuclock_color',
|
|
||||||
'down':'down_color', 'mem':'mem_color', 'swap':'swap_color', 'up':'up_color'}
|
|
||||||
self.ptm['defaults']['confFormat'] = {'bat':'batFormat', 'cpu':'cpuFormat',
|
|
||||||
'cpuclock':'cpuclockFormat', 'custom':'customFormat', 'desktop':'desktopFormat',
|
|
||||||
'disk':'diskFormat', 'gpu':'gpuFormat', 'gputemp':'gputempFormat', 'hdd':'hddFormat',
|
|
||||||
'hddtemp':'hddtempFormat', 'mem':'memFormat', 'net':'netFormat',
|
|
||||||
'pkg':'pkgFormat', 'player':'playerFormat', 'ps':'psFormat', 'swap':'swapFormat',
|
|
||||||
'temp':'tempFormat', 'time':'timeFormat', 'uptime':'uptimeFormat'}
|
|
||||||
self.ptm['defaults']['bool'] = {'bat':0, 'cpu':2, 'cpuclock':0, 'custom':0,
|
|
||||||
'desktop':0, 'disk':0, 'gpu':0, 'gputemp':0, 'hdd':0, 'hddtemp':0, 'mem':2,
|
|
||||||
'net':2, 'pkg':0, 'player':0, 'ps':0, 'swap':2, 'temp':0, 'time':0, 'uptime':0}
|
|
||||||
self.ptm['defaults']['format'] = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]',
|
|
||||||
'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'desktop':'[$number/$total: $name]',
|
|
||||||
'disk':'[disk: $hddr0/$hddw0 KB/s]', 'gpu':'[gpu: $gpu%]',
|
|
||||||
'gputemp':'[gpu temp: $gputemp°C]', 'hdd':'[hdd: $hdd0%]',
|
|
||||||
'hddtemp':'[hdd temp: $hddtemp0°C]', 'mem':'[mem: $mem%]',
|
|
||||||
'net':'[$netdev: $down/$upKB/s]', 'pkg':'[upgrade: $pkgcount0]',
|
|
||||||
'player':'[$artist - $title]', 'ps':'[proc: $pscount]', 'swap':'[swap: $swap%]',
|
|
||||||
'temp':'[temp: $temp0°C]', 'time':'[$time]', 'uptime':'[uptime: $uptime]'}
|
|
||||||
self.ptm['defaults']['order'] = {'1':'cpu', '2':'temp', '3':'mem', '4':'swap', '5':'net',
|
|
||||||
'6':'bat', '7':'cpuclock', '8':'uptime', '9':'gpu', 'a':'gputemp', 'b':'hdd',
|
|
||||||
'c':'hddtemp', 'd':'player', 'e':'time', 'f':'custom', 'g':'ps', 'h':'pkg', 'i':'disk',
|
|
||||||
'j':'desktop'}
|
|
||||||
# disk devices for r/w speed
|
|
||||||
self.ptm['defaults']['disk'] = []
|
|
||||||
# labels
|
|
||||||
self.ptm['labels'] = {}
|
|
||||||
# names
|
|
||||||
self.ptm['names'] = {}
|
|
||||||
self.ptm['names']['disk'] = []
|
|
||||||
self.ptm['names']['hdd'] = []
|
|
||||||
self.ptm['names']['hddtemp'] = []
|
|
||||||
self.ptm['names']['net'] = ""
|
|
||||||
self.ptm['names']['temp'] = []
|
|
||||||
# tooltips
|
|
||||||
self.ptm['tooltip'] = {}
|
|
||||||
self.ptm['tooltip']['bounds'] = {'cpu':100.0, 'cpuclock':4000.0, 'mem':16000.0,
|
|
||||||
'swap':16000, 'down':10000.0, 'up':10000.0}
|
|
||||||
self.ptm['tooltip']['values'] = {'cpu':[0.0, 0.0], 'cpuclock':[0, 0], 'mem':[0, 0],
|
|
||||||
'swap':[0, 0], 'down':[0, 0], 'up':[0, 0]}
|
|
||||||
# values
|
|
||||||
self.ptm['values'] = {}
|
|
||||||
self.ptm['values']['cpu'] = {-1:0.0}
|
|
||||||
self.ptm['values']['cpuclock'] = {-1:0.0}
|
|
||||||
numCores = int(commands.getoutput("grep -c '^processor' /proc/cpuinfo"))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setupVar] : Number of cores '%s'" %(numCores))
|
|
||||||
for i in range(numCores):
|
|
||||||
self.ptm['values']['cpu'][i] = 0.0
|
|
||||||
self.ptm['values']['cpuclock'][i] = 0.0
|
|
||||||
self.ptm['values']['desktop'] = {'names':[], 'current':1}
|
|
||||||
self.ptm['values']['disk-r'] = {}
|
|
||||||
self.ptm['values']['disk-w'] = {}
|
|
||||||
self.ptm['values']['hdd'] = {}
|
|
||||||
self.ptm['values']['hddfreemb'] = {}
|
|
||||||
self.ptm['values']['hddmb'] = {}
|
|
||||||
self.ptm['values']['hddtemp'] = {}
|
|
||||||
self.ptm['values']['mem'] = {'app':0.0, 'used':0.0, 'free':1.0}
|
|
||||||
self.ptm['values']['net'] = {"up":0.0, "down":0.0}
|
|
||||||
self.ptm['values']['swap'] = {'used':0.0, 'free':1.0}
|
|
||||||
self.ptm['values']['temp'] = {}
|
|
||||||
# variables
|
|
||||||
self.ptm['vars'] = {}
|
|
||||||
self.ptm['vars']['adv'] = {}
|
|
||||||
self.ptm['vars']['app'] = {}
|
|
||||||
self.ptm['vars']['bools'] = {}
|
|
||||||
self.ptm['vars']['formats'] = {}
|
|
||||||
self.ptm['vars']['tooltip'] = {}
|
|
||||||
|
|
||||||
|
|
||||||
def showConfigurationInterface(self):
|
|
||||||
"""function to show configuration window"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [showConfigurationInterface]")
|
|
||||||
plasmascript.Applet.showConfigurationInterface(self)
|
|
||||||
|
|
||||||
|
|
||||||
def startPolling(self):
|
|
||||||
"""function to update"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [startPolling]")
|
|
||||||
try:
|
|
||||||
self.updateLabel()
|
|
||||||
self.tooltip.setSubText('')
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [startPolling] : Update without errors")
|
|
||||||
except Exception as strerror:
|
|
||||||
self.tooltip.setSubText(str(strerror))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [startPolling] : There is some errors '%s'" %(str(strerror)))
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def updateLabel(self):
|
|
||||||
"""function to update label"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [updateLabel]")
|
|
||||||
if (self.ptm['vars']['bools']['bat'] > 0):
|
|
||||||
self.batText()
|
|
||||||
if (self.ptm['vars']['bools']['cpu'] > 0):
|
|
||||||
self.cpuText()
|
|
||||||
if (self.ptm['vars']['bools']['cpuclock'] > 0):
|
|
||||||
self.cpuclockText()
|
|
||||||
if (self.ptm['vars']['bools']['desktop'] > 0):
|
|
||||||
self.desktopText()
|
|
||||||
if (self.ptm['vars']['bools']['disk'] > 0):
|
|
||||||
self.diskText()
|
|
||||||
if (self.ptm['vars']['bools']['hdd'] > 0):
|
|
||||||
self.hddText()
|
|
||||||
if (self.ptm['vars']['bools']['hddtemp'] > 0):
|
|
||||||
self.hddtempText()
|
|
||||||
if (self.ptm['vars']['bools']['mem'] > 0):
|
|
||||||
self.memText()
|
|
||||||
if (self.ptm['vars']['bools']['net'] > 0):
|
|
||||||
self.netText()
|
|
||||||
if (self.ptm['vars']['bools']['swap'] > 0):
|
|
||||||
self.swapText()
|
|
||||||
if (self.ptm['vars']['bools']['temp'] > 0):
|
|
||||||
self.tempText()
|
|
||||||
self.updateTooltip()
|
|
||||||
|
|
||||||
|
|
||||||
def updateNetdev(self):
|
|
||||||
"""function to update netdev"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [updateNetdev]")
|
|
||||||
self.ptm['names']['net'] = self.setNetdev()
|
|
||||||
|
|
||||||
|
|
||||||
def updateTooltip(self):
|
|
||||||
"""function to update tooltip"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [updateTooltip]")
|
|
||||||
self.tooltipView.resize(100.0*(len(self.ptm['vars']['tooltip']['required']) - self.ptm['vars']['tooltip']['required'].count('up')), 100.0)
|
|
||||||
self.tooltipAgent.createGraphic(self.ptm['vars']['tooltip'], self.ptm['tooltip'], self.tooltipScene)
|
|
||||||
self.tooltip.setImage(QPixmap.grabWidget(self.tooltipView))
|
|
||||||
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
|
||||||
|
|
||||||
|
|
||||||
# update functions
|
|
||||||
# update dataengines
|
|
||||||
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
|
|
||||||
def dataUpdated(self, sourceName, data):
|
|
||||||
"""function to update label"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated] : Run function with source '%s'" %(sourceName))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated] : Run function with data '%s'" %(data))
|
|
||||||
updatedData = self.dataengine.dataUpdated(str(sourceName), data, self.ptm)
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated] : Received data '%s'" %(updatedData))
|
|
||||||
if (updatedData['value'] == None):
|
|
||||||
return
|
|
||||||
# update values where is needed
|
|
||||||
if (updatedData['type'] != None):
|
|
||||||
self.ptm['values'][updatedData['name']][updatedData['type']] = updatedData['value']
|
|
||||||
elif (updatedData['name'] in ['custom', 'gpu', 'gputemp', 'pkg', 'player', 'ps', 'time', 'uptime']):
|
|
||||||
text = self.textPrepare(updatedData['name'], updatedData['value'])
|
|
||||||
self.setText(updatedData['name'], text)
|
|
||||||
else:
|
|
||||||
self.ptm['values'][updatedData['name']] = updatedData['value']
|
|
||||||
# update tooltips
|
|
||||||
if ((updatedData['name'] in ['cpu', 'cpuclock', 'mem', 'swap', 'net']) and (self.ptm['vars']['bools'][updatedData['name']] == 2)):
|
|
||||||
if (updatedData['name'] == "net"):
|
|
||||||
if (len(self.ptm['tooltip']['values'][updatedData['type']]) > self.ptm['vars']['tooltip']['num']):
|
|
||||||
self.ptm['tooltip']['values'][updatedData['type']] = self.ptm['tooltip']['values'][updatedData['type']][1:]
|
|
||||||
else:
|
|
||||||
if (len(self.ptm['tooltip']['values'][updatedData['name']]) > self.ptm['vars']['tooltip']['num']):
|
|
||||||
self.ptm['tooltip']['values'][updatedData['name']] = self.ptm['tooltip']['values'][updatedData['name']][1:]
|
|
||||||
if ((updatedData['name'] in ['cpu', 'cpuclock']) and (updatedData['type'] == -1)):
|
|
||||||
self.ptm['tooltip']['values'][updatedData['name']].append(updatedData['value'])
|
|
||||||
elif ((updatedData['name'] == "mem") and (updatedData['type'] == "app")):
|
|
||||||
self.ptm['tooltip']['values'][updatedData['name']].append(updatedData['value'])
|
|
||||||
elif ((updatedData['name'] == "mem") and (updatedData['type'] == "used")):
|
|
||||||
self.ptm['tooltip']['bounds']['mem'] = self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used']
|
|
||||||
elif ((updatedData['name'] == "swap") and (updatedData['type'] == "used")):
|
|
||||||
self.ptm['tooltip']['values'][updatedData['name']].append(updatedData['value'])
|
|
||||||
self.ptm['tooltip']['bounds']['swap'] = self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used']
|
|
||||||
elif (updatedData['name'] == "net"):
|
|
||||||
self.ptm['tooltip']['values'][updatedData['type']].append(updatedData['value'])
|
|
||||||
self.update()
|
|
||||||
|
|
||||||
|
|
||||||
# update labels
|
|
||||||
def batText(self):
|
|
||||||
"""function to set battery text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [batText]")
|
|
||||||
line = self.ptm['vars']['formats']['bat']
|
|
||||||
if (line.split('$bat')[0] != line):
|
|
||||||
try:
|
|
||||||
with open (self.ptm['vars']['adv']['batDev'], 'r') as batFile:
|
|
||||||
bat = batFile.readline()[:-1]
|
|
||||||
except:
|
|
||||||
bat = "off"
|
|
||||||
bat = "%3s" % (bat)
|
|
||||||
line = line.split('$bat')[0] + bat + line.split('$bat')[1]
|
|
||||||
if (line.split('$ac')[0] != line):
|
|
||||||
try:
|
|
||||||
with open (self.ptm['vars']['adv']['acDev'], 'r') as batFile:
|
|
||||||
bat = batFile.readline()[:-1]
|
|
||||||
if (bat == "1"):
|
|
||||||
bat = self.ptm['vars']['adv']['acOnline']
|
|
||||||
else:
|
|
||||||
bat = self.ptm['vars']['adv']['acOffline']
|
|
||||||
except:
|
|
||||||
bat = "N\\A"
|
|
||||||
line = line.split('$ac')[0] + bat + line.split('$ac')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("bat", text)
|
|
||||||
|
|
||||||
|
|
||||||
def cpuText(self):
|
|
||||||
"""function to set cpu text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [cpuText]")
|
|
||||||
line = self.ptm['vars']['formats']['cpu']
|
|
||||||
keys = self.ptm['values']['cpu'].keys()
|
|
||||||
keys.sort()
|
|
||||||
keys.reverse()
|
|
||||||
for core in keys[:-1]:
|
|
||||||
if (line.split('$cpu' + str(core))[0] != line):
|
|
||||||
value = "%5.1f" % (self.ptm['values']['cpu'][core])
|
|
||||||
line = line.split('$cpu' + str(core))[0] + value + line.split('$cpu' + str(core))[1]
|
|
||||||
if (line.split('$cpu')[0] != line):
|
|
||||||
value = "%5.1f" % (self.ptm['values']['cpu'][-1])
|
|
||||||
line = line.split('$cpu')[0] + value + line.split('$cpu')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("cpu", text)
|
|
||||||
|
|
||||||
|
|
||||||
def cpuclockText(self):
|
|
||||||
"""function to set cpu clock text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [cpuclockText]")
|
|
||||||
line = self.ptm['vars']['formats']['cpuclock']
|
|
||||||
keys = self.ptm['values']['cpuclock'].keys()
|
|
||||||
keys.sort()
|
|
||||||
keys.reverse()
|
|
||||||
for core in keys[:-1]:
|
|
||||||
if (line.split('$cpucl' + str(core))[0] != line):
|
|
||||||
value = "%4.0f" % (self.ptm['values']['cpuclock'][core])
|
|
||||||
line = line.split('$cpucl' + str(core))[0] + value + line.split('$cpucl' + str(core))[1]
|
|
||||||
if (line.split('$cpucl')[0] != line):
|
|
||||||
value = "%4.0f" % (self.ptm['values']['cpuclock'][-1])
|
|
||||||
line = line.split('$cpucl')[0] + value + line.split('$cpucl')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("cpuclock", text)
|
|
||||||
|
|
||||||
|
|
||||||
def desktopText(self):
|
|
||||||
"""function to update desktop text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [desktopText]")
|
|
||||||
line = self.ptm['vars']['formats']['desktop']
|
|
||||||
if (line.split('$name')[0] != line):
|
|
||||||
line = line.split('$name')[0] + \
|
|
||||||
self.ptm['values']['desktop']['names'][self.ptm['values']['desktop']['current']-1] + \
|
|
||||||
line.split('$name')[1]
|
|
||||||
if (line.split('$number')[0] != line):
|
|
||||||
line = line.split('$number')[0] + \
|
|
||||||
str(self.ptm['values']['desktop']['current']) + \
|
|
||||||
line.split('$number')[1]
|
|
||||||
if (line.split('$total')[0] != line):
|
|
||||||
line = line.split('$total')[0] + \
|
|
||||||
str(len(self.ptm['values']['desktop']['names'])) + \
|
|
||||||
line.split('$total')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("desktop", text)
|
|
||||||
|
|
||||||
|
|
||||||
def diskText(self):
|
|
||||||
"""function to update hdd speed text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [diskText]")
|
|
||||||
line = self.ptm['vars']['formats']['disk']
|
|
||||||
devices = range(len(self.ptm['names']['disk']))
|
|
||||||
devices.reverse()
|
|
||||||
for i in devices:
|
|
||||||
if (line.split('$hddr' + str(i))[0] != line):
|
|
||||||
hdd = "%4i" % (self.ptm['values']['disk-r'][self.ptm['names']['disk'][i]])
|
|
||||||
line = line.split('$hddr' + str(i))[0] + hdd + line.split('$hddr' + str(i))[1]
|
|
||||||
if (line.split('$hddw' + str(i))[0] != line):
|
|
||||||
hdd = "%4i" % (self.ptm['values']['disk-w'][self.ptm['names']['disk'][i]])
|
|
||||||
line = line.split('$hddw' + str(i))[0] + hdd + line.split('$hddw' + str(i))[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("disk", text)
|
|
||||||
|
|
||||||
|
|
||||||
def hddText(self):
|
|
||||||
"""function to set hdd text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [hddText]")
|
|
||||||
line = self.ptm['vars']['formats']['hdd']
|
|
||||||
devices = range(len(self.ptm['names']['hdd']))
|
|
||||||
devices.reverse()
|
|
||||||
for i in devices:
|
|
||||||
if (line.split('$hdd' + str(i))[0] != line):
|
|
||||||
hdd = "%4.1f" % (self.ptm['values']['hdd'][self.ptm['names']['hdd'][i]])
|
|
||||||
line = line.split('$hdd' + str(i))[0] + hdd + line.split('$hdd' + str(i))[1]
|
|
||||||
if (line.split('$hddmb' + str(i))[0] != line):
|
|
||||||
hdd = "%i" % (self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / 1024.0)
|
|
||||||
line = line.split('$hddmb' + str(i))[0] + hdd + line.split('$hddmb' + str(i))[1]
|
|
||||||
if (line.split('$hddgb' + str(i))[0] != line):
|
|
||||||
hdd = "%5.1f" % (self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / (1024.0 * 1024.0))
|
|
||||||
line = line.split('$hddgb' + str(i))[0] + hdd + line.split('$hddgb' + str(i))[1]
|
|
||||||
if (line.split('$hddtotmb' + str(i))[0] != line):
|
|
||||||
hdd = "%i" % ((self.ptm['values']['hddfreemb'][self.ptm['names']['hdd'][i]] +\
|
|
||||||
self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]]) / 1024.0)
|
|
||||||
line = line.split('$hddtotmb' + str(i))[0] + hdd + line.split('$hddtotmb' + str(i))[1]
|
|
||||||
if (line.split('$hddtotgb' + str(i))[0] != line):
|
|
||||||
hdd = "%5.1f" % ((self.ptm['values']['hddfreemb'][self.ptm['names']['hdd'][i]] +\
|
|
||||||
self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]]) / (1024.0 * 1024.0))
|
|
||||||
line = line.split('$hddtotgb' + str(i))[0] + hdd + line.split('$hddtotgb' + str(i))[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("hdd", text)
|
|
||||||
|
|
||||||
|
|
||||||
def hddtempText(self):
|
|
||||||
"""function to set hddtemp text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [hddtempText]")
|
|
||||||
line = self.ptm['vars']['formats']['hddtemp']
|
|
||||||
devices = range(len(self.ptm['names']['hddtemp']))
|
|
||||||
devices.reverse()
|
|
||||||
for i in devices:
|
|
||||||
if (line.split('$hddtemp' + str(i))[0] != line):
|
|
||||||
line = line.split('$hddtemp' + str(i))[0] +\
|
|
||||||
getTemp(str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]), self.ptm['vars']['adv']['tempUnits']) +\
|
|
||||||
line.split('$hddtemp' + str(i))[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("hddtemp", text)
|
|
||||||
|
|
||||||
|
|
||||||
def memText(self):
|
|
||||||
"""function to set mem text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [memText]")
|
|
||||||
line = self.ptm['vars']['formats']['mem']
|
|
||||||
if (line.split('$memtotgb')[0] != line):
|
|
||||||
mem = "%4.1f" %((self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used']) / (1024.0 * 1024.0))
|
|
||||||
line = line.split('$memtotgb')[0] + mem + line.split('$memtotgb')[1]
|
|
||||||
if (line.split('$memtotmb')[0] != line):
|
|
||||||
mem = "%i" %((self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used']) / 1024.0)
|
|
||||||
line = line.split('$memtotmb')[0] + mem + line.split('$memtotmb')[1]
|
|
||||||
if (line.split('$memgb')[0] != line):
|
|
||||||
mem = "%4.1f" % (self.ptm['values']['mem']['app'] / (1024.0 * 1024.0))
|
|
||||||
line = line.split('$memgb')[0] + mem + line.split('$memgb')[1]
|
|
||||||
if (line.split('$memmb')[0] != line):
|
|
||||||
mem = "%i" % (self.ptm['values']['mem']['app'] / 1024.0)
|
|
||||||
line = line.split('$memmb')[0] + mem + line.split('$memmb')[1]
|
|
||||||
if (line.split('$mem')[0] != line):
|
|
||||||
try:
|
|
||||||
mem = 100 * self.ptm['values']['mem']['app'] / (self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used'])
|
|
||||||
mem = "%5.1f" % (round(mem, 1))
|
|
||||||
except:
|
|
||||||
mem = " N\\A"
|
|
||||||
line = line.split('$mem')[0] + mem + line.split('$mem')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("mem", text)
|
|
||||||
|
|
||||||
|
|
||||||
def netText(self):
|
|
||||||
"""function to set network text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [netText]")
|
|
||||||
line = self.ptm['vars']['formats']['net']
|
|
||||||
if (line.split('$netdev')[0] != 0):
|
|
||||||
line = line.split('$netdev')[0] + self.ptm['names']['net'] + line.split('$netdev')[1]
|
|
||||||
if (line.split('$down')[0] != line):
|
|
||||||
value = "%4.0f" %(self.ptm['values']['net']['down'])
|
|
||||||
line = line.split('$down')[0] + value + line.split('$down')[1]
|
|
||||||
if (line.split('$up')[0] != line):
|
|
||||||
value = "%4.0f" %(self.ptm['values']['net']['up'])
|
|
||||||
line = line.split('$up')[0] + value + line.split('$up')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("net", text)
|
|
||||||
|
|
||||||
|
|
||||||
def swapText(self):
|
|
||||||
"""function to set swap text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [swapText]")
|
|
||||||
line = self.ptm['vars']['formats']['swap']
|
|
||||||
if (line.split('$swaptotgb')[0] != line):
|
|
||||||
mem = "%4.1f" % ((self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used']) / (1024.0 * 1024.0))
|
|
||||||
line = line.split('$swaptotgb')[0] + mem + line.split('$swaptotgb')[1]
|
|
||||||
if (line.split('$swaptotmb')[0] != line):
|
|
||||||
mem = "%i" % ((self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used']) / 1024.0)
|
|
||||||
line = line.split('$swaptotmb')[0] + mem + line.split('$swaptotmb')[1]
|
|
||||||
if (line.split('$swapgb')[0] != line):
|
|
||||||
mem = "%4.1f" % (self.ptm['values']['swap']['used'] / (1024.0 * 1024.0))
|
|
||||||
line = line.split('$swapgb')[0] + mem + line.split('$swapgb')[1]
|
|
||||||
if (line.split('$swapmb')[0] != line):
|
|
||||||
mem = "%i" % (self.ptm['values']['swap']['used'] / 1024.0)
|
|
||||||
line = line.split('$swapmb')[0] + mem + line.split('$swapmb')[1]
|
|
||||||
if (line.split('$swap')[0] != line):
|
|
||||||
try:
|
|
||||||
mem = 100 * self.ptm['values']['swap']['used'] / (self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used'])
|
|
||||||
mem = "%5.1f" % (round(mem, 1))
|
|
||||||
except:
|
|
||||||
mem = " N\\A"
|
|
||||||
line = line.split('$swap')[0] + mem + line.split('$swap')[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("swap", text)
|
|
||||||
|
|
||||||
|
|
||||||
def tempText(self):
|
|
||||||
"""function to set temperature text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [tempText]")
|
|
||||||
line = self.ptm['vars']['formats']['temp']
|
|
||||||
devices = range(len(self.ptm['names']['temp']))
|
|
||||||
devices.reverse()
|
|
||||||
for i in devices:
|
|
||||||
if (line.split('$temp' + str(i))[0] != line):
|
|
||||||
line = line.split('$temp' + str(i))[0] +\
|
|
||||||
getTemp(str(self.ptm['values']['temp'][self.ptm['names']['temp'][i]]), self.ptm['vars']['adv']['tempUnits']) +\
|
|
||||||
line.split('$temp' + str(i))[1]
|
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
self.setText("temp", text)
|
|
||||||
|
|
||||||
|
|
||||||
# external functions
|
|
||||||
def addLabel(self, name=None, text=None, add=True, enablePopup=2):
|
|
||||||
"""function to add new label"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addLabel]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with name '%s'" %(name))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with text '%s'" %(text))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with add '%s'" %(add))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with popup '%s'" %(enablePopup))
|
|
||||||
if (add):
|
|
||||||
self.ptm['labels'][name] = CustomPlasmaLabel(self.applet, name, enablePopup)
|
|
||||||
self.ptm['layout'].addItem(self.ptm['labels'][name])
|
|
||||||
self.setText(name, text)
|
|
||||||
else:
|
|
||||||
self.setText(name, '')
|
|
||||||
self.ptm['layout'].removeItem(self.ptm['labels'][name])
|
|
||||||
|
|
||||||
|
|
||||||
def applySettings(self, name=None, ptm=None):
|
|
||||||
"""function to read settings"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [applySettings]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [applySettings] : Run function with name '%s'" %(name))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [applySettings] : Run function with settings '%s'" %(ptm))
|
|
||||||
self.ptm[name] = ptm
|
|
||||||
if (name == "names"):
|
|
||||||
for item in ['hddtemp', 'temp']:
|
|
||||||
for value in self.ptm['names'][item]:
|
|
||||||
self.ptm['values'][item][value] = 0.0
|
|
||||||
for value in self.ptm['names']['hdd']:
|
|
||||||
self.ptm['values']['hdd'][value] = 0.0
|
|
||||||
self.ptm['values']['hddfreemb'][value] = 0.0
|
|
||||||
self.ptm['values']['hddmb'][value] = 0.0
|
|
||||||
for value in self.ptm['names']['disk']:
|
|
||||||
self.ptm['values']['disk-r'][value] = 0.0
|
|
||||||
self.ptm['values']['disk-w'][value] = 0.0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def connectToEngine(self):
|
|
||||||
"""function to connect to dataengines"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [connectToEngine]")
|
|
||||||
self.ptm['dataengine']['ext'] = self.dataEngine("ext-sysmon")
|
|
||||||
self.ptm['dataengine']['system'] = self.dataEngine("systemmonitor")
|
|
||||||
self.ptm['dataengine']['time'] = self.dataEngine("time")
|
|
||||||
QObject.connect(self.ptm['dataengine']['system'], SIGNAL("sourceAdded(QString)"), self.addDiskDevice)
|
|
||||||
self.dataengine.connectToEngine(self.ptm['vars']['bools'], self.ptm['dataengine'],
|
|
||||||
self.ptm['vars']['app']['interval'], self.ptm['names'])
|
|
||||||
|
|
||||||
|
|
||||||
def createLayout(self, verticalLayout=0, leftStretch=2):
|
|
||||||
"""function to create layout"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [createLayout]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [createLayout] : Run function with vertical layout '%s'" %(verticalLayout))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [createLayout] : Run function with left stretch '%s'" %(leftStretch))
|
|
||||||
if (verticalLayout == 0):
|
|
||||||
self.ptm['layout'] = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
|
||||||
else:
|
|
||||||
self.ptm['layout'] = QGraphicsLinearLayout(Qt.Vertical, self.applet)
|
|
||||||
self.ptm['layout'].setContentsMargins(1, 1, 1, 1)
|
|
||||||
if (leftStretch == 2):
|
|
||||||
self.ptm['layout'].addStretch(1)
|
|
||||||
|
|
||||||
|
|
||||||
def disconnectFromSource(self):
|
|
||||||
"""function to disconnect from sources"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [disconnectFromSource]")
|
|
||||||
for label in self.ptm['defaults']['format'].keys():
|
|
||||||
if (self.ptm['vars']['bools'][label] > 0):
|
|
||||||
self.addLabel(label, None, False)
|
|
||||||
keys = {'cpu':self.ptm['values']['cpu'].keys(), 'cpuclock':self.ptm['values']['cpuclock'].keys(),
|
|
||||||
'disk':self.ptm['values']['disk-r'].keys(), 'hdd':self.ptm['values']['hdd'].keys(),
|
|
||||||
'net':self.ptm['names']['net'], 'temp':self.ptm['values']['temp'].keys()}
|
|
||||||
self.dataengine.disconnectFromSource(self.ptm['dataengine'], keys, label)
|
|
||||||
|
|
||||||
|
|
||||||
def reInit(self):
|
|
||||||
"""function to run reinit"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [reInit]")
|
|
||||||
self.reinit.reinit()
|
|
||||||
# add stretch
|
|
||||||
if (self.ptm['vars']['adv']['rightStretch'] == 2):
|
|
||||||
self.ptm['layout'].addStretch(1)
|
|
||||||
self.updateNetdev()
|
|
||||||
self.resize(10, 10)
|
|
||||||
|
|
||||||
# create dataengines
|
|
||||||
self.thread().wait(60000)
|
|
||||||
self.connectToEngine()
|
|
||||||
|
|
||||||
self.timer.setInterval(self.ptm['vars']['app']['interval'])
|
|
||||||
self.timer.start()
|
|
||||||
self.startPolling()
|
|
||||||
|
|
||||||
|
|
||||||
def setTransparentBackground(self, hasBackground=2):
|
|
||||||
"""function to set background to the widget"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setTransparentBackground]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setTransparentBackground] : Run function with hasBackground '%s'" %(hasBackground))
|
|
||||||
if (hasBackground == 2):
|
|
||||||
self.theme.setImagePath("widgets/background")
|
|
||||||
self.setBackgroundHints(Plasma.Applet.DefaultBackground)
|
|
||||||
else:
|
|
||||||
self.theme.setImagePath("")
|
|
||||||
self.setBackgroundHints(Plasma.Applet.NoBackground)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def setNetdev(self):
|
|
||||||
"""function to set network device"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setNetdev]")
|
|
||||||
if (self.ptm['vars']['adv']['netdevBool'] > 0):
|
|
||||||
return self.ptm['vars']['adv']['netdev']
|
|
||||||
netdev = "lo"
|
|
||||||
netdir = self.ptm['vars']['adv']['netDir']
|
|
||||||
interfaces = QDir.entryList(QDir(netdir), QDir.Dirs | QDir.NoDotAndDotDot)
|
|
||||||
for device in interfaces:
|
|
||||||
if (str(device) != "lo"):
|
|
||||||
try:
|
|
||||||
with open(netdir + '/' + str(device) + '/operstate', 'r') as stateFile:
|
|
||||||
if (stateFile.readline() == "up\n"):
|
|
||||||
netdev = str(device)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setNetdev] : Returns '%s'" %(netdev))
|
|
||||||
return netdev
|
|
||||||
|
|
||||||
|
|
||||||
def setText(self, name=None, text=None):
|
|
||||||
"""function to set text to labels"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setText]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setText] : Run function with name '%s'" %(name))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [setText] : Run function with text '%s'" %(text))
|
|
||||||
self.ptm['labels'][name].setText(text)
|
|
||||||
|
|
||||||
|
|
||||||
def textPrepare(self, name=None, text=None):
|
|
||||||
"""function to prepare text"""
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare]")
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare] : Run function with name '%s'" %(name))
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare] : Run function with text '%s'" %(text))
|
|
||||||
line = self.ptm['vars']['formats'][name]
|
|
||||||
if (name == "custom"):
|
|
||||||
cmds = range(len(text.keys()))
|
|
||||||
cmds.reverse()
|
|
||||||
for i in cmds:
|
|
||||||
if (line.split('$custom' + str(i))[0] != line):
|
|
||||||
line = line.split('$custom' + str(i))[0] + \
|
|
||||||
text['custom'+str(i)] + \
|
|
||||||
line.split('$custom' + str(i))[1]
|
|
||||||
elif (name == "gpu"):
|
|
||||||
if (line.split('$gpu')[0] != line):
|
|
||||||
line = line.split('$gpu')[0] + text + line.split('$gpu')[1]
|
|
||||||
elif (name == "gputemp"):
|
|
||||||
if (line.split('$gputemp')[0] != line):
|
|
||||||
line = line.split('$gputemp')[0] + getTemp(text, self.ptm['vars']['adv']['tempUnits']) + line.split('$gputemp')[1]
|
|
||||||
elif (name == "pkg"):
|
|
||||||
pkgs = range(len(text.keys()))
|
|
||||||
pkgs.reverse()
|
|
||||||
for i in pkgs:
|
|
||||||
if (line.split('$pkgcount' + str(i))[0] != line):
|
|
||||||
line = line.split('$pkgcount' + str(i))[0] + \
|
|
||||||
text['pkgcount'+str(i)] + \
|
|
||||||
line.split('$pkgcount' + str(i))[1]
|
|
||||||
elif (name == "player"):
|
|
||||||
if (line.split('$album')[0] != line):
|
|
||||||
line = line.split('$album')[0] + text['album'] + line.split('$album')[1]
|
|
||||||
if (line.split('$artist')[0] != line):
|
|
||||||
line = line.split('$artist')[0] + text['artist'] + line.split('$artist')[1]
|
|
||||||
if (line.split('$progress')[0] != line):
|
|
||||||
line = line.split('$progress')[0] + text['progress'] + line.split('$progress')[1]
|
|
||||||
if (line.split('$time')[0] != line):
|
|
||||||
line = line.split('$time')[0] + text['time'] + line.split('$time')[1]
|
|
||||||
if (line.split('$title')[0] != line):
|
|
||||||
line = line.split('$title')[0] + text['title'] + line.split('$title')[1]
|
|
||||||
elif (name == "ps"):
|
|
||||||
if (line.split('$pscount')[0] != line):
|
|
||||||
line = line.split('$pscount')[0] + text['num'] + line.split('$pscount')[1]
|
|
||||||
if (line.split('$pstotal')[0] != line):
|
|
||||||
line = line.split('$pstotal')[0] + text['total'] + line.split('$pstotal')[1]
|
|
||||||
if (line.split('$ps')[0] != line):
|
|
||||||
line = line.split('$ps')[0] + text['list'] + line.split('$ps')[1]
|
|
||||||
elif (name == "time"):
|
|
||||||
if (line.split('$time')[0] != line):
|
|
||||||
line = line.split('$time')[0] + text + line.split('$time')[1]
|
|
||||||
elif (line.split('$isotime')[0] != line):
|
|
||||||
line = line.split('$isotime')[0] + text + line.split('$isotime')[1]
|
|
||||||
elif (line.split('$shorttime')[0] != line):
|
|
||||||
line = line.split('$shorttime')[0] + text + line.split('$shorttime')[1]
|
|
||||||
elif (line.split('$longtime')[0] != line):
|
|
||||||
line = line.split('$longtime')[0] + text + line.split('$longtime')[1]
|
|
||||||
elif (line.split('$custom')[0] != line):
|
|
||||||
line = line.split('$custom')[0] + text + line.split('$custom')[1]
|
|
||||||
elif (name == "uptime"):
|
|
||||||
if (line.split('$uptime')[0] != line):
|
|
||||||
line = line.split('$uptime')[0] + text + line.split('$uptime')[1]
|
|
||||||
elif (line.split('$custom')[0] != line):
|
|
||||||
line = line.split('$custom')[0] + text + line.split('$custom')[1]
|
|
||||||
output = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
|
||||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare] : Returns '%s'" %(output))
|
|
||||||
return output
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def CreateApplet(parent):
|
|
||||||
return pyTextWidget(parent)
|
|
@ -1,239 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyKDE4.kdecore import KComponentData
|
|
||||||
from PyKDE4.kdeui import KNotification
|
|
||||||
import commands
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class PTMNotify:
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""class definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
|
|
||||||
|
|
||||||
def init(self, name=None):
|
|
||||||
"""function to init notification"""
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [init]")
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [init] : Run function with name '%s'" %(name))
|
|
||||||
content = self.initText(name)
|
|
||||||
self.createNotify(content)
|
|
||||||
|
|
||||||
|
|
||||||
def createNotify(self, content):
|
|
||||||
"""function to create notification for label"""
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createNotify]")
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createNotify] : Run function with content '%s'" %(content))
|
|
||||||
notification = KNotification(content[0])
|
|
||||||
notification.setComponentData(KComponentData("plasma_applet_pytextmonitor"))
|
|
||||||
notification.setTitle("PyTextMonitor info ::: " + content[0]);
|
|
||||||
notification.setText(content[1]);
|
|
||||||
notification.sendEvent();
|
|
||||||
|
|
||||||
|
|
||||||
def createText(self, type):
|
|
||||||
"""function to create text"""
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText]")
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText] : Run function with type '%s'" %(type))
|
|
||||||
text = ""
|
|
||||||
if (type == "battery"):
|
|
||||||
try:
|
|
||||||
text = "%s" %(commands.getoutput("acpi -abi"))
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "disk"):
|
|
||||||
try:
|
|
||||||
for line in commands.getoutput("df -h --output='source,target,used,size,pcent' --exclude-type=fuseblk --exclude-type=tmpfs --exclude-type=devtmpfs").split("\n")[1:]:
|
|
||||||
text = text + "%s (to %s): %s of %s (%s)\n" % (line.split()[0], line.split()[1], line.split()[2], line.split()[3], line.split()[4])
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "graphical"):
|
|
||||||
try:
|
|
||||||
output = commands.getoutput("lspci -m | grep 'VGA\|3D'")
|
|
||||||
if (output.lower().find('nvidia') > -1):
|
|
||||||
gpudev = "nvidia"
|
|
||||||
elif (output.lower().find('radeon') > -1):
|
|
||||||
gpudev = "ati"
|
|
||||||
for line in output.split("\n"):
|
|
||||||
text = text + "%s %s\n" % (line.split('"')[0], line.split('"')[5])
|
|
||||||
if (gpudev == 'nvidia'):
|
|
||||||
output = commands.getoutput("nvidia-smi -q -d UTILIZATION | grep Gpu | tail -n1")
|
|
||||||
try:
|
|
||||||
value = "%5.1f" % (round(float(output.split()[2]), 1))
|
|
||||||
except:
|
|
||||||
value = " N\A"
|
|
||||||
elif (gpudev == 'ati'):
|
|
||||||
output = commands.getoutput("aticonfig --od-getclocks | grep load | tail -n1")
|
|
||||||
try:
|
|
||||||
value = "%5.1f" % (round(float(output.split()[3]), 1))
|
|
||||||
except:
|
|
||||||
value = " N\A"
|
|
||||||
else:
|
|
||||||
value = " N\A"
|
|
||||||
text = text + "Load: %s%%\n" % (value)
|
|
||||||
if (gpudev == 'nvidia'):
|
|
||||||
output = commands.getoutput("nvidia-smi -q -d TEMPERATURE | grep Gpu | tail -n1")
|
|
||||||
try:
|
|
||||||
value = "%5.1f" % (round(float(output.split()[2]), 1))
|
|
||||||
except:
|
|
||||||
value = " N\A"
|
|
||||||
elif (gpudev == 'ati'):
|
|
||||||
output = commands.getoutput("aticonfig --od-gettemperature | grep Temperature | tail -n1")
|
|
||||||
try:
|
|
||||||
value = "%5.1f" % (round(float(output.split()[3]), 1))
|
|
||||||
except:
|
|
||||||
value = " N\A"
|
|
||||||
else:
|
|
||||||
value = " N\A"
|
|
||||||
text = text + "Temp: %s\xb0C\n" % (value)
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "memory"):
|
|
||||||
try:
|
|
||||||
output = commands.getoutput("free -m -o").split("\n")
|
|
||||||
memUsage = int(output[1].split()[1]) - (int(output[1].split()[3]) + int(output[1].split()[5]) + int(output[1].split()[6]))
|
|
||||||
text = text + "Memory: %i of %s (%i%%)\n" % (memUsage, output[1].split()[1], int(100*memUsage/int(output[1].split()[1])))
|
|
||||||
text = text + "Swap: %s of %s (%i%%)\n" % (output[2].split()[2], output[2].split()[1], int(100*int(output[2].split()[2])/int(output[2].split()[1])))
|
|
||||||
output = commands.getoutput("swapon --show").split("\n")
|
|
||||||
text = text + "Swap Device: %s (%s)" % (output[1].split()[0], output[1].split()[1])
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "network"):
|
|
||||||
try:
|
|
||||||
output = commands.getoutput("ifconfig -a -s").split("\n")[1:]
|
|
||||||
devices = [line.split()[0] for line in output]
|
|
||||||
text = text + "Devices: %s\n" % (' '.join(devices))
|
|
||||||
for dev in devices:
|
|
||||||
output = commands.getoutput("ifconfig -a -s " + dev + " && sleep 0.2 && ifconfig -a -s " + dev).split("\n")
|
|
||||||
download = int((int(output[3].split()[2]) - int(output[1].split()[2])) / (0.2 * 1024))
|
|
||||||
upload = int((int(output[3].split()[6]) - int(output[1].split()[6])) / (0.2 * 1024))
|
|
||||||
text = text + "%s: %i/%i KB/s" % (dev, download, upload)
|
|
||||||
output = commands.getoutput("ifconfig " + dev + " | grep 'inet ' || echo ' inet Null'").split()[1]
|
|
||||||
text = text + " (IP: %s)\n" % (output)
|
|
||||||
output = commands.getoutput("wget -qO- http://ifconfig.me/ip")
|
|
||||||
text = text + "External IP: %s" % (output)
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "player"):
|
|
||||||
try:
|
|
||||||
artist = "N\\A"
|
|
||||||
album = "N\\A"
|
|
||||||
title = "N\\A"
|
|
||||||
if (len(commands.getoutput("pgrep mpd")) > 0):
|
|
||||||
player = "mpd"
|
|
||||||
else:
|
|
||||||
player = "mpris"
|
|
||||||
if (player == "mpris"):
|
|
||||||
name = commands.getoutput("qdbus 'org.mpris.MediaPlayer2.*'").split('\n')[0].split('.')[3]
|
|
||||||
artist = commands.getoutput("qdbus org.mpris." + name + " /Player GetMetadata 2> /dev/null | grep albumartist: | cut -c14-")
|
|
||||||
album = commands.getoutput("qdbus org.mpris." + name + " /Player GetMetadata 2> /dev/null | grep album: | cut -c8-")
|
|
||||||
title = commands.getoutput("qdbus org.mpris." + name + " /Player GetMetadata 2> /dev/null | grep title: | cut -c8-")
|
|
||||||
elif (player == "mpd"):
|
|
||||||
output = commands.getoutput("echo 'currentsong\nclose' | curl --connect-timeout 1 -fsm 3 telnet://localhost:6600 2> /dev/null")
|
|
||||||
for line in output.split("\n"):
|
|
||||||
if (line.split(": ")[0] == "Artist"):
|
|
||||||
artist = line.split(": ")[1]
|
|
||||||
elif (line.split(": ")[0] == "Album"):
|
|
||||||
album = line.split(": ")[1]
|
|
||||||
elif (line.split(": ")[0] == "Title"):
|
|
||||||
title = line.split(": ")[1]
|
|
||||||
text = text + "Artist: %s\nAlbum: %s\nTitle: %s" % (artist, album, title)
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "processor"):
|
|
||||||
try:
|
|
||||||
output = commands.getoutput("grep 'model name' /proc/cpuinfo | head -1")
|
|
||||||
text = text + "Model: %s\n" % (' '.join(output.split()[3:]))
|
|
||||||
output = commands.getoutput("sar -u | tail -1")
|
|
||||||
text = text + "CPU Usage: %5.1f%%\n" % (100-float(output.split()[-1]))
|
|
||||||
output = commands.getoutput("grep MHz /proc/cpuinfo | head -1")
|
|
||||||
text = text + "CPU Freq: %i MHz\n" % (int(float(output.split()[-1])))
|
|
||||||
output = commands.getoutput("sensors -u")
|
|
||||||
text = text + "Temps:"
|
|
||||||
for line in output.split("\n"):
|
|
||||||
if (line.find("_input") > -1):
|
|
||||||
text = text + " %3.0f\xb0C" % (round(float(line.split()[-1]), 0))
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "system"):
|
|
||||||
try:
|
|
||||||
text = text + "Kernel: %s\n" % (commands.getoutput("uname -rsm"))
|
|
||||||
text = text + "Hostname: %s\n" % (commands.getoutput("uname -n"))
|
|
||||||
text = text + "Whoami: %s\n" % (commands.getoutput("whoami"))
|
|
||||||
text = text + "Uptime: %s\n" % (commands.getoutput("uptime"))
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
content = [type, text]
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText] : Returns '%s'" %(content))
|
|
||||||
return content
|
|
||||||
|
|
||||||
|
|
||||||
def initText(self, name):
|
|
||||||
"""function to send text"""
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [initText]")
|
|
||||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [initText] : Run function with name '%s'" %(name))
|
|
||||||
if (name == "bat"):
|
|
||||||
return self.createText("battery")
|
|
||||||
elif (name == "cpu"):
|
|
||||||
return self.createText("processor")
|
|
||||||
elif (name == "cpuclock"):
|
|
||||||
return self.createText("processor")
|
|
||||||
elif (name == "custom"):
|
|
||||||
return self.createText("system")
|
|
||||||
elif (name == "desktop"):
|
|
||||||
return self.createText("system")
|
|
||||||
elif (name == "disk"):
|
|
||||||
return self.createText("disk")
|
|
||||||
elif (name == "gpu"):
|
|
||||||
return self.createText("graphical")
|
|
||||||
elif (name == "gputemp"):
|
|
||||||
return self.createText("graphical")
|
|
||||||
elif (name == "hdd"):
|
|
||||||
return self.createText("disk")
|
|
||||||
elif (name == "hddtemp"):
|
|
||||||
return self.createText("disk")
|
|
||||||
elif (name == "mem"):
|
|
||||||
return self.createText("memory")
|
|
||||||
elif (name == "net"):
|
|
||||||
return self.createText("network")
|
|
||||||
elif (name == "pkg"):
|
|
||||||
return self.createText("system")
|
|
||||||
elif (name == "player"):
|
|
||||||
return self.createText("player")
|
|
||||||
elif (name == "ps"):
|
|
||||||
return self.createText("system")
|
|
||||||
elif (name == "swap"):
|
|
||||||
return self.createText("memory")
|
|
||||||
elif (name == "temp"):
|
|
||||||
return self.createText("processor")
|
|
||||||
elif (name == "time"):
|
|
||||||
return self.createText("system")
|
|
||||||
elif (name == "uptime"):
|
|
||||||
return self.createText("system")
|
|
||||||
else:
|
|
||||||
return None
|
|
@ -1,113 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
import config
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Reinit():
|
|
||||||
def __init__(self, parent, defaults=None):
|
|
||||||
"""class definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
self.parent = parent
|
|
||||||
self.defaults = defaults
|
|
||||||
self.labels = defaults['format'].keys()
|
|
||||||
|
|
||||||
|
|
||||||
def reinit(self):
|
|
||||||
"""function to reinitializate widget"""
|
|
||||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit]")
|
|
||||||
settings = config.Config(self.parent)
|
|
||||||
ptmVars = {}
|
|
||||||
|
|
||||||
ptmVars['adv'] = {}
|
|
||||||
ptmVars['adv']['acDev'] = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
|
|
||||||
ptmVars['adv']['acOnline'] = str(settings.get('ac_online', '(*)'))
|
|
||||||
ptmVars['adv']['acOffline'] = str(settings.get('ac_offline', '( )'))
|
|
||||||
ptmVars['adv']['background'] = settings.get('background', 2).toInt()[0]
|
|
||||||
ptmVars['adv']['batDev'] = str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
|
|
||||||
ptmVars['adv']['customTime'] = str(settings.get('custom_time', '$hh:$mm'))
|
|
||||||
ptmVars['adv']['customUptime'] = str(settings.get('custom_uptime', '$dd,$hh,$mm'))
|
|
||||||
ptmVars['adv']['layout'] = settings.get('layout', 0).toInt()[0]
|
|
||||||
ptmVars['adv']['leftStretch'] = settings.get('left_stretch', 2).toInt()[0]
|
|
||||||
ptmVars['adv']['netdevBool'] = settings.get('netdevBool', 0).toInt()[0]
|
|
||||||
ptmVars['adv']['netdev'] = str(settings.get('custom_netdev', 'lo'))
|
|
||||||
ptmVars['adv']['netDir'] = str(settings.get('netdir', '/sys/class/net'))
|
|
||||||
ptmVars['adv']['rightStretch'] = settings.get('right_stretch', 2).toInt()[0]
|
|
||||||
ptmVars['adv']['tempUnits'] = str(settings.get('temp_units', 'Celsius'))
|
|
||||||
ptmVars['adv']['popup'] = settings.get('popup', 2).toInt()[0]
|
|
||||||
|
|
||||||
ptmVars['app'] = {}
|
|
||||||
ptmVars['app']['format'] = ["<pre><p align=\"center\"><span style=\" font-family:'" + str(settings.get('font_family', 'Terminus')) +\
|
|
||||||
"'; font-style:" + str(settings.get('font_style', 'normal')) + "; font-size:" + str(settings.get('font_size', 12)) +\
|
|
||||||
"pt; font-weight:" + str(settings.get('font_weight', 400)) + "; color:" + str(settings.get('font_color', '#000000')) +\
|
|
||||||
";\">", "</span></p></pre>"]
|
|
||||||
ptmVars['app']['interval'] = settings.get('interval', 2000).toInt()[0]
|
|
||||||
ptmVars['app']['order'] = str(settings.get('label_order', '1345'))
|
|
||||||
|
|
||||||
ptmVars['tooltip'] = {}
|
|
||||||
ptmVars['tooltip']['colors'] = {}
|
|
||||||
ptmVars['tooltip']['colors']['background'] = str(settings.get('tooltip_background', 'null'))
|
|
||||||
ptmVars['tooltip']['colors']['cpu'] = str(settings.get('cpu_color', '#ff0000'))
|
|
||||||
ptmVars['tooltip']['colors']['cpuclock'] = str(settings.get('cpuclock_color', '#00ff00'))
|
|
||||||
ptmVars['tooltip']['colors']['mem'] = str(settings.get('mem_color', '#0000ff'))
|
|
||||||
ptmVars['tooltip']['colors']['swap'] = str(settings.get('swap_color', '#ffff00'))
|
|
||||||
ptmVars['tooltip']['colors']['down'] = str(settings.get('down_color', '#00ffff'))
|
|
||||||
ptmVars['tooltip']['colors']['up'] = str(settings.get('up_color', '#ff00ff'))
|
|
||||||
ptmVars['tooltip']['num'] = settings.get('tooltip_num', 100).toInt()[0]
|
|
||||||
|
|
||||||
ptmVars['bools'] = {}
|
|
||||||
for label in self.labels:
|
|
||||||
ptmVars['bools'][label] = settings.get(self.defaults['confBool'][label], self.defaults['bool'][label]).toInt()[0]
|
|
||||||
|
|
||||||
ptmNames = {}
|
|
||||||
ptmNames['disk'] = str(settings.get('disk', 'disk/sda_(8:0)')).split('@@')
|
|
||||||
ptmNames['hdd'] = str(settings.get('mount', '/')).split('@@')
|
|
||||||
ptmNames['hddtemp'] = str(settings.get('hdd', '/dev/sda')).split('@@')
|
|
||||||
ptmNames['temp'] = str(settings.get('temp_device', '')).split('@@')
|
|
||||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit] : Returns names '%s'" %(ptmNames))
|
|
||||||
self.parent.applySettings('names', ptmNames)
|
|
||||||
|
|
||||||
self.parent.setTransparentBackground(ptmVars['adv']['background'])
|
|
||||||
self.parent.createLayout(ptmVars['adv']['layout'], ptmVars['adv']['leftStretch'])
|
|
||||||
ptmVars['formats'] = {}
|
|
||||||
ptmVars['tooltip']['required'] = []
|
|
||||||
for order in ptmVars['app']['order']:
|
|
||||||
label = self.defaults['order'][order]
|
|
||||||
if (ptmVars['bools'][label] > 0):
|
|
||||||
ptmVars['formats'][label] = str(settings.get(self.defaults['confFormat'][label], self.defaults['format'][label]))
|
|
||||||
text = ptmVars['app']['format'][0] + ptmVars['formats'][label] + ptmVars['app']['format'][1]
|
|
||||||
self.parent.addLabel(label, text, True, ptmVars['adv']['popup'])
|
|
||||||
if ((label in ['cpu', 'cpuclock', 'mem', 'net', 'swap']) and (ptmVars['bools'][label] == 2)):
|
|
||||||
if (label == 'net'):
|
|
||||||
ptmVars['tooltip']['required'].append("down")
|
|
||||||
ptmVars['tooltip']['required'].append("up")
|
|
||||||
else:
|
|
||||||
ptmVars['tooltip']['required'].append(label)
|
|
||||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit] : Returns vars '%s'" %(ptmVars))
|
|
||||||
self.parent.applySettings('vars', ptmVars)
|
|
@ -1,77 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Tooltip():
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""class definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
self.parent = parent
|
|
||||||
|
|
||||||
|
|
||||||
def createGraphic(self, ptmVars, ptmTooltip, widget):
|
|
||||||
"""function to create graph"""
|
|
||||||
if self.debug: qDebug("[PTM] [tooltip.py] [createGraphic]")
|
|
||||||
widget.clear()
|
|
||||||
pen = QPen()
|
|
||||||
bounds = ptmTooltip['bounds']
|
|
||||||
colors = ptmVars['colors']
|
|
||||||
types = ptmVars['required']
|
|
||||||
values = ptmTooltip['values']
|
|
||||||
maxOne = [100.0, 100.0]
|
|
||||||
bounds['down'] = 1.0
|
|
||||||
if (colors['background'] != "null"):
|
|
||||||
widget.setBackgroundBrush(QColor(colors['background']))
|
|
||||||
else:
|
|
||||||
widget.setBackgroundBrush(QBrush(Qt.NoBrush))
|
|
||||||
for value in values['down']:
|
|
||||||
if (bounds['down'] < value):
|
|
||||||
bounds['down'] = value
|
|
||||||
for value in values['up']:
|
|
||||||
if (bounds['down'] < value):
|
|
||||||
bounds['down'] = value
|
|
||||||
bounds['up'] = bounds['down']
|
|
||||||
down = False
|
|
||||||
for type in types:
|
|
||||||
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5 * bounds[type])]
|
|
||||||
pen.setColor(QColor(colors[type]))
|
|
||||||
if (down):
|
|
||||||
shift = (types.index(type) - 1) * maxOne[0]
|
|
||||||
else:
|
|
||||||
shift = types.index(type) * maxOne[0]
|
|
||||||
for i in range(len(values[type])-1):
|
|
||||||
x1 = i * norm[0] + shift
|
|
||||||
y1 = -values[type][i] * norm[1]
|
|
||||||
x2 = (i + 1) * norm[0] + shift
|
|
||||||
y2 = -values[type][i+1] * norm[1]
|
|
||||||
widget.addLine(x1, y1, x2, y2, pen)
|
|
||||||
if (type == 'down'):
|
|
||||||
down = True
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.plasma import *
|
|
||||||
from PyQt4 import uic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TooltipWindow(QWidget):
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""settings window definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
QWidget.__init__(self)
|
|
||||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'tooltipconfig.ui'), self)
|
|
||||||
self.parent = parent
|
|
||||||
self.kcolorcombos = {'background':self.ui.kcolorcombo_background, 'cpu':self.ui.kcolorcombo_cpu,
|
|
||||||
'cpuclock':self.ui.kcolorcombo_cpuclock, 'down':self.ui.kcolorcombo_down,
|
|
||||||
'mem':self.ui.kcolorcombo_mem, 'swap':self.ui.kcolorcombo_swap,
|
|
||||||
'up':self.ui.kcolorcombo_up}
|
|
||||||
QObject.connect(self.ui.checkBox_background, SIGNAL("stateChanged(int)"), self.setBackground)
|
|
||||||
|
|
||||||
|
|
||||||
def setBackground(self, background=0):
|
|
||||||
"""function to enable/disable background elements"""
|
|
||||||
if (background == 0):
|
|
||||||
self.kcolorcombos['background'].setDisabled(True)
|
|
||||||
else:
|
|
||||||
self.kcolorcombos['background'].setEnabled(True)
|
|
@ -1,129 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
############################################################################
|
|
||||||
# This file is part of pytextmonitor #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is free software: you can redistribute it and/or #
|
|
||||||
# modify it under the terms of the GNU General Public License as #
|
|
||||||
# published by the Free Software Foundation, either version 3 of the #
|
|
||||||
# License, or (at your option) any later version. #
|
|
||||||
# #
|
|
||||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
||||||
# GNU General Public License for more details. #
|
|
||||||
# #
|
|
||||||
# You should have received a copy of the GNU General Public License #
|
|
||||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
from PyKDE4.plasma import *
|
|
||||||
from PyQt4 import uic
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class WidgetWindow(QWidget):
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""settings window definition"""
|
|
||||||
# debug
|
|
||||||
environment = QProcessEnvironment.systemEnvironment()
|
|
||||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
|
||||||
if (debugEnv == QString("yes")):
|
|
||||||
self.debug = True
|
|
||||||
else:
|
|
||||||
self.debug = False
|
|
||||||
# main
|
|
||||||
QWidget.__init__(self)
|
|
||||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'widget.ui'), self)
|
|
||||||
self.parent = parent
|
|
||||||
self.checkboxes = {'bat':self.ui.checkBox_bat, 'cpu':self.ui.checkBox_cpu,
|
|
||||||
'cpuclock':self.ui.checkBox_cpuclock, 'custom':self.ui.checkBox_custom,
|
|
||||||
'desktop':self.ui.checkBox_desktop, 'disk':self.ui.checkBox_hddSpeed,
|
|
||||||
'gpu':self.ui.checkBox_gpu, 'gputemp':self.ui.checkBox_gpuTemp,
|
|
||||||
'hdd':self.ui.checkBox_hdd, 'hddtemp':self.ui.checkBox_hddTemp,
|
|
||||||
'mem':self.ui.checkBox_mem, 'net':self.ui.checkBox_net,
|
|
||||||
'swap':self.ui.checkBox_swap, 'temp':self.ui.checkBox_temp,
|
|
||||||
'uptime':self.ui.checkBox_uptime, 'pkg':self.ui.checkBox_pkg,
|
|
||||||
'player':self.ui.checkBox_player, 'ps':self.ui.checkBox_ps,
|
|
||||||
'time':self.ui.checkBox_time}
|
|
||||||
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
|
|
||||||
'cpuclock':self.ui.lineEdit_cpuclock, 'custom':self.ui.lineEdit_custom,
|
|
||||||
'desktop':self.ui.lineEdit_desktop, 'disk':self.ui.lineEdit_hddSpeed,
|
|
||||||
'gpu':self.ui.lineEdit_gpu, 'gputemp':self.ui.lineEdit_gpuTemp,
|
|
||||||
'hdd':self.ui.lineEdit_hdd, 'hddtemp':self.ui.lineEdit_hddTemp,
|
|
||||||
'mem':self.ui.lineEdit_mem, 'net':self.ui.lineEdit_net,
|
|
||||||
'swap':self.ui.lineEdit_swap, 'temp':self.ui.lineEdit_temp,
|
|
||||||
'uptime':self.ui.lineEdit_uptime, 'pkg':self.ui.lineEdit_pkg,
|
|
||||||
'player':self.ui.lineEdit_player, 'ps':self.ui.lineEdit_ps,
|
|
||||||
'time':self.ui.lineEdit_time}
|
|
||||||
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
|
|
||||||
'cpuclock':self.ui.slider_cpuclock, 'custom':self.ui.slider_custom,
|
|
||||||
'desktop':self.ui.slider_desktop, 'disk':self.ui.slider_hddSpeed,
|
|
||||||
'gpu':self.ui.slider_gpu, 'gputemp':self.ui.slider_gpuTemp,
|
|
||||||
'hdd':self.ui.slider_hdd, 'hddtemp':self.ui.slider_hddTemp,
|
|
||||||
'mem':self.ui.slider_mem, 'net':self.ui.slider_net,
|
|
||||||
'swap':self.ui.slider_swap, 'temp':self.ui.slider_temp,
|
|
||||||
'uptime':self.ui.slider_uptime, 'pkg':self.ui.slider_pkg,
|
|
||||||
'player':self.ui.slider_player, 'ps':self.ui.slider_ps,
|
|
||||||
'time':self.ui.slider_time}
|
|
||||||
|
|
||||||
for item in self.sliders.values():
|
|
||||||
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)
|
|
||||||
for item in self.checkboxes.values():
|
|
||||||
QObject.connect(item, SIGNAL("stateChanged(int)"), self.setStatus)
|
|
||||||
|
|
||||||
|
|
||||||
def setSlider(self):
|
|
||||||
"""function to set sliders"""
|
|
||||||
if self.debug: qDebug("[PTM] [widget.py] [setSlider]")
|
|
||||||
if (self.sender().isEnabled() == True):
|
|
||||||
second_slider = self.sender()
|
|
||||||
order = []
|
|
||||||
for slider in self.sliders.values():
|
|
||||||
if (slider.isEnabled() == True):
|
|
||||||
order.append(slider.value())
|
|
||||||
if ((slider.value() == self.sender().value()) and (slider != self.sender())):
|
|
||||||
second_slider = slider
|
|
||||||
if (second_slider == self.sender()):
|
|
||||||
return
|
|
||||||
for value in range(len(order)):
|
|
||||||
if (order.count(value+1) == 0):
|
|
||||||
new_value = value + 1
|
|
||||||
second_slider.setValue(new_value)
|
|
||||||
|
|
||||||
|
|
||||||
def setStatus(self):
|
|
||||||
"""function to enable label"""
|
|
||||||
if self.debug: qDebug("[PTM] [widget.py] [setStatus]")
|
|
||||||
for label in self.checkboxes.keys():
|
|
||||||
if ((self.checkboxes[label].checkState() > 0) and (self.sliders[label].isEnabled() == False)):
|
|
||||||
self.lineedits[label].setEnabled(True)
|
|
||||||
self.sliders[label].setEnabled(True)
|
|
||||||
slider_label = 0
|
|
||||||
for slider in self.sliders.values():
|
|
||||||
if (slider.isEnabled() == True):
|
|
||||||
slider_label += 1
|
|
||||||
for slider in self.sliders.values():
|
|
||||||
if (slider_label > 1):
|
|
||||||
slider.setMaximum(slider.maximum()+1)
|
|
||||||
elif (slider_label == 1):
|
|
||||||
slider.setMaximum(1)
|
|
||||||
self.sliders[label].setValue(self.sliders[label].maximum())
|
|
||||||
elif ((self.checkboxes[label].checkState() == 0) and (self.sliders[label].isEnabled() == True)):
|
|
||||||
self.lineedits[label].setDisabled(True)
|
|
||||||
self.sliders[label].setDisabled(True)
|
|
||||||
for slider in self.sliders.values():
|
|
||||||
if ((slider.value() == slider.maximum()) and (slider != self.sliders[label])):
|
|
||||||
slider.setValue(self.sliders[label].value())
|
|
||||||
slider_label = 0
|
|
||||||
for slider in self.sliders.values():
|
|
||||||
if (slider.isEnabled() == True):
|
|
||||||
slider_label += 1
|
|
||||||
for slider in self.sliders.values():
|
|
||||||
if (slider_label > 0):
|
|
||||||
slider.setMaximum(slider.maximum()-1)
|
|
||||||
else:
|
|
||||||
slider.setMaximum(1)
|
|
||||||
self.sliders[label].setValue(1)
|
|
@ -1,44 +0,0 @@
|
|||||||
[Global]
|
|
||||||
IconName=system
|
|
||||||
Name=PyTextMonitor
|
|
||||||
Comment=PyTextMonitor information
|
|
||||||
|
|
||||||
[Event/battery]
|
|
||||||
Name=Battery information
|
|
||||||
Comment=Battery information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/disk]
|
|
||||||
Name=Disk information
|
|
||||||
Comment=Disk information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/graphical]
|
|
||||||
Name=GPU information
|
|
||||||
Comment=GPU information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/memory]
|
|
||||||
Name=Memory information
|
|
||||||
Comment=Memory information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/network]
|
|
||||||
Name=Network information
|
|
||||||
Comment=Network information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/player]
|
|
||||||
Name=Now playing
|
|
||||||
Comment=Now playing
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/processor]
|
|
||||||
Name=Processor information
|
|
||||||
Comment=Processor information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/system]
|
|
||||||
Name=System information
|
|
||||||
Comment=System information
|
|
||||||
Action=Popup
|
|
@ -1,544 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ui version="4.0">
|
|
||||||
<class>ConfigWindow</class>
|
|
||||||
<widget class="QWidget" name="ConfigWindow">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>700</width>
|
|
||||||
<height>594</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>700</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
|
||||||
<string>Form</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QScrollArea" name="scrollArea_advanced">
|
|
||||||
<property name="widgetResizable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="contents_advanced">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>677</width>
|
|
||||||
<height>752</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_background">
|
|
||||||
<property name="text">
|
|
||||||
<string>Enable background</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_layout">
|
|
||||||
<property name="text">
|
|
||||||
<string>Vertical layout</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_popup">
|
|
||||||
<property name="text">
|
|
||||||
<string>Enable popup on mouse click</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_leftStretch">
|
|
||||||
<property name="text">
|
|
||||||
<string>Add stretch to left/top of the layout</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_rightStretch">
|
|
||||||
<property name="text">
|
|
||||||
<string>Add stretch to right/bottom of the layout</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_timeFormat">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_timeFormat">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Custom time format</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_timeFormat">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>$dddd - long weekday
|
|
||||||
$ddd - short weekday
|
|
||||||
$dd - day
|
|
||||||
$d - day w\o zero
|
|
||||||
$MMMM - long month
|
|
||||||
$MMM - short month
|
|
||||||
$MM - month
|
|
||||||
$M - month w\o zero
|
|
||||||
$yyyy - year
|
|
||||||
$yy - short year
|
|
||||||
$hh - hours (24 only)
|
|
||||||
$h - hours w\o zero (24 only)
|
|
||||||
$mm - minutes
|
|
||||||
$m - minutes w\o zero
|
|
||||||
$ss - seconds
|
|
||||||
$s - seconds w\o zero</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_uptimeFormat">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_uptimeFormat">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Custom uptime format</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_uptimeFormat">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>$dd - uptime days
|
|
||||||
$d - uptime days without zero
|
|
||||||
$hh - uptime hours
|
|
||||||
$h - uptime hours without zero
|
|
||||||
$mm - uptime minutes
|
|
||||||
$m - uptime minutes without zero</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_tempUnits">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_tempUnits">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Temperature units</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_tempUnits">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_tempUnits">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">Celsius</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">Fahrenheit</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">Kelvin</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">Reaumur</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">cm^-1</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">kJ/mol</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">kcal/mol</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QVBoxLayout" name="layout_tempDevice">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_tempDevice">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Temperature devices</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QListWidget" name="listWidget_tempDevice">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Editable</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QVBoxLayout" name="layout_mount">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_mount">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Mount points</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QListWidget" name="listWidget_mount">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Editable</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QVBoxLayout" name="layout_hddSpeedDevice">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_hddSpeedDevice">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>HDD devices (speed)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QListWidget" name="listWidget_hddSpeedDevice">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Editable</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QVBoxLayout" name="layout_hddDevice">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_hddDevice">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>HDD devices (temp)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QListWidget" name="listWidget_hddDevice">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Editable</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_netdir">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_netdir">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Network directory</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_netdir">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>"/sys/class/net" by default</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_netdev">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_netdev">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Disable auto select device and set specified device</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Set network device</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_netdev">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="editable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_batdev">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_batdev">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Battery device</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_batdev">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>"/sys/class/power_supply/BAT0/capacity" by default</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_acOnline">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_acOnline">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>AC online tag</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_acOnline">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Line, which returns when AC is online</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_acOffline">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_acOffline">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>AC offline tag</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_acOffline">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Line, which returns when AC is offline</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_acdev">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_acdev">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>AC device</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_acdev">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>"/sys/class/power_supply/AC/online" by default</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_advanced">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<tabstops>
|
|
||||||
<tabstop>scrollArea_advanced</tabstop>
|
|
||||||
<tabstop>checkBox_background</tabstop>
|
|
||||||
<tabstop>checkBox_layout</tabstop>
|
|
||||||
<tabstop>checkBox_popup</tabstop>
|
|
||||||
<tabstop>checkBox_leftStretch</tabstop>
|
|
||||||
<tabstop>checkBox_rightStretch</tabstop>
|
|
||||||
<tabstop>lineEdit_timeFormat</tabstop>
|
|
||||||
<tabstop>lineEdit_uptimeFormat</tabstop>
|
|
||||||
<tabstop>comboBox_tempUnits</tabstop>
|
|
||||||
<tabstop>listWidget_tempDevice</tabstop>
|
|
||||||
<tabstop>listWidget_mount</tabstop>
|
|
||||||
<tabstop>listWidget_hddSpeedDevice</tabstop>
|
|
||||||
<tabstop>listWidget_hddDevice</tabstop>
|
|
||||||
<tabstop>lineEdit_netdir</tabstop>
|
|
||||||
<tabstop>checkBox_netdev</tabstop>
|
|
||||||
<tabstop>comboBox_netdev</tabstop>
|
|
||||||
<tabstop>lineEdit_batdev</tabstop>
|
|
||||||
<tabstop>lineEdit_acOnline</tabstop>
|
|
||||||
<tabstop>lineEdit_acOffline</tabstop>
|
|
||||||
<tabstop>lineEdit_acdev</tabstop>
|
|
||||||
</tabstops>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
@ -1,373 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ui version="4.0">
|
|
||||||
<class>ConfigWindow</class>
|
|
||||||
<widget class="QWidget" name="ConfigWindow">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>700</width>
|
|
||||||
<height>594</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>700</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
|
||||||
<string>Form</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QScrollArea" name="scrollArea_appearance">
|
|
||||||
<property name="widgetResizable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="contents_appearance">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>684</width>
|
|
||||||
<height>578</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_10">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_interval">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_interval">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Time interval</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_interval">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="spinBox_interval">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>10000</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>500</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>2000</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_font">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_font">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_font">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QFontComboBox" name="fontComboBox">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_fontSize">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_fontSize">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font size</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_fontSize">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="spinBox_fontSize">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>99</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>12</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_color">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_color">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_color">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_style">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_style">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font style</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_style">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_style">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">normal</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">italic</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_weight">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_weight">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font weight</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_weight">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>19</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="spinBox_weight">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>1000</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>50</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>400</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_text">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<customwidgets>
|
|
||||||
<customwidget>
|
|
||||||
<class>KColorCombo</class>
|
|
||||||
<extends>QComboBox</extends>
|
|
||||||
<header>kcolorcombo.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
@ -1,480 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ui version="4.0">
|
|
||||||
<class>ConfigWindow</class>
|
|
||||||
<widget class="QWidget" name="ConfigWindow">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>700</width>
|
|
||||||
<height>594</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>700</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
|
||||||
<string>Form</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QScrollArea" name="scrollArea_dattaengine">
|
|
||||||
<property name="widgetResizable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="contents_dattaengine">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>684</width>
|
|
||||||
<height>578</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<item row="8" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_playerSelect">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_playerSelect">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Music player</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_playerSelect">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">mpris</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">mpd</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="10" column="0">
|
|
||||||
<spacer name="spacer_dataengine">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_gpudev">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_gpudev">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>GPU device</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_gpudev">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">auto</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">disable</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">nvidia</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">ati</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_hdddev">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_hdddev">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>HDD</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_hdddev">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_hddtempCmd">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_hddtempCmd">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>hddtemp cmd</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_hddtempCmd">
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_mpdaddress">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_mpdaddress">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>MPD address</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_mpdaddress">
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_mpdport">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_mpdport">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>MPD port</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_mpdport">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>19</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="spinBox_mpdport">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>50000</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>6600</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="layout_desktopCmd">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_desktopCmd">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Desktop check cmd</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_desktopCmd">
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0">
|
|
||||||
<layout class="QVBoxLayout" name="layout_mpris">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_mprisInfo">
|
|
||||||
<property name="text">
|
|
||||||
<string><b>NOTE:</b> Player DBus interface should be an active</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_mprisSelect">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_mpris">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>MPRIS player name</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_mpris">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="editable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">auto</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">amarok</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">audacious</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">clementine</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">deadbeef</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">vlc</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">qmmp</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">xmms2</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0">
|
|
||||||
<layout class="QVBoxLayout" name="layout_pkgCommand">
|
|
||||||
<item>
|
|
||||||
<widget class="QTableWidget" name="tableWidget_pkgCommand">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Editable
|
|
||||||
del - remove item</string>
|
|
||||||
</property>
|
|
||||||
<property name="selectionMode">
|
|
||||||
<enum>QAbstractItemView::SingleSelection</enum>
|
|
||||||
</property>
|
|
||||||
<attribute name="horizontalHeaderStretchLastSection">
|
|
||||||
<bool>true</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="verticalHeaderVisible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
|
||||||
<string>Package manager</string>
|
|
||||||
</property>
|
|
||||||
</column>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
|
||||||
<string>Null lines</string>
|
|
||||||
</property>
|
|
||||||
</column>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QTableWidget" name="tableWidget_customCommand">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Editable
|
|
||||||
del - remove item</string>
|
|
||||||
</property>
|
|
||||||
<attribute name="horizontalHeaderStretchLastSection">
|
|
||||||
<bool>true</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="verticalHeaderVisible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
|
||||||
<string>Custom command</string>
|
|
||||||
</property>
|
|
||||||
</column>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<tabstops>
|
|
||||||
<tabstop>scrollArea_dattaengine</tabstop>
|
|
||||||
<tabstop>tableWidget_customCommand</tabstop>
|
|
||||||
<tabstop>lineEdit_desktopCmd</tabstop>
|
|
||||||
<tabstop>comboBox_gpudev</tabstop>
|
|
||||||
<tabstop>comboBox_hdddev</tabstop>
|
|
||||||
<tabstop>lineEdit_hddtempCmd</tabstop>
|
|
||||||
<tabstop>lineEdit_mpdaddress</tabstop>
|
|
||||||
<tabstop>spinBox_mpdport</tabstop>
|
|
||||||
<tabstop>comboBox_mpris</tabstop>
|
|
||||||
<tabstop>comboBox_playerSelect</tabstop>
|
|
||||||
<tabstop>tableWidget_pkgCommand</tabstop>
|
|
||||||
</tabstops>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
@ -1,441 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ui version="4.0">
|
|
||||||
<class>ConfigWindow</class>
|
|
||||||
<widget class="QWidget" name="ConfigWindow">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>700</width>
|
|
||||||
<height>594</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>700</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
|
||||||
<string>Form</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_tooltip">
|
|
||||||
<property name="text">
|
|
||||||
<string>CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make needed checkbox fully checked.</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QScrollArea" name="scrollArea_tooltip">
|
|
||||||
<property name="widgetResizable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="contents_tooltip">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>684</width>
|
|
||||||
<height>542</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_tooltipNum">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_tooltipNum">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Number of values for tooltips</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_tooltipNum">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>19</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="spinBox_tooltipNum">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>50</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>1000</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>25</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>100</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_background">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_background">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Background</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_background">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_background">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_cpuclockColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_cpuclockColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>CPU clock color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_cpuclockColor">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_cpuclock">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_swapColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_swapColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Swap color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_swapColor">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_swap">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_cpuColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_cpuColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>CPU color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_cpuColor">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_cpu">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_downColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_downColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Download speed color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_downColor">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_down">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_memColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_memColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Memory color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_memColor">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_mem">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_upColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_upColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Upload speed color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_upColor">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="KColorCombo" name="kcolorcombo_up">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_tooltip">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>289</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<customwidgets>
|
|
||||||
<customwidget>
|
|
||||||
<class>KColorCombo</class>
|
|
||||||
<extends>QComboBox</extends>
|
|
||||||
<header>kcolorcombo.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
|
||||||
<tabstops>
|
|
||||||
<tabstop>scrollArea_tooltip</tabstop>
|
|
||||||
<tabstop>spinBox_tooltipNum</tabstop>
|
|
||||||
<tabstop>checkBox_background</tabstop>
|
|
||||||
<tabstop>kcolorcombo_background</tabstop>
|
|
||||||
<tabstop>kcolorcombo_cpuclock</tabstop>
|
|
||||||
<tabstop>kcolorcombo_swap</tabstop>
|
|
||||||
<tabstop>kcolorcombo_cpu</tabstop>
|
|
||||||
<tabstop>kcolorcombo_down</tabstop>
|
|
||||||
<tabstop>kcolorcombo_mem</tabstop>
|
|
||||||
<tabstop>kcolorcombo_up</tabstop>
|
|
||||||
</tabstops>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
File diff suppressed because it is too large
Load Diff
@ -1,27 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Py Text Monitor
|
|
||||||
Comment=A minimalistic Plasmoid script written on Python2
|
|
||||||
Comment[en]=A minimalistic Plasmoid script written on Python2
|
|
||||||
Comment[es]=Un plasmoide minimalista escrito en Python2
|
|
||||||
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
|
|
||||||
Comment[pt_BR]=Um script Plasmoid escrito em Python2
|
|
||||||
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
|
|
||||||
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
|
|
||||||
X-KDE-ServiceTypes=Plasma/Applet
|
|
||||||
Type=Service
|
|
||||||
Icon=utilities-system-monitor
|
|
||||||
|
|
||||||
X-Plasma-API=python
|
|
||||||
X-Plasma-MainScript=code/main.py
|
|
||||||
X-Plasma-RequiredExtensions=LaunchApp,LocalIO,FileDialog
|
|
||||||
|
|
||||||
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
|
||||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
|
||||||
X-KDE-PluginInfo-Name=pytextmonitor
|
|
||||||
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
|
||||||
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
|
|
||||||
X-KDE-PluginInfo-Category=System Information
|
|
||||||
X-KDE-PluginInfo-Depends=
|
|
||||||
X-KDE-PluginInfo-License=GPLv3
|
|
||||||
X-KDE-PluginInfo-EnabledByDefault=true
|
|
@ -1,26 +0,0 @@
|
|||||||
# set project name
|
|
||||||
set (SUBPROJECT pytextmonitor)
|
|
||||||
|
|
||||||
# dependencies
|
|
||||||
find_package(Gettext REQUIRED)
|
|
||||||
|
|
||||||
if (NOT GETTEXT_MSGFMT_EXECUTABLE)
|
|
||||||
message(FATAL_ERROR "Please install the msgfmt binary")
|
|
||||||
endif (NOT GETTEXT_MSGFMT_EXECUTABLE)
|
|
||||||
|
|
||||||
file (GLOB _po_files *.po)
|
|
||||||
|
|
||||||
set (_gmoFiles)
|
|
||||||
|
|
||||||
foreach (_current_PO_FILE ${_po_files})
|
|
||||||
get_filename_component (_lang ${_current_PO_FILE} NAME_WE)
|
|
||||||
set (_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
|
|
||||||
add_custom_command (OUTPUT ${_gmoFile}
|
|
||||||
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE}
|
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
||||||
DEPENDS ${_current_PO_FILE})
|
|
||||||
|
|
||||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}/contents/locale/${_lang}/LC_MESSAGES" RENAME ${SUBPROJECT}.mo)
|
|
||||||
list (APPEND _gmoFiles ${_gmoFile})
|
|
||||||
endforeach (_current_PO_FILE)
|
|
||||||
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
|
|
@ -1,674 +0,0 @@
|
|||||||
# Copyright (C) 2014
|
|
||||||
# This file is distributed under the same license as the PyTextMonitor package.
|
|
||||||
#
|
|
||||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
|
||||||
"Language-Team: English <kde-russian@lists.kde.ru>\n"
|
|
||||||
"Language: ru\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
||||||
"X-Generator: Lokalize 1.5\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr "Widget"
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr "Advanced"
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr "Tooltip"
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr "Appearance"
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr "DataEngine"
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr "Run ksysguard"
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr "Show README"
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr "Update text"
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr "Form"
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr "Enable background"
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr "Vertical layout"
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr "Enable popup on mouse click"
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr "Add stretch to left/top of the layout"
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr "Add stretch to right/bottom of the layout"
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr "Custom time format"
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr "Custom uptime format"
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr "Temperature units"
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr "Temperature devices"
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Add"
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr "Mount points"
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr "HDD (speed)"
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr "HDD (temp)"
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr "Network directory"
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr "\"/sys/class/net\" by default"
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr "Disable auto select device and set specified device"
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr "Set network device"
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr "Battery device"
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr "AC online tag"
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr "Line, which returns when AC is online"
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr "AC offline tag"
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr "Line, which returns when AC is offline"
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr "AC device"
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr "Time interval"
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr "Font"
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr "Font size"
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr "Font color"
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr "Font style"
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr "Font weight"
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr "Custom command"
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr "Custom command to run"
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr "GPU device"
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr "HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr "hddtemp cmd"
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr "MPD address"
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr "MPD port"
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr "Package manager"
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr "Number of null lines"
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr "Music player"
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr "Desktop check cmd"
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr "MPRIS player name"
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr "Number of values for tooltips"
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr "Background"
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr "CPU clock color"
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr "Swap color"
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr "CPU color"
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr "Download speed color"
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr "Memory color"
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr "Upload speed color"
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr "Time"
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr "Uptime"
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr "CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr "CPU Clock"
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr "Temperature"
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr "GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr "$gpu - gpu usage, %"
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr "GPU Temp"
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr "$gputemp - physical temperature on GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr "Memory"
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr "Swap"
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr "HDD speed"
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr "HDD temp"
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr "Network"
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr "Battery"
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr "Processes"
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr "Custom"
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr "Current desktop"
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr "Evgeniy Alekseev"
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr "esalexeev@gmail.com"
|
|
||||||
|
|
||||||
#~ msgid "Widget settings"
|
|
||||||
#~ msgstr "Widget settings"
|
|
||||||
|
|
||||||
#~ msgid "pacman -Qu"
|
|
||||||
#~ msgstr "pacman -Qu"
|
|
||||||
|
|
||||||
#~ msgid "apt-show-versions -u -b"
|
|
||||||
#~ msgstr "apt-show-versions -u -b"
|
|
||||||
|
|
||||||
#~ msgid "aptitude search '~U'"
|
|
||||||
#~ msgstr "aptitude search '~U'"
|
|
||||||
|
|
||||||
#~ msgid "yum list updates"
|
|
||||||
#~ msgstr "yum list updates"
|
|
||||||
|
|
||||||
#~ msgid "pkg_version -I -l '<'"
|
|
||||||
#~ msgstr "pkg_version -I -l '<'"
|
|
||||||
|
|
||||||
#~ msgid "urpmq --auto-select"
|
|
||||||
#~ msgstr "urpmq --auto-select"
|
|
||||||
|
|
||||||
#~ msgid "amarok"
|
|
||||||
#~ msgstr "amarok"
|
|
||||||
|
|
||||||
#~ msgid "mpd"
|
|
||||||
#~ msgstr "mpd"
|
|
||||||
|
|
||||||
#~ msgid "qmmp"
|
|
||||||
#~ msgstr "qmmp"
|
|
||||||
|
|
||||||
#~ msgid "auto"
|
|
||||||
#~ msgstr "auto"
|
|
||||||
|
|
||||||
#~ msgid "nvidia"
|
|
||||||
#~ msgstr "nvidia"
|
|
||||||
|
|
||||||
#~ msgid "ati"
|
|
||||||
#~ msgstr "ati"
|
|
||||||
|
|
||||||
#~ msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
|
||||||
#~ msgstr "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "$ds - uptime days\n"
|
|
||||||
#~ "$hs - uptime hours\n"
|
|
||||||
#~ "$ms - uptime minutes"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$ds - uptime days\n"
|
|
||||||
#~ "$hs - uptime hours\n"
|
|
||||||
#~ "$ms - uptime minutes"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Command to run, example:\n"
|
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Command to run, example:\n"
|
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
|
||||||
|
|
||||||
#~ msgid "@@/;@@ - mount point usage, %"
|
|
||||||
#~ msgstr "@@/;@@ - mount point usage, %"
|
|
||||||
|
|
||||||
#~ msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
|
||||||
#~ msgstr "@@/dev/sda@@ - physical temperature on /dev/sda"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "$net - network speed, down/up, KB/s\n"
|
|
||||||
#~ "$netdev - current network device\n"
|
|
||||||
#~ "@@eth0@@ - disable auto select device and set specified device"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$net - network speed, down/up, KB/s\n"
|
|
||||||
#~ "$netdev - current network device\n"
|
|
||||||
#~ "@@eth0@@ - disable auto select device and set specified device"
|
|
@ -1,630 +0,0 @@
|
|||||||
# Copyright (C) 2014
|
|
||||||
# This file is distributed under the same license as the PyTextMonitor package.
|
|
||||||
#
|
|
||||||
# Ernesto Avilés Vzqz <whippiii@gmail.com>, 2014.
|
|
||||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: 2014-06-05 10:21+0400\n"
|
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
|
||||||
"Language-Team: Spanish <kde-spanish@lists.kde.ru>\n"
|
|
||||||
"Language: es\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
||||||
"X-Generator: Lokalize 1.5\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr "Widget"
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr "Avanzado"
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr "Ventana emergente"
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr "Apariencia"
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr "DataEngine"
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr "Ejecutar ksysguard"
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr "Mostrar el README"
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr "Actualizar texto"
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr "Formulario"
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr "Orientación vertical"
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr "Habilitar ventana emergente al hacer clic"
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr "Añadir extensión a la izquierda/superior de la distribución"
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr "Añadir extensión a la derecha/inferior de la distribución"
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr "Formato personalizado para la hora"
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dddd - día de la semana largo\n"
|
|
||||||
"$ddd - día de la semana corto\n"
|
|
||||||
"$dd - día\n"
|
|
||||||
"$d - día (sin ceros)\n"
|
|
||||||
"$MMMM - mes largo\n"
|
|
||||||
"$MMM - mes corto\n"
|
|
||||||
"$MM - mes\n"
|
|
||||||
"$M - mes (sin ceros)\n"
|
|
||||||
"$yyyy - año\n"
|
|
||||||
"$yy - año largo\n"
|
|
||||||
"$hh - horas (solo formato de 24 horas)\n"
|
|
||||||
"$h - horas (sin ceros, solo formato de 24 horas)\n"
|
|
||||||
"$mm - minutos\n"
|
|
||||||
"$m - minutos (sin ceros)\n"
|
|
||||||
"$ss - segundos\n"
|
|
||||||
"$s - segundos (sin ceros)"
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr "Formato personalizado para el tiempo de actividad del sistema"
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dd - días\n"
|
|
||||||
"$d - días (sin ceros)\n"
|
|
||||||
"$hh - horas\n"
|
|
||||||
"$h - horas (sin ceros)\n"
|
|
||||||
"$mm - minutos\n"
|
|
||||||
"$m - minutos (sin ceros)"
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr "Unidades de temperatura"
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr "Dispositivos de temperatura"
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Añadir"
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - eliminar elemento"
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr "Puntos de montaje"
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr "Disco duro (velocidad)"
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr "Disco duro (temperatura)"
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr "Directorio de la red"
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr "\"/sys/class/net\" por defecto"
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr "Inhabilitar selección automática del dispositivo y especificar uno"
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr "Establecer dispositivo de red"
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr "Dispositivo de batería"
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por defecto"
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr "Etiqueta para alimentación conectada"
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr "Línea que devuelve si la alimentación está conectada"
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr "Etiqueta para la alimentación desconectada"
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr "Línea que devuelve si la alimentación está desconectada"
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr "Dispositivo de alimentación"
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr "Intervalo de tiempo"
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr "Fuente"
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr "Tamaño de fuente"
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr "Color de fuente"
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr "Estilo de fuente"
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr "Grosor de la fuente"
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr "Comando personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr "Comando personalizado para ejecutar"
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr "Dispositivo de GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr "Disco duro"
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr "Comando hddtemp"
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr "Dirección de MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr "Puerto de MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr "Gestor de paquetes"
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr "Número de líneas nulas"
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr "Reproductor de música"
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
"Las etiquetas para CPU, frecuencia de la CPU, memoria, swap y red soportan "
|
|
||||||
"ventanas emergentes. Para habilitarlas habilite la caja de seleccione la "
|
|
||||||
"casilla de verificación pertinente."
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr "Número de valores para las ventanas emergentes"
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr "Color de la frecuencia de la CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr "Color de la swap"
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr "Color de la CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr "Color de la velocidad de recepción"
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr "Color de la memoria"
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr "Color de la velocidad de envío"
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
"Puede encontrar información detallada en el <a href=\"http://arcanis.name/"
|
|
||||||
"projects/pytextmonitor/\">sitio del proyecto</a>"
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr "Hora"
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
"$time - hora en el formato por defecto\n"
|
|
||||||
"$isotime - hora en formato ISO\n"
|
|
||||||
"$shorttime - hora en formato corto\n"
|
|
||||||
"$longtime - hora en formato largo\n"
|
|
||||||
"$custom - hora en formato personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr "Tiempo de actividad"
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
"$uptime - tiempo de actividad del sistema\n"
|
|
||||||
"$custom - formato personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr "CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
"$cpu - carga total de la CPU, %\n"
|
|
||||||
"$cpu0 - carga de la CPU para el núcleo 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - carga de la CPU para el núcleo 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - carga de la CPU para el núcleo N, %"
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr "Frecuencia de la CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
"$cpucl - frecuencia de la CPU promedio, MHz\n"
|
|
||||||
"$cpucl0 - frecuencia de la CPU para el núcleo 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - frecuencia de la CPU para el núcleo 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - frecuencia de la CPU para el núcleo N, MHz"
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr "Temperatura"
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr ""
|
|
||||||
"$tempN - temperatura física en el dispositivo N (a partir de 0). Ejemplo: "
|
|
||||||
"$temp0"
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr "GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr "$gpu - uso de la GPU, %"
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr "Temperatura de la GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr "$gputemp - temperatura física de la GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr "Memoria"
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$mem - uso de la RAM, %\n"
|
|
||||||
"$memmb - uso de la RAM, MB\n"
|
|
||||||
"$memgb - uso de la RAM, GB\n"
|
|
||||||
"$memtotmb - uso total de la RAM, MB\n"
|
|
||||||
"$memtotgb - uso total de la RAM, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr "Swap"
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$swap - uso de la swap, %\n"
|
|
||||||
"$swapmb - uso de la swap, MB\n"
|
|
||||||
"$swapgb - uso de la swap, GB\n"
|
|
||||||
"$swaptotmb - uso total de la swap, MB\n"
|
|
||||||
"$swaptotgb - uso total de la swap, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddN - uso para el punto de montaje N (a partir de 0), %. Ejemplo: $hdd0\n"
|
|
||||||
"$hddmbN - uso para el punto de montaje N (a partir de 0), MB. Ejemplo: "
|
|
||||||
"$hddmb0\n"
|
|
||||||
"$hddgbN - uso para el punto de montaje N (a partir de 0), GB. Ejemplo: "
|
|
||||||
"$hddgb0\n"
|
|
||||||
"$hddtotmbN - uso total para el punto de montaje N (a partir de 0), MB. "
|
|
||||||
"Ejemplo: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - uso total para el punto de montaje N (a partir de 0), GB. "
|
|
||||||
"Ejemplo: $hddtotgb0"
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr "Velocidad del disco duro"
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddrN - velocidad de lectura del disco N (a partir de 0), KB/s. Por "
|
|
||||||
"ejemplo: $hddr0\n"
|
|
||||||
"$hddwN - velocidad de escritura del disco N (a partir de 0), KB/s. Por "
|
|
||||||
"ejemplo: $hddw0"
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr "Temperatura del disco duro"
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddtempN - temperatura física en el dispositivo N (a partir de 0). Ejemplo: "
|
|
||||||
"$hddtemp0"
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr "Red"
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
"$down - velocidad de recepción, KB/s\n"
|
|
||||||
"$up - velocidad de envío, KB/s\n"
|
|
||||||
"$netdev - dispositivo de red actual"
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr "Batería"
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
"$bat - carga de la batería, %\n"
|
|
||||||
"$ac - estado de la alimentación"
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
"$album - álbum de la canción\n"
|
|
||||||
"$artist - artista de la canción\n"
|
|
||||||
"$progress - progreso de la canción\n"
|
|
||||||
"$time - duración de la canción\n"
|
|
||||||
"$title - título de la canción"
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr "Procesos"
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
"$pscount - número de procesos en ejecución\n"
|
|
||||||
"$pstotal - total de procesos en ejecución\n"
|
|
||||||
"$ps - listado de procesos en ejecución separados por coma"
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
"$pkgcountN - número de paquetes con actualizaciones disponibles, comando N. "
|
|
||||||
"Por ejemplo $pkgcount0"
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr "Personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr ""
|
|
||||||
"$customN - obtener la salida de ejecución del comando personalizado N (a "
|
|
||||||
"partir de 0). Por ejemplo: $custom0"
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr "Tu nombre"
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr "Tus correos"
|
|
||||||
|
|
||||||
#~ msgid "Widget settings"
|
|
||||||
#~ msgstr "Configuración del componente"
|
|
||||||
|
|
||||||
#~ msgid "pacman -Qu"
|
|
||||||
#~ msgstr "pacman -Qu"
|
|
||||||
|
|
||||||
#~ msgid "apt-show-versions -u -b"
|
|
||||||
#~ msgstr "apt-show-versions -u -b"
|
|
||||||
|
|
||||||
#~ msgid "aptitude search '~U'"
|
|
||||||
#~ msgstr "aptitude search '~U'"
|
|
||||||
|
|
||||||
#~ msgid "yum list updates"
|
|
||||||
#~ msgstr "yum list updates"
|
|
||||||
|
|
||||||
#~ msgid "pkg_version -I -l '<'"
|
|
||||||
#~ msgstr "pkg_version -I -l '<'"
|
|
||||||
|
|
||||||
#~ msgid "urpmq --auto-select"
|
|
||||||
#~ msgstr "urpmq --auto-select"
|
|
@ -1,43 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
BASEDIR="../contents" # root of translatable sources
|
|
||||||
PROJECT="pytextmonitor" # project name
|
|
||||||
BUGADDR="http://kde-look.org/content/show.php?content=157124" # MSGID-Bugs
|
|
||||||
WDIR=$(pwd) # working dir
|
|
||||||
SATELLITE_LIST=satellite.list
|
|
||||||
BACKGROUND_LIST=background.list
|
|
||||||
|
|
||||||
echo "Preparing rc files"
|
|
||||||
cd "${BASEDIR}"
|
|
||||||
find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' -o -name '*.py' | sort > "${WDIR}/rcfiles.list"
|
|
||||||
xargs --arg-file=${WDIR}/rcfiles.list extractrc > "${WDIR}/rc.cpp"
|
|
||||||
echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> "${WDIR}/rc.cpp"
|
|
||||||
echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> "${WDIR}/rc.cpp"
|
|
||||||
echo "Done preparing rc files"
|
|
||||||
|
|
||||||
echo "Extracting messages"
|
|
||||||
cd "${WDIR}"
|
|
||||||
cd "${BASEDIR}"
|
|
||||||
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.py' | sort > "${WDIR}/infiles.list"
|
|
||||||
echo "rc.cpp" >> "${WDIR}/infiles.list"
|
|
||||||
|
|
||||||
cd "${WDIR}"
|
|
||||||
xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
|
|
||||||
-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
|
|
||||||
--msgid-bugs-address="${BUGADDR}" --language=Python \
|
|
||||||
--files-from=infiles.list -D "${BASEDIR}" -D "${WDIR}" -o "${PROJECT}.pot" || { echo "error while calling xgettext. aborting."; exit 1; }
|
|
||||||
echo "Done extracting messages"
|
|
||||||
|
|
||||||
echo "Merging translations"
|
|
||||||
catalogs=$(find . -name '*.po')
|
|
||||||
for cat in $catalogs; do
|
|
||||||
echo $cat
|
|
||||||
msgmerge -o "$cat.new" "$cat" "${PROJECT}.pot"
|
|
||||||
mv "$cat.new" "$cat"
|
|
||||||
done
|
|
||||||
echo "Done merging translations"
|
|
||||||
|
|
||||||
echo "Cleaning up"
|
|
||||||
cd "${WDIR}"
|
|
||||||
rm -f rcfiles.list infiles.list rc.cpp
|
|
||||||
echo "Done"
|
|
||||||
|
|
@ -1,682 +0,0 @@
|
|||||||
# Copyright (C) 2014
|
|
||||||
# This file is distributed under the same license as the PyTextMonitor package.
|
|
||||||
#
|
|
||||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
|
||||||
# Mermouy <mermouy@gmail.com>, 2014.
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: 2014-06-05 19:24+0400\n"
|
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
|
||||||
"Language-Team: French <kde-french@lists.kde.ru>\n"
|
|
||||||
"Language: fr\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
||||||
"X-Generator: Lokalize 1.5\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr "Widget"
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr "Avancé"
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr "Conseil"
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr "Apparence"
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr "Moteur de données"
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr "Lancer ksysguard"
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr "Voir le README"
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr "Mettre à jour le texte"
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr "Entrées"
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr "Positionnement vertical"
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr "Popup lors d'un click souris"
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr "Étirer le positionnement vers haut/gauche"
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr "Étirer le positionnement vers bas/droite"
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr "Format de l'heure personnalisé"
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dddd - Jour de la semaine long\n"
|
|
||||||
"$ddd - Jour de la semaine court\n"
|
|
||||||
"$dd - jour\n"
|
|
||||||
"$d - jour sans zéro\n"
|
|
||||||
"$MMMM - mois long\n"
|
|
||||||
"$MMM - mois court\n"
|
|
||||||
"$MM - mois\n"
|
|
||||||
"$M - mois sans zéro\n"
|
|
||||||
"$yyyy - année\n"
|
|
||||||
"$yy - année courte\n"
|
|
||||||
"$hh - heures (24 uniquement)\n"
|
|
||||||
"$h - heures sans zéro (24 uniquement)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes sans zéro\n"
|
|
||||||
"$ss - secondes\n"
|
|
||||||
"$s - secondes sans zéro"
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr "Temps de fonctionnement personalisé"
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dd - temps de fonctionnement en jours\n"
|
|
||||||
"$d - temps de fonctionnement en jours sans zéro\n"
|
|
||||||
"$hh - temps de fonctionnement en heures\n"
|
|
||||||
"$h - temps de fonctionnement en heures sans zéro\n"
|
|
||||||
"$mm - temps de fonctionnement en minutes\n"
|
|
||||||
"$m - temps de fonctionnement en minutes sans zéro"
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr "Unités de température"
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr "Temperature des périphériques"
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Ajouter"
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
"Modifiable\n"
|
|
||||||
"del - supprimer un élément"
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr "Points de montage"
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr "Périphériques HDD (la vitesse)"
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr "Périphériques HDD (température)"
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr "Voisinage réseau"
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr "\"/sys/class/net\" par défaut"
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr ""
|
|
||||||
"Désactiver la sélection automatique de périphériques et le sélectionner "
|
|
||||||
"manuellement"
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr "Sélectionner le périphérique réseau"
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr "Batterie"
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" par défaut"
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr "Tag alimentation branchée"
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr "Ligne qui est renvoyée lorsque l'alimentation est branchée"
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr "Tag alimentation débranchée"
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr "Ligne, qui est renvoyée lorsque l'alimentation est débranchée"
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr "Périphérique d'alimentation"
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" par défaut"
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr "Intervalle"
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr "Police"
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr "Taille de la police"
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr "Couleur de la police"
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr "Style de la police"
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr "Épaisseur de la police"
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr "Commande personnalisée"
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr "Commande personnalisée à exécuter"
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr "Périphérique graphique"
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr "Disque dur"
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr "Commande de température HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr "Adresse MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr "Port MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr "Gestionnaire de paquets"
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr "Nombre d'éléments pour les conseils"
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr "Lecteur audio"
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
"CPU, horloge du CPU, mémoire vive, mémoire swap et noms réseau supportent "
|
|
||||||
"les conseils visuels. Pour les activer cochez simplement les cases "
|
|
||||||
"correspondantes."
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr "Nombre d'éléments pour les conseils"
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr "Couleur de l'horloge processeur"
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr "Couleur de la mémoire d'échange"
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr "Couleur processeur"
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr "Couleur de la vitesse de téléchargement"
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr "Couleur de la mémoire"
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr "Couleur du téléversement"
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
"D'avantage d'informations se trouvent sur <a href=\"http://arcanis.name/"
|
|
||||||
"projects/pytextmonitor/\">la page du projet</a>"
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr "Durée"
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
"$time - l'heure au format par défaut\n"
|
|
||||||
"$isotime - l'heure au format ISO\n"
|
|
||||||
"$shorttime - l'heure format court\n"
|
|
||||||
"$longtime - l'heure au format log\n"
|
|
||||||
"$custom - l'heure, format personnalisé"
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr "temps de fonctionnement"
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
"$uptime - temps de fonctionnement\n"
|
|
||||||
"$custom - format personnalisé"
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr "CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
"$cpu - charge totale du processeur, %\n"
|
|
||||||
"$cpu0 - charge du processeur pour le coeur 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - charge processeur pour le coeur N, %"
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr "Horloge processeur"
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
"$cpucl - Moyenne de l'horloge du processeur, MHz\n"
|
|
||||||
"$cpucl0 - Horloge du coeur 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - Horloge du coeur N, MHz"
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr "Température"
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr ""
|
|
||||||
"$tempN - Température physique du périphérique N (à partir de 0). Exemple: "
|
|
||||||
"$temp0"
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr "Processeur graphique"
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr "$gpu - utilisation du processeur graphique, %"
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr "Temp du processeur graphique"
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr "$gputemp - Température physique du processeur graphique"
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr "Mémoire"
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$mem - utilisation de la RAM, %\n"
|
|
||||||
"$memmb - utilisation de la RAM, MB\n"
|
|
||||||
"$memgb - utilisation de la RAM, GB\n"
|
|
||||||
"$memtotmb - RAM, MB\n"
|
|
||||||
"$memtotgb - RAM, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr "mémoire d'échange (swap)"
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$swap - utilisation swap, %\n"
|
|
||||||
"$swapmb - utilisation swap, MB\n"
|
|
||||||
"$swapgb - utilisation swap, MB\n"
|
|
||||||
"$swaptotmb - swap, MB\n"
|
|
||||||
"$swaptotgb - swap, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddN - utilisation du point de montage N (à partir de 0), %. Exemple: "
|
|
||||||
"$hdd0\n"
|
|
||||||
"$hddmbN - utilisation du point de montage N (à partir de 0), MB. Exemple: "
|
|
||||||
"$hddmb0\n"
|
|
||||||
"$hddgbN - utilisation du point de montage N (à partir de 0), GB. Exemple: "
|
|
||||||
"$hddgb0\n"
|
|
||||||
"$hddtotmbN - taille totale de point de montage N (à partir de 0), MB. "
|
|
||||||
"Exemple: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - taille totale de point de montage N (à partir de 0), GB. "
|
|
||||||
"Exemple: $hddtotgb0"
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr "Vitesse HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddrN - vitesse de lecture HDD N (à partir de 0), KB/s. Exemple: $hddr0\n"
|
|
||||||
"$hddwN - vitesse d'écriture HDD N (à partir de 0), KB/s. Exemple: $hddw0"
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr "Température HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddtempN - température physique du périphérique N (à partir de 0). Exemple: "
|
|
||||||
"$hddtemp0"
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr "Réseau"
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
"$down - vitesse de téléchargement, KB/s\n"
|
|
||||||
"$up - vitesse ascendante, KB/s\n"
|
|
||||||
"$netdev - périphérique réseau actuel"
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr "Batterie"
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
"$bat - charge de la batterie, %\n"
|
|
||||||
"$ac - état de l'alimentation"
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
"$album - album du morceau\n"
|
|
||||||
"$artist - artiste du morceau\n"
|
|
||||||
"$progress - avancement du morceau\n"
|
|
||||||
"$time - durée du morceau\n"
|
|
||||||
"$title - titre du morceau"
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr "Processus"
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
"$pscount - nombre de processus actifs\n"
|
|
||||||
"$pstotal - nombre total de processus actifs\n"
|
|
||||||
"$ps - liste des processus actifs séparés par une virgule"
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
"$pkgcountN - nombre de paquets à mettre à jour, commande N. Par exemple "
|
|
||||||
"$pkgcount0"
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr "Personnalisé"
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr ""
|
|
||||||
"$customN - sortie d'une commande personnelle N (à partir de 0). Exemple: "
|
|
||||||
"$custom0"
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr "Evgeniy Alekseev"
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr "esalexeev@gmail.com"
|
|
||||||
|
|
||||||
#~ msgid "Widget settings"
|
|
||||||
#~ msgstr "Paramètres de l'applet"
|
|
||||||
|
|
||||||
#~ msgid "pacman -Qu"
|
|
||||||
#~ msgstr "pacman -Qu"
|
|
||||||
|
|
||||||
#~ msgid "apt-show-versions -u -b"
|
|
||||||
#~ msgstr "apt-show-versions -u -b"
|
|
||||||
|
|
||||||
#~ msgid "aptitude search '~U'"
|
|
||||||
#~ msgstr "aptitude search '~U'"
|
|
||||||
|
|
||||||
#~ msgid "yum list updates"
|
|
||||||
#~ msgstr "yum list updates"
|
|
||||||
|
|
||||||
#~ msgid "pkg_version -I -l '<'"
|
|
||||||
#~ msgstr "pkg_version -I -l '<'"
|
|
||||||
|
|
||||||
#~ msgid "urpmq --auto-select"
|
|
||||||
#~ msgstr "urpmq --auto-select"
|
|
||||||
|
|
||||||
#~ msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$hddN - espace occupé sur le point de montage N (à partir de 0), %. "
|
|
||||||
#~ "Exemple: $hdd0"
|
|
||||||
|
|
||||||
#~ msgid "amarok"
|
|
||||||
#~ msgstr "amarok"
|
|
||||||
|
|
||||||
#~ msgid "mpd"
|
|
||||||
#~ msgstr "mpd"
|
|
||||||
|
|
||||||
#~ msgid "qmmp"
|
|
||||||
#~ msgstr "qmmp"
|
|
||||||
|
|
||||||
#~ msgid "auto"
|
|
||||||
#~ msgstr "auto"
|
|
||||||
|
|
||||||
#~ msgid "nvidia"
|
|
||||||
#~ msgstr "nvidia"
|
|
||||||
|
|
||||||
#~ msgid "ati"
|
|
||||||
#~ msgstr "ati"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "$ds - uptime days\n"
|
|
||||||
#~ "$hs - uptime hours\n"
|
|
||||||
#~ "$ms - uptime minutes"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$ds - uptime days\n"
|
|
||||||
#~ "$hs - uptime hours\n"
|
|
||||||
#~ "$ms - uptime minutes"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Command to run, example:\n"
|
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Command to run, example:\n"
|
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
|
||||||
|
|
||||||
#~ msgid "@@/;@@ - mount point usage, %"
|
|
||||||
#~ msgstr "@@/;@@ - mount point usage, %"
|
|
||||||
|
|
||||||
#~ msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
|
||||||
#~ msgstr "@@/dev/sda@@ - physical temperature on /dev/sda"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "$net - network speed, down/up, KB/s\n"
|
|
||||||
#~ "$netdev - current network device\n"
|
|
||||||
#~ "@@eth0@@ - disable auto select device and set specified device"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$net - network speed, down/up, KB/s\n"
|
|
||||||
#~ "$netdev - current network device\n"
|
|
||||||
#~ "@@eth0@@ - disable auto select device and set specified device"
|
|
@ -1,606 +0,0 @@
|
|||||||
# Copyright (C) 2014
|
|
||||||
# This file is distributed under the same license as the PyTextMonitor package.
|
|
||||||
#
|
|
||||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: 2014-06-09 01:47+0400\n"
|
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
|
||||||
"Language-Team: Brazilian Portuguese <kde-russian@lists.kde.ru>\n"
|
|
||||||
"Language: pt_BR\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
||||||
"X-Generator: Lokalize 1.5\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr "Widget"
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr "Avançado"
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr "Dica de contexto"
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr "Aparência"
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr "Engine de dados"
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr "Abrir ksysguard"
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr "Mostrar README"
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr "Atualizar texto"
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr "Forma"
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr "Layout vertical"
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr "Ativar popup no clique do mouse"
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr "Adicionar esticamento à esquerda/topo do layout"
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr "Adicionar esticamento à direita/inferior do layout"
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr "Formato de hora personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dddd - dia da semana completo\n"
|
|
||||||
"$ddd - dia da semana curto\n"
|
|
||||||
"$dd - dia\n"
|
|
||||||
"$d - dia com zero\n"
|
|
||||||
"$MMMM - mês completo\n"
|
|
||||||
"$MMM - mês curto\n"
|
|
||||||
"$MM - mês\n"
|
|
||||||
"$M - mês com zero\n"
|
|
||||||
"$hh - horas (somente 24)\n"
|
|
||||||
"$h - horas sem zeros (somente 24)\n"
|
|
||||||
"$mm - minutos\n"
|
|
||||||
"$m - minutos sem zeros\n"
|
|
||||||
"$ss - segundos\n"
|
|
||||||
"$s segundos sem zeros"
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr "Tempo em atividade com formato personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dd - tempo em atividade em dias\n"
|
|
||||||
"$d - tempo em atividade em dias sem zeros\n"
|
|
||||||
"$hh - tempo em atividade em horas\n"
|
|
||||||
"$h - tempo em atividade em horas sem zeros\n"
|
|
||||||
"$mm - tempo em atividade em minutos\n"
|
|
||||||
"$m - tempo em atividade em minuto sem zeros"
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr "Unidades de temperatura"
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr "Dispositivos de temperatura"
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Adicionar"
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
"Editável\n"
|
|
||||||
"del - remover item"
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr "Pontos de montagem"
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr "Dispositivos HDD (velocidade) "
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr "Dispositivos HDD (temperatura)"
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr "Diretório de rede"
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr ""
|
|
||||||
"Desativar auto seleção de dispositivos e escolher um dispositivo específico"
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr "Escolher dispositivo de rede"
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr "Dispositivo do carregador"
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por padrão"
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr "Rótulo com carregador conectado"
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr "Linha, que aparece quando o carregador está conectado"
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr "Rótulo com carregador desconectado"
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr "Linha, que aparece quando o carregador está offline"
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr "Dispositivo do carregador"
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr "Intervalo de tempo"
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr "Tamanho da fonte"
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr "Tamanho da fonte"
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr "Cor da fonte"
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr "Estilo da fonte"
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr "Peso da fonte"
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr "Comando personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr "Comando personalizado para usar"
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr "Dispositivo GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr "HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr "comando hddtemp "
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr "Endereço do MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr "Porta do MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr "Gerenciador de pacotes"
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr "Número de valores para dicas de contexto"
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr "Reprodutor de áudio"
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
"Os rótulos de CPU, frequência de GPU, memória, swap e rede suportam dica de "
|
|
||||||
"contexto gráfica. Para ativá-los, basta selecionar a caixa necessária."
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr "Número de valores para dicas de contexto"
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr "Cor da frequência da GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr "Cor do swap"
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr "Cor da frequência da GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr "Cor da velocidade de download"
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr "Cor da memória"
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr "Cor da velocidade de upload"
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
"Informações detalhadas podem ser encontradas na <a href=\"http://arcanis."
|
|
||||||
"name/projects/pytextmonitor/\">página do projeto</a>"
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr "Hora"
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
"$time - hora no formato padrão\n"
|
|
||||||
"$isotime - hora no formato ISO\n"
|
|
||||||
"$shorttime - hora em formato curto \n"
|
|
||||||
"$longtime - hora em formato completo\n"
|
|
||||||
"$custom - hora em formato personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr "Tempo em atividade"
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
"$uptime - tempo em atividade do sistema\n"
|
|
||||||
"$custom - formato personalizado "
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr "CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
"$cpu - carga total da CPU, %\n"
|
|
||||||
"$cpu0 - carga total para o núcleo 0 da CPU, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - carga total para o núcleo 9 da CPU, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - carga total para o núcleo N da CPU, %"
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr "Frequência da CPU "
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
"$cpucl - frequência média da CPU, MHz\n"
|
|
||||||
"$cpucl0 - frequência da CPU para o núcleo 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - frequência da CPU para o núcleo 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - frequência da CPU para o núcleo N, MHz"
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr "Temperatura "
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddtempN - temperatura física no dispositivo N (começando por 0). Exemplo: "
|
|
||||||
"$hddtemp0"
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr "GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr "$gpu - uso da GPU, %"
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr "Temperatura da GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr "$gputemp - temperatura física da GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr "Memória"
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$mem - uso de RAM, %\n"
|
|
||||||
"$memmb - uso de RAM, MB\n"
|
|
||||||
"$memgb - uso de RAM, GB\n"
|
|
||||||
"$memtotmb - RAM total, MB\n"
|
|
||||||
"$memtotgb - RAM total, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr "Swap"
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$swap - uso de swap, %\n"
|
|
||||||
"$swapmb - uso de swap, MB\n"
|
|
||||||
"$swapgb - uso de swap, GB\n"
|
|
||||||
"$swaptotmb - swap total, MB\n"
|
|
||||||
"$swaptotgb - swap total, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddN - uso do ponto de montagem N (começando por 0), %. Exemplo: $hdd0\n"
|
|
||||||
"$hddmbN - uso do ponto de montagem N (começando por 0), MB. Exemplo: "
|
|
||||||
"$hddmb0\n"
|
|
||||||
"$hddgbN - uso do ponto de montagem N (começando por 0), GB. Exemplo: "
|
|
||||||
"$hddgbN0\n"
|
|
||||||
"$hddtotmbN - tamanho total do ponto de montagem N (começando por 0), MB. "
|
|
||||||
"Exemplo: $hddtotmbN\n"
|
|
||||||
"$hddtotgbN - tamanho total do ponto de montagem N (começando por 0), GB. "
|
|
||||||
"Exemplo: $hddtogbN"
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr "Velocidade do HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddrN - velocidade de leitura do HDD (começando por 0), KB/s. Exemplo: "
|
|
||||||
"$hddr0\n"
|
|
||||||
"$hddwN - velocidade de escrita do HDD (começando por 0), Kb/s. Exemplo: "
|
|
||||||
"$hddw0"
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr "Temperatura do HDD "
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddtempN - temperatura física no dispositivo N (começando por 0). Exemplo: "
|
|
||||||
"$hddtemp0"
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr "Rede"
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
"$down - velocidade de download, KB/s\n"
|
|
||||||
"$up - velocidade de upload, KB/s\n"
|
|
||||||
"$netdev - dispositivo de rede atual"
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr "Bateria"
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
"bateria - carga da bateria, %\n"
|
|
||||||
"$ac - status do carregador"
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
"$album - album da música\n"
|
|
||||||
"$artist - artista da música\n"
|
|
||||||
"$progress - progresso da música\n"
|
|
||||||
"$time - duração da música\n"
|
|
||||||
"$title - título da música"
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr "Processos "
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
"$pscount - número de processos rodando\n"
|
|
||||||
"$pstotal - número total de processos rodando\n"
|
|
||||||
"$ps - lista dos processos rodando separados por vírgula"
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
"$pkgcountN - número de pacotes disponíveis para atualizar, comando N. Por "
|
|
||||||
"exemplo $pkgcount0"
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr "Personalizado"
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr ""
|
|
||||||
"$customN - leia a saída de um comando personalizado N (a partir de N). "
|
|
||||||
"Exemplo: `$custom0`"
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr "under"
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr "dreanazous@gmail.com"
|
|
@ -1,516 +0,0 @@
|
|||||||
# SOME DESCRIPTIVE TITLE.
|
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
||||||
#
|
|
||||||
#, fuzzy
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
||||||
"Language: \n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr ""
|
|
@ -1,673 +0,0 @@
|
|||||||
# Copyright (C) 2014
|
|
||||||
# This file is distributed under the same license as the PyTextMonitor package.
|
|
||||||
#
|
|
||||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: 2014-08-02 18:21+0400\n"
|
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
|
||||||
"Language: ru\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
||||||
"X-Generator: Lokalize 1.5\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr "Виджет"
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr "Расширенные"
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr "Тултип"
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr "Внешний вид"
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr "DataEngine"
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr "Запутить ksysguard"
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr "Показать README"
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr "Обновить текст"
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr "Form"
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr "Включить фон"
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr "Вертикальная разметка"
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr "Включить сообщения по клику мыши"
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr "Добавить пустое место слева/вверху виджета"
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr "Добавить пустое место справа/внизу виджета"
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr "Свой формат времени"
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dddd - день недели (длинный)\n"
|
|
||||||
"$ddd - день недели (короткий)\n"
|
|
||||||
"$dd - день\n"
|
|
||||||
"$d - день без 0\n"
|
|
||||||
"$MMMM - месяц (длинный)\n"
|
|
||||||
"$MMM - месяц (короткий)\n"
|
|
||||||
"$MM - месяц\n"
|
|
||||||
"$M - месяц без 0\n"
|
|
||||||
"$yyyy - год\n"
|
|
||||||
"$yy - год (короткий)\n"
|
|
||||||
"$hh - часы (24)\n"
|
|
||||||
"$h - часы без 0 (24)\n"
|
|
||||||
"$mm - минуты\n"
|
|
||||||
"$m - минуты без 0\n"
|
|
||||||
"$ss - секунды\n"
|
|
||||||
"$s - секунды без 0"
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr "Свой формат аптайма"
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dd - дни аптайма\n"
|
|
||||||
"$d - дни аптайма без нулей\n"
|
|
||||||
"$hh - часы аптайма\n"
|
|
||||||
"$h - часы аптайма без нулей\n"
|
|
||||||
"$mm - минуты аптайма\n"
|
|
||||||
"$m - минуты аптайма без нулей"
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr "Температурные единицы"
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr "Температурные устройства"
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Добавить"
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
"Редактируемо\n"
|
|
||||||
"del - удалить строку"
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr "Точки монтирования"
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr "HDD (скорость)"
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr "HDD (температура)"
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr "Путь к интерфейсам"
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr "\"/sys/class/net\" по умолчанию"
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr "Отключить автовыбор устройства и использовать указанное"
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr "Выберете сетевое устройство"
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr "Устройство батареи"
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr "AC подключен"
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr "Строка, возвращаемая при подключенном адаптере питания"
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr "AC отключен"
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr "Строка, возвращаемая при отключенном адаптере питания"
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr "Устройство AC"
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr "Интервал обновления"
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr "Шрифт"
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr "Размер шрифта"
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr "Цвет шрифта"
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr "Стиль шрифта"
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr "Ширина шрифта"
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr "Своя команда"
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr "Своя команда для запуска"
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr "Устройство GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr "HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr "Команда hddtemp"
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr "Адрес сервера MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr "Порт сервера MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr "Пакетный менеджер"
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr "Число пустых линий"
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr "Музыкальный плеер"
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr "Команда для проверки рабочего стола"
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr "<b>ВНИМАНИЕ:</b> DBus интерфейс плеера должен быть активен"
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr "Имя плеера в MPRIS"
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
"Поля \"CPU\", \"Частота CPU\", \"Память\", \"Swap\", \"Сеть\" поддерживают "
|
|
||||||
"графический тултип. Чтобы включить его, просто сделайте требуемые чекбоксы "
|
|
||||||
"полностью чекнутыми."
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr "Число хранящихся значений"
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr "Фон"
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr "Цвет частоты CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr "Цвет swap"
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr "Цвет CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr "Цвет скорости загрузки"
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr "Цвет памяти"
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr "Цвет скорости отдачи"
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
|
|
||||||
"projects/pytextmonitor/\">домашней странице проекта</a>"
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr "Время"
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
"$time - время в стандартном формате\n"
|
|
||||||
"$isotime - время в ISO формате\n"
|
|
||||||
"$shorttime - время в коротком формате\n"
|
|
||||||
"$longtime - время в длинном формате\n"
|
|
||||||
"$custom - свой формат времени"
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr "Время работы"
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
"$uptime - время работы\n"
|
|
||||||
"$custom - свой формат"
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr "CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
"$cpu - общая загрузка CPU, %\n"
|
|
||||||
"$cpu0 - загрузка CPU для ядра 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - загрузка CPU для ядра 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - загрузка CPU для ядра N, %"
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr "Частота CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
"$cpucl - средняя частота CPU, MHz\n"
|
|
||||||
"$cpucl0 - частота CPU для ядра 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - частота CPU для ядра 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - частота CPU для ядра N, MHz"
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr "Температура"
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr "$tempN - физическая температура на устройстве N (от 0). Пример: $temp0"
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr "GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr "$gpu - использование GPU, %"
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr "Температура GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr "$gputemp - физическая температура на GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr "Память"
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$mem - использование RAM, %\n"
|
|
||||||
"$memmb - использование RAM, MB\n"
|
|
||||||
"$memgb - использование RAM, GB\n"
|
|
||||||
"$memtotmb - RAM, MB\n"
|
|
||||||
"$memtotgb - RAM, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr "Swap"
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$swap - использование swap, %\n"
|
|
||||||
"$swapmb - использование swap, MB\n"
|
|
||||||
"$swapgb - использование swap, GB\n"
|
|
||||||
"$swaptotmb - swap, MB\n"
|
|
||||||
"$swaptotgb - swap, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddN - использование точки монтирования N (от 0), %. Пример: $hdd0\n"
|
|
||||||
"$hddmbN - использование точки монтирования N (от 0), MB. Пример: $hddmb0\n"
|
|
||||||
"$hddgbN - использование точки монтирования N (от 0), GB. Пример: $hddgb0\n"
|
|
||||||
"$hddtotmbN - размер точки монтирования N (от 0), MB. Пример: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - размер точки монтирования N (от 0), GB. Пример: $hddtotgb0"
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr "Скорость HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddrN - скорость записи на HDD N (от 0), KB/s. Например: $hddr0\n"
|
|
||||||
"$hddwN - скорость чтения с HDD N (от 0), KB/s. Например: $hddw0"
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr "Температура HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr "$hddtempN - температура на устройстве N (от 0). Пример: $hddtemp0"
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr "Сеть"
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
"$down - скорость скачки, KB/s\n"
|
|
||||||
"$up - скорость загрузки, KB/s\n"
|
|
||||||
"$netdev - текущее устройство"
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr "Батарея"
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
"$bat - заряд батареи, %\n"
|
|
||||||
"$ac - статус адаптера питания"
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
"$album - альбом\n"
|
|
||||||
"$artist - исполнитель\n"
|
|
||||||
"$progress - прогресс\n"
|
|
||||||
"$time - продолжительность\n"
|
|
||||||
"$title - название"
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr "Процессы"
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
"$pscount - число запущенных процессов\n"
|
|
||||||
"$pstotal - общее число процессов\n"
|
|
||||||
"$ps - список запущенных процессов, разделенных запятыми"
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
"$pkgcountN - число пакетов, которые доступны для обновления, для команды N. "
|
|
||||||
"Например, $pkgcount0"
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr "Своя команда"
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr "$customN - получить информацию из своей команды N. Например $custom0"
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr "Текущий рабочий стол"
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
"$name - имя рабочего стола\n"
|
|
||||||
"$number - номер рабочего стола\n"
|
|
||||||
"$total - общее число рабочих столов"
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr "Evgeniy Alekseev"
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr "esalexeev@gmail.com"
|
|
||||||
|
|
||||||
#~ msgid "Widget settings"
|
|
||||||
#~ msgstr "Настройки виджета"
|
|
||||||
|
|
||||||
#~ msgid "pacman -Qu"
|
|
||||||
#~ msgstr "pacman -Qu"
|
|
||||||
|
|
||||||
#~ msgid "apt-show-versions -u -b"
|
|
||||||
#~ msgstr "apt-show-versions -u -b"
|
|
||||||
|
|
||||||
#~ msgid "aptitude search '~U'"
|
|
||||||
#~ msgstr "aptitude search '~U'"
|
|
||||||
|
|
||||||
#~ msgid "yum list updates"
|
|
||||||
#~ msgstr "yum list updates"
|
|
||||||
|
|
||||||
#~ msgid "pkg_version -I -l '<'"
|
|
||||||
#~ msgstr "pkg_version -I -l '<'"
|
|
||||||
|
|
||||||
#~ msgid "urpmq --auto-select"
|
|
||||||
#~ msgstr "urpmq --auto-select"
|
|
||||||
|
|
||||||
#~ msgid "amarok"
|
|
||||||
#~ msgstr "amarok"
|
|
||||||
|
|
||||||
#~ msgid "mpd"
|
|
||||||
#~ msgstr "mpd"
|
|
||||||
|
|
||||||
#~ msgid "qmmp"
|
|
||||||
#~ msgstr "qmmp"
|
|
||||||
|
|
||||||
#~ msgid "auto"
|
|
||||||
#~ msgstr "auto"
|
|
||||||
|
|
||||||
#~ msgid "nvidia"
|
|
||||||
#~ msgstr "nvidia"
|
|
||||||
|
|
||||||
#~ msgid "ati"
|
|
||||||
#~ msgstr "ati"
|
|
||||||
|
|
||||||
#~ msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
|
||||||
#~ msgstr "$hddN - использование точки монтирования N (от 0), %. Пример: $hdd0"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "$ds - uptime days\n"
|
|
||||||
#~ "$hs - uptime hours\n"
|
|
||||||
#~ "$ms - uptime minutes"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$ds - дни работы\n"
|
|
||||||
#~ "$hs - часы\n"
|
|
||||||
#~ "$ms - минуты"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Command to run, example:\n"
|
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Команда для запуска, например:\n"
|
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - получить внешний IP"
|
|
||||||
|
|
||||||
#~ msgid "@@/;@@ - mount point usage, %"
|
|
||||||
#~ msgstr "@@/;@@ - использование точки монтирования, %"
|
|
||||||
|
|
||||||
#~ msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
|
||||||
#~ msgstr "@@/dev/sda@@ - физическая температура /dev/sda"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "$net - network speed, down/up, KB/s\n"
|
|
||||||
#~ "$netdev - current network device\n"
|
|
||||||
#~ "@@eth0@@ - disable auto select device and set specified device"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "$net - скорость передачи данных, down/up, KB/s\n"
|
|
||||||
#~ "$netdev - используемое устройство\n"
|
|
||||||
#~ "@@eth0@@ - отключить автовыбор устройства и установить указанное"
|
|
@ -1,599 +0,0 @@
|
|||||||
# Copyright (C) 2014
|
|
||||||
# This file is distributed under the same license as the PyTextMonitor package.
|
|
||||||
#
|
|
||||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
|
||||||
"POT-Creation-Date: 2014-08-02 18:20+0400\n"
|
|
||||||
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
|
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
|
||||||
"Language-Team: Ukrainian <kde-ukrainian@lists.kde.ru>\n"
|
|
||||||
"Language: ua\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
|
||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
||||||
"X-Generator: Lokalize 1.5\n"
|
|
||||||
|
|
||||||
#: code/configdef.py:289
|
|
||||||
msgid "Widget"
|
|
||||||
msgstr "Віджет"
|
|
||||||
|
|
||||||
#: code/configdef.py:291
|
|
||||||
msgid "Advanced"
|
|
||||||
msgstr "Розширені"
|
|
||||||
|
|
||||||
#: code/configdef.py:293
|
|
||||||
msgid "Tooltip"
|
|
||||||
msgstr "Тултіп"
|
|
||||||
|
|
||||||
#: code/configdef.py:295
|
|
||||||
msgid "Appearance"
|
|
||||||
msgstr "Зовнішній вигляд"
|
|
||||||
|
|
||||||
#: code/configdef.py:297
|
|
||||||
msgid "DataEngine"
|
|
||||||
msgstr "DataEngine"
|
|
||||||
|
|
||||||
#: code/main.py:115
|
|
||||||
msgid "Run ksysguard"
|
|
||||||
msgstr "Запустити ksysguard"
|
|
||||||
|
|
||||||
#: code/main.py:117
|
|
||||||
msgid "Show README"
|
|
||||||
msgstr "Показати README"
|
|
||||||
|
|
||||||
#: code/main.py:119
|
|
||||||
msgid "Update text"
|
|
||||||
msgstr "Оновити текст"
|
|
||||||
|
|
||||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:209 rc.cpp:239
|
|
||||||
msgid "Form"
|
|
||||||
msgstr "Form"
|
|
||||||
|
|
||||||
#: rc.cpp:6
|
|
||||||
msgid "Enable background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:9
|
|
||||||
msgid "Vertical layout"
|
|
||||||
msgstr "Вертикальна розмітка"
|
|
||||||
|
|
||||||
#: rc.cpp:12
|
|
||||||
msgid "Enable popup on mouse click"
|
|
||||||
msgstr "Включити спливаючі підказки при натисканні клавіші миші"
|
|
||||||
|
|
||||||
#: rc.cpp:15
|
|
||||||
msgid "Add stretch to left/top of the layout"
|
|
||||||
msgstr "Додати порожнє місце ліворуч/вгорі віджету"
|
|
||||||
|
|
||||||
#: rc.cpp:18
|
|
||||||
msgid "Add stretch to right/bottom of the layout"
|
|
||||||
msgstr "Додати порожнє місце праворуч/внизу віджету"
|
|
||||||
|
|
||||||
#: rc.cpp:21
|
|
||||||
msgid "Custom time format"
|
|
||||||
msgstr "Свій формат часу"
|
|
||||||
|
|
||||||
#: rc.cpp:24
|
|
||||||
msgid ""
|
|
||||||
"$dddd - long weekday\n"
|
|
||||||
"$ddd - short weekday\n"
|
|
||||||
"$dd - day\n"
|
|
||||||
"$d - day w\\o zero\n"
|
|
||||||
"$MMMM - long month\n"
|
|
||||||
"$MMM - short month\n"
|
|
||||||
"$MM - month\n"
|
|
||||||
"$M - month w\\o zero\n"
|
|
||||||
"$yyyy - year\n"
|
|
||||||
"$yy - short year\n"
|
|
||||||
"$hh - hours (24 only)\n"
|
|
||||||
"$h - hours w\\o zero (24 only)\n"
|
|
||||||
"$mm - minutes\n"
|
|
||||||
"$m - minutes w\\o zero\n"
|
|
||||||
"$ss - seconds\n"
|
|
||||||
"$s - seconds w\\o zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dddd - день тижня (довгий)\n"
|
|
||||||
"$ddd - день тижня (короткий)\n"
|
|
||||||
"$dd - день\n"
|
|
||||||
"$d - день без нулів\n"
|
|
||||||
"$MMMM - місяць (довгий)\n"
|
|
||||||
"$MMM - місяць (короткий)\n"
|
|
||||||
"$MM - місяць\n"
|
|
||||||
"$M - місяць без нулів\n"
|
|
||||||
"$yyyy - рік\n"
|
|
||||||
"$yy - рук (короткий)\n"
|
|
||||||
"$hh - години (24)\n"
|
|
||||||
"$h - години без нулів (24)\n"
|
|
||||||
"$mm - хвилини\n"
|
|
||||||
"$m - хвилини без нулів\n"
|
|
||||||
"$ss - секунди\n"
|
|
||||||
"$s - секунди без нулів"
|
|
||||||
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid "Custom uptime format"
|
|
||||||
msgstr "Свій формат аптайму (uptime)"
|
|
||||||
|
|
||||||
#: rc.cpp:45
|
|
||||||
msgid ""
|
|
||||||
"$dd - uptime days\n"
|
|
||||||
"$d - uptime days without zero\n"
|
|
||||||
"$hh - uptime hours\n"
|
|
||||||
"$h - uptime hours without zero\n"
|
|
||||||
"$mm - uptime minutes\n"
|
|
||||||
"$m - uptime minutes without zero"
|
|
||||||
msgstr ""
|
|
||||||
"$dd - дні аптайму\n"
|
|
||||||
"$d - дні аптайму без нулів\n"
|
|
||||||
"$hh - години аптайму\n"
|
|
||||||
"$h - години аптайму без нулів\n"
|
|
||||||
"$mm - хвилини аптайму\n"
|
|
||||||
"$m - хвилини аптайму без нулів"
|
|
||||||
|
|
||||||
#: rc.cpp:53
|
|
||||||
msgid "Temperature units"
|
|
||||||
msgstr "Одиниці виміру температури"
|
|
||||||
|
|
||||||
#: rc.cpp:56
|
|
||||||
msgid "Temperature devices"
|
|
||||||
msgstr "Температурні пристрої"
|
|
||||||
|
|
||||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
|
||||||
msgid "Add"
|
|
||||||
msgstr "Добавити"
|
|
||||||
|
|
||||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
|
||||||
msgid ""
|
|
||||||
"Editable\n"
|
|
||||||
"del - remove item"
|
|
||||||
msgstr ""
|
|
||||||
"Можна редагувати\n"
|
|
||||||
"del - видалити рядок"
|
|
||||||
|
|
||||||
#: rc.cpp:66
|
|
||||||
msgid "Mount points"
|
|
||||||
msgstr "Точки монтування"
|
|
||||||
|
|
||||||
#: rc.cpp:76
|
|
||||||
msgid "HDD devices (speed)"
|
|
||||||
msgstr "HDD (швидкість)"
|
|
||||||
|
|
||||||
#: rc.cpp:86
|
|
||||||
msgid "HDD devices (temp)"
|
|
||||||
msgstr "HDD (температура)"
|
|
||||||
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network directory"
|
|
||||||
msgstr "Шлях до інтерфейсів"
|
|
||||||
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
|
||||||
msgstr "\"/sys/class/net\" за замовчуванням"
|
|
||||||
|
|
||||||
#: rc.cpp:102
|
|
||||||
msgid "Disable auto select device and set specified device"
|
|
||||||
msgstr "Відключити автоматичний вибір пристрою та використовувати вказаний"
|
|
||||||
|
|
||||||
#: rc.cpp:105
|
|
||||||
msgid "Set network device"
|
|
||||||
msgstr "Оберіть мережевий пристрій"
|
|
||||||
|
|
||||||
#: rc.cpp:108
|
|
||||||
msgid "Battery device"
|
|
||||||
msgstr "Пристрій батареї"
|
|
||||||
|
|
||||||
#: rc.cpp:111
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" за замовчуванням"
|
|
||||||
|
|
||||||
#: rc.cpp:114
|
|
||||||
msgid "AC online tag"
|
|
||||||
msgstr "AC підключений"
|
|
||||||
|
|
||||||
#: rc.cpp:117
|
|
||||||
msgid "Line, which returns when AC is online"
|
|
||||||
msgstr "Рядок, що повертається при підключеному адаптері живлення"
|
|
||||||
|
|
||||||
#: rc.cpp:120
|
|
||||||
msgid "AC offline tag"
|
|
||||||
msgstr "AC відключений"
|
|
||||||
|
|
||||||
#: rc.cpp:123
|
|
||||||
msgid "Line, which returns when AC is offline"
|
|
||||||
msgstr "Рядок, що повертається при відключеному адаптері живлення"
|
|
||||||
|
|
||||||
#: rc.cpp:126
|
|
||||||
msgid "AC device"
|
|
||||||
msgstr "AC пристрій"
|
|
||||||
|
|
||||||
#: rc.cpp:129
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" за замовчуванням"
|
|
||||||
|
|
||||||
#: rc.cpp:135
|
|
||||||
msgid "Time interval"
|
|
||||||
msgstr "Інтервал оновлення"
|
|
||||||
|
|
||||||
#: rc.cpp:138
|
|
||||||
msgid "Font"
|
|
||||||
msgstr "Шрифт"
|
|
||||||
|
|
||||||
#: rc.cpp:141
|
|
||||||
msgid "Font size"
|
|
||||||
msgstr "Розмір шрифту"
|
|
||||||
|
|
||||||
#: rc.cpp:144
|
|
||||||
msgid "Font color"
|
|
||||||
msgstr "Колір шрифту"
|
|
||||||
|
|
||||||
#: rc.cpp:147
|
|
||||||
msgid "Font style"
|
|
||||||
msgstr "Стиль шрифту"
|
|
||||||
|
|
||||||
#: rc.cpp:150
|
|
||||||
msgid "Font weight"
|
|
||||||
msgstr "Ширина шрифту"
|
|
||||||
|
|
||||||
#: rc.cpp:156
|
|
||||||
msgid "Custom command"
|
|
||||||
msgstr "Своя команда"
|
|
||||||
|
|
||||||
#: rc.cpp:159
|
|
||||||
msgid "Custom command to run"
|
|
||||||
msgstr "Виконання своєї команди"
|
|
||||||
|
|
||||||
#: rc.cpp:169
|
|
||||||
msgid "GPU device"
|
|
||||||
msgstr "Пристій GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:172 rc.cpp:326
|
|
||||||
msgid "HDD"
|
|
||||||
msgstr "HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:175
|
|
||||||
msgid "hddtemp cmd"
|
|
||||||
msgstr "Команда hddtemp"
|
|
||||||
|
|
||||||
#: rc.cpp:178
|
|
||||||
msgid "MPD address"
|
|
||||||
msgstr "Адреса сервера MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:181
|
|
||||||
msgid "MPD port"
|
|
||||||
msgstr "Порт сервера MPD"
|
|
||||||
|
|
||||||
#: rc.cpp:184 rc.cpp:384
|
|
||||||
msgid "Package manager"
|
|
||||||
msgstr "Пакетний менеджер"
|
|
||||||
|
|
||||||
#: rc.cpp:187
|
|
||||||
msgid "Number of null lines"
|
|
||||||
msgstr "Кількість пустих рядків"
|
|
||||||
|
|
||||||
#: rc.cpp:197 rc.cpp:366
|
|
||||||
msgid "Music player"
|
|
||||||
msgstr "Музичний плеєр"
|
|
||||||
|
|
||||||
#: rc.cpp:200
|
|
||||||
msgid "Desktop check cmd"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:203
|
|
||||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:206
|
|
||||||
msgid "MPRIS player name"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:212
|
|
||||||
msgid ""
|
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
|
||||||
"To enable them just make needed checkbox fully checked."
|
|
||||||
msgstr ""
|
|
||||||
"Поля \"CPU\", \"Частота CPU\", \"Пам’ятьґЄ, \"Swap\" та \"Мережа\" "
|
|
||||||
"підтримують графічний тултіп. Щоб їх задіяти, просто зробіть необхідні "
|
|
||||||
"чекбокси повністю чекнутими."
|
|
||||||
|
|
||||||
#: rc.cpp:215
|
|
||||||
msgid "Number of values for tooltips"
|
|
||||||
msgstr "Кількість значень для тултіпа"
|
|
||||||
|
|
||||||
#: rc.cpp:218
|
|
||||||
msgid "Background"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:221
|
|
||||||
msgid "CPU clock color"
|
|
||||||
msgstr "Колір частоти CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:224
|
|
||||||
msgid "Swap color"
|
|
||||||
msgstr "Колір swap"
|
|
||||||
|
|
||||||
#: rc.cpp:227
|
|
||||||
msgid "CPU color"
|
|
||||||
msgstr "Колір CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:230
|
|
||||||
msgid "Download speed color"
|
|
||||||
msgstr "Колір швидкості скачування"
|
|
||||||
|
|
||||||
#: rc.cpp:233
|
|
||||||
msgid "Memory color"
|
|
||||||
msgstr "Колір пам’яті"
|
|
||||||
|
|
||||||
#: rc.cpp:236
|
|
||||||
msgid "Upload speed color"
|
|
||||||
msgstr "Колір швидкості віддачі"
|
|
||||||
|
|
||||||
#: rc.cpp:242
|
|
||||||
msgid ""
|
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
|
||||||
"pytextmonitor/\">project homepage</a>"
|
|
||||||
msgstr ""
|
|
||||||
"Детальна інформація може бути знайдена на <a href=\"http://arcanis.name/"
|
|
||||||
"projects/pytextmonitor/\">домашній сторінці проекту</a>"
|
|
||||||
|
|
||||||
#: rc.cpp:245
|
|
||||||
msgid "Time"
|
|
||||||
msgstr "Час"
|
|
||||||
|
|
||||||
#: rc.cpp:248
|
|
||||||
msgid ""
|
|
||||||
"$time - time in default format\n"
|
|
||||||
"$isotime - time in ISO format\n"
|
|
||||||
"$shorttime - time in short format\n"
|
|
||||||
"$longtime - time in log format\n"
|
|
||||||
"$custom - custom time format"
|
|
||||||
msgstr ""
|
|
||||||
"$time - час у стандартному форматі\n"
|
|
||||||
"$isotime - час у форматі ISO\n"
|
|
||||||
"$shorttime - час в короткому форматі\n"
|
|
||||||
"$longtime - час у довгому форматі\n"
|
|
||||||
"$custom - свій формат часу"
|
|
||||||
|
|
||||||
#: rc.cpp:255
|
|
||||||
msgid "Uptime"
|
|
||||||
msgstr "Час роботи"
|
|
||||||
|
|
||||||
#: rc.cpp:258
|
|
||||||
msgid ""
|
|
||||||
"$uptime - system uptime\n"
|
|
||||||
"$custom - custom format"
|
|
||||||
msgstr ""
|
|
||||||
"$uptime - час роботи\n"
|
|
||||||
"$custom - свій формат"
|
|
||||||
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "CPU"
|
|
||||||
msgstr "CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:266
|
|
||||||
msgid ""
|
|
||||||
"$cpu - total load CPU, %\n"
|
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - load CPU for core 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - load CPU for core N, %"
|
|
||||||
msgstr ""
|
|
||||||
"$cpu - загальне завантаження CPU, %\n"
|
|
||||||
"$cpu0 - завантаження CPU для ядра 0, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpu9 - завантаження CPU для ядра 9, %\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuN - завантаження CPU для ядра N, %"
|
|
||||||
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "CPU Clock"
|
|
||||||
msgstr "Частота CPU"
|
|
||||||
|
|
||||||
#: rc.cpp:277
|
|
||||||
msgid ""
|
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - CPU clock for core N, MHz"
|
|
||||||
msgstr ""
|
|
||||||
"$cpucl - середня частота CPU, MHz\n"
|
|
||||||
"$cpucl0 - частота CPU для ядра 0, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpucl9 - частота CPU для ядра 9, MHz\n"
|
|
||||||
"...\n"
|
|
||||||
"$cpuclN - частота CPU для ядра N, MHz"
|
|
||||||
|
|
||||||
#: rc.cpp:285
|
|
||||||
msgid "Temperature"
|
|
||||||
msgstr "Температура"
|
|
||||||
|
|
||||||
#: rc.cpp:288
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
|
||||||
msgstr "$tempN - фізична температура на пристрої N (від 0). Приклад: $temp0"
|
|
||||||
|
|
||||||
#: rc.cpp:291
|
|
||||||
msgid "GPU"
|
|
||||||
msgstr "GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:295
|
|
||||||
msgid "$gpu - gpu usage, %"
|
|
||||||
msgstr "$gpu - використання gpu, %"
|
|
||||||
|
|
||||||
#: rc.cpp:298
|
|
||||||
msgid "GPU Temp"
|
|
||||||
msgstr "Температура GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
|
||||||
msgstr "$gputemp - фізична температура на GPU"
|
|
||||||
|
|
||||||
#: rc.cpp:304
|
|
||||||
msgid "Memory"
|
|
||||||
msgstr "Пам’ять"
|
|
||||||
|
|
||||||
#: rc.cpp:308
|
|
||||||
msgid ""
|
|
||||||
"$mem - RAM usage, %\n"
|
|
||||||
"$memmb - RAM usage, MB\n"
|
|
||||||
"$memgb - RAM usage, GB\n"
|
|
||||||
"$memtotmb - total RAM, MB\n"
|
|
||||||
"$memtotgb - total RAM, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$mem - використання RAM, %\n"
|
|
||||||
"$memmb - використання RAM, MB\n"
|
|
||||||
"$memgb - використання RAM, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:315
|
|
||||||
msgid "Swap"
|
|
||||||
msgstr "Swap"
|
|
||||||
|
|
||||||
#: rc.cpp:319
|
|
||||||
msgid ""
|
|
||||||
"$swap - swap usage, %\n"
|
|
||||||
"$swapmb - swap usage, MB\n"
|
|
||||||
"$swapgb - swap usage, GB\n"
|
|
||||||
"$swaptotmb - total swap, MB\n"
|
|
||||||
"$swaptotgb - total swap, GB"
|
|
||||||
msgstr ""
|
|
||||||
"$swap - використання swap, %\n"
|
|
||||||
"$swapmb - використання swap, MB\n"
|
|
||||||
"$swapgb - використання swap, GB$swaptotmb - swap, MB\n"
|
|
||||||
"$swaptotgb - swap, GB"
|
|
||||||
|
|
||||||
#: rc.cpp:330
|
|
||||||
msgid ""
|
|
||||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
|
||||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
|
||||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0\n"
|
|
||||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddN - використання точки монтування N (від 0), %. Приклад: $hdd0\n"
|
|
||||||
"$hddmbN - використання точки монтування N (від 0), MB. Приклад: $hddmb0\n"
|
|
||||||
"$hddgbN - використання точки монтування N (від 0), GB. Приклад: $hddgb0\n"
|
|
||||||
"$hddtotmbN - розмір точки монтування N (від 0), MB. Приклад: $hddtotmb0\n"
|
|
||||||
"$hddtotgbN - розмір точки монтування N (від 0), GB. Приклад: $hddtotgb0"
|
|
||||||
|
|
||||||
#: rc.cpp:337
|
|
||||||
msgid "HDD speed"
|
|
||||||
msgstr "Швидкість HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:340
|
|
||||||
msgid ""
|
|
||||||
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
|
||||||
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddrN - швидкість читання HDD N (від 0), KB/s. Приклад: $hddr0\n"
|
|
||||||
"$hddwN - швидкість запису HDD N (від 0), KB/s. Приклад: $hddw0"
|
|
||||||
|
|
||||||
#: rc.cpp:344
|
|
||||||
msgid "HDD temp"
|
|
||||||
msgstr "Температура HDD"
|
|
||||||
|
|
||||||
#: rc.cpp:347
|
|
||||||
msgid ""
|
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
|
||||||
msgstr ""
|
|
||||||
"$hddtempN - фізична температура на пристрої N (від 0). Приклад: $hddtemp"
|
|
||||||
|
|
||||||
#: rc.cpp:350
|
|
||||||
msgid "Network"
|
|
||||||
msgstr "Мережа"
|
|
||||||
|
|
||||||
#: rc.cpp:353
|
|
||||||
msgid ""
|
|
||||||
"$down - download speed, KB/s\n"
|
|
||||||
"$up - upload speed, KB/s\n"
|
|
||||||
"$netdev - current network device"
|
|
||||||
msgstr ""
|
|
||||||
"$down - швидкість скачування, KB/s\n"
|
|
||||||
"$up - швидкість віддачі, KB/s\n"
|
|
||||||
"$netdev - поточний мережевий пристрій"
|
|
||||||
|
|
||||||
#: rc.cpp:358
|
|
||||||
msgid "Battery"
|
|
||||||
msgstr "Батарея"
|
|
||||||
|
|
||||||
#: rc.cpp:362
|
|
||||||
msgid ""
|
|
||||||
"$bat - battery charge, %\n"
|
|
||||||
"$ac - AC status"
|
|
||||||
msgstr ""
|
|
||||||
"$bat - заряд батареї, %\n"
|
|
||||||
"$ac - статус адаптера живлення"
|
|
||||||
|
|
||||||
#: rc.cpp:369
|
|
||||||
msgid ""
|
|
||||||
"$album - song album\n"
|
|
||||||
"$artist - song artist\n"
|
|
||||||
"$progress - song progress\n"
|
|
||||||
"$time - song duration\n"
|
|
||||||
"$title - song title"
|
|
||||||
msgstr ""
|
|
||||||
"$album - альбом\n"
|
|
||||||
"$artist - виконавець\n"
|
|
||||||
"$progress - прогрес\n"
|
|
||||||
"$time - тривалість\n"
|
|
||||||
"$title - назва"
|
|
||||||
|
|
||||||
#: rc.cpp:376
|
|
||||||
msgid "Processes"
|
|
||||||
msgstr "Процеси"
|
|
||||||
|
|
||||||
#: rc.cpp:379
|
|
||||||
msgid ""
|
|
||||||
"$pscount - number of running processes\n"
|
|
||||||
"$pstotal - total number of running processes\n"
|
|
||||||
"$ps - list of running processes comma separated"
|
|
||||||
msgstr ""
|
|
||||||
"$pscount - кількість запущених процесів\n"
|
|
||||||
"$pstotal - загальна кількість процесів\n"
|
|
||||||
"$ps - перелік запущених процесів, розділених комами"
|
|
||||||
|
|
||||||
#: rc.cpp:387
|
|
||||||
msgid ""
|
|
||||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
|
||||||
"For example $pkgcount0"
|
|
||||||
msgstr ""
|
|
||||||
"$pkgcountN - кількість пакетів, що доступні для оновлення, для команди N. "
|
|
||||||
"Наприклад: $pkgcount0"
|
|
||||||
|
|
||||||
#: rc.cpp:390
|
|
||||||
msgid "Custom"
|
|
||||||
msgstr "Своя команда"
|
|
||||||
|
|
||||||
#: rc.cpp:393
|
|
||||||
msgid ""
|
|
||||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
|
||||||
msgstr ""
|
|
||||||
"$customN - отримати інформацію зі своєї команди N. Наприклад `$custom0`"
|
|
||||||
|
|
||||||
#: rc.cpp:396
|
|
||||||
msgid "Current desktop"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:399
|
|
||||||
msgid ""
|
|
||||||
"$name - desktop name\n"
|
|
||||||
"$number - desktop number\n"
|
|
||||||
"$total - total number of desktops"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: rc.cpp:402
|
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
|
||||||
msgid "Your names"
|
|
||||||
msgstr "Slobodyan Victor"
|
|
||||||
|
|
||||||
#: rc.cpp:403
|
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
|
||||||
msgid "Your emails"
|
|
||||||
msgstr "sarumyan@i.ua"
|
|
||||||
|
|
||||||
#~ msgid "Widget settings"
|
|
||||||
#~ msgstr "Налаштування віджету"
|
|
@ -1,5 +1,5 @@
|
|||||||
# set project name
|
# set project name
|
||||||
set (SUBPROJECT pytextmonitor)
|
set (SUBPROJECT awesome-widgets)
|
||||||
|
|
||||||
file (GLOB SUBPROJECT_MD *.html)
|
file (GLOB SUBPROJECT_MD *.html)
|
||||||
install (FILES ${SUBPROJECT_MD} DESTINATION share/${SUBPROJECT}/)
|
install (FILES ${SUBPROJECT_MD} DESTINATION share/${SUBPROJECT}/)
|
Loading…
Reference in New Issue
Block a user