mirror of
				https://github.com/arcan1s/awesome-widgets.git
				synced 2025-11-04 06:43:41 +00:00 
			
		
		
		
	Release 1.8.0
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1,3 +1,4 @@
 | 
				
			|||||||
sources/build
 | 
					sources/build
 | 
				
			||||||
sources/usr
 | 
					sources/usr
 | 
				
			||||||
*-src.tar.xz
 | 
					*src.tar.xz
 | 
				
			||||||
 | 
					*src.tar.gz
 | 
				
			||||||
 | 
				
			|||||||
@ -4,6 +4,7 @@ Ver.1.8.0:
 | 
				
			|||||||
+ added $hddmbN, %hddgbN tags
 | 
					+ added $hddmbN, %hddgbN tags
 | 
				
			||||||
+ added support of ps ($ps, $pscount, $pstotal tags)
 | 
					+ added support of ps ($ps, $pscount, $pstotal tags)
 | 
				
			||||||
+ added support of package managers ($pkgcountN tags)
 | 
					+ added support of package managers ($pkgcountN tags)
 | 
				
			||||||
 | 
					* refactoring of DataEngine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Ver.1.7.4:
 | 
					Ver.1.7.4:
 | 
				
			||||||
+ added support more than 10 tags in cpu, cpuclock, hdd, hddtemp, temp labels
 | 
					+ added support more than 10 tags in cpu, cpuclock, hdd, hddtemp, temp labels
 | 
				
			||||||
 | 
				
			|||||||
@ -4,6 +4,7 @@
 | 
				
			|||||||
+ добавлены теги $hddmbN, $hddgbN
 | 
					+ добавлены теги $hddmbN, $hddgbN
 | 
				
			||||||
+ добавлена поддержка ps (теги $ps, $pscount, $pstotal)
 | 
					+ добавлена поддержка ps (теги $ps, $pscount, $pstotal)
 | 
				
			||||||
+ добавлена поддержка пакетных менеджеров (теги $pkgcountN)
 | 
					+ добавлена поддержка пакетных менеджеров (теги $pkgcountN)
 | 
				
			||||||
 | 
					* рефакторинг DataEngine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Вер.1.7.4:
 | 
					Вер.1.7.4:
 | 
				
			||||||
+ добавлена поддержка более чем 10 тэгов в полях cpu, cpuclock, hdd, hddtemp, temp
 | 
					+ добавлена поддержка более чем 10 тэгов в полях cpu, cpuclock, hdd, hddtemp, temp
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								PKGBUILD
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								PKGBUILD
									
									
									
									
									
								
							@ -2,8 +2,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
pkgname=kdeplasma-applets-pytextmonitor
 | 
					pkgname=kdeplasma-applets-pytextmonitor
 | 
				
			||||||
_pkgname=pytextmonitor
 | 
					_pkgname=pytextmonitor
 | 
				
			||||||
pkgver=1.7.4
 | 
					pkgver=1.8.0
 | 
				
			||||||
pkgrel=2
 | 
					pkgrel=1
 | 
				
			||||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
 | 
					pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
 | 
				
			||||||
arch=('i686' 'x86_64')
 | 
					arch=('i686' 'x86_64')
 | 
				
			||||||
url="http://arcanis.name/projects/pytextmonitor"
 | 
					url="http://arcanis.name/projects/pytextmonitor"
 | 
				
			||||||
@ -20,7 +20,7 @@ optdepends=("amarok: for music player monitor"
 | 
				
			|||||||
makedepends=('automoc4' 'cmake')
 | 
					makedepends=('automoc4' 'cmake')
 | 
				
			||||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
 | 
					source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
 | 
				
			||||||
install=${pkgname}.install
 | 
					install=${pkgname}.install
 | 
				
			||||||
md5sums=('b7ab42465a3c1f12719883d754e86a51')
 | 
					md5sums=('9052985dc219e75ffbed88ce3ebf5a32')
 | 
				
			||||||
backup=('usr/share/config/extsysmon.conf')
 | 
					backup=('usr/share/config/extsysmon.conf')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
prepare() {
 | 
					prepare() {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										32
									
								
								readme/en.md
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								readme/en.md
									
									
									
									
									
								
							@ -42,6 +42,10 @@ For edited output you must open Settings window and setup output format in lines
 | 
				
			|||||||
* tag `$progress` - current song progress. One of supported music players must be installed
 | 
					* tag `$progress` - current song progress. One of supported music players must be installed
 | 
				
			||||||
* tag `$time` - current song duration. One of supported music players must be installed
 | 
					* tag `$time` - current song duration. One of supported music players must be installed
 | 
				
			||||||
* tag `$title` - current song title. One of supported music players must be installed
 | 
					* tag `$title` - current song title. One of supported music players must be installed
 | 
				
			||||||
 | 
					* tag `$pscount` - number of running processes
 | 
				
			||||||
 | 
					* tag `$pstotal` - total number of processes
 | 
				
			||||||
 | 
					* tag `$ps` - list of running processes
 | 
				
			||||||
 | 
					* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
 | 
				
			||||||
* tag `$custom` - returns output for custom command
 | 
					* tag `$custom` - returns output for custom command
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Label order will changed if you change slider position. HTML tags in label work normally.
 | 
					Label order will changed if you change slider position. HTML tags in label work normally.
 | 
				
			||||||
@ -102,6 +106,14 @@ Use specified device as active. Combo box items come from **network directory**.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
File with battery information. File (`/sys/class/power_supply/BAT0/capacity` by default) should contain only battery charge in percent.
 | 
					File with battery information. File (`/sys/class/power_supply/BAT0/capacity` by default) should contain only battery charge in percent.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**AC online tag**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Line which will be shown when AC is online.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					**AC offline tag**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Line which will be shown when AC is offline.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**AC device**
 | 
					**AC device**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
 | 
					File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
 | 
				
			||||||
@ -116,6 +128,12 @@ Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support grap
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
DataEngine settings
 | 
					DataEngine settings
 | 
				
			||||||
-------------------
 | 
					-------------------
 | 
				
			||||||
 | 
					**Custom command**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					*NOTE* This can cause the computer freeze.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					A command, which will be run for custom label.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**GPU device**
 | 
					**GPU device**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
 | 
					Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
 | 
				
			||||||
@ -132,11 +150,16 @@ Address of MPD server. Default is `localhost`.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Port of MPD server. Default is `6600`.
 | 
					Port of MPD server. Default is `6600`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**Custom command**
 | 
					**Package manager**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*NOTE* This can cause the computer freeze.
 | 
					List of commands, which will be run. Number of null lines is a number of unneeded lines. Defaults:
 | 
				
			||||||
 | 
					* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
 | 
				
			||||||
 | 
					* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
 | 
				
			||||||
 | 
					* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
 | 
				
			||||||
 | 
					* *Fedora*: `PKGCMD=yum list updates`, `PKGNULL=3`
 | 
				
			||||||
 | 
					* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
 | 
				
			||||||
 | 
					* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
A command, which will be run for custom label.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
DataEngine configuration
 | 
					DataEngine configuration
 | 
				
			||||||
------------------------
 | 
					------------------------
 | 
				
			||||||
@ -182,6 +205,9 @@ Installation
 | 
				
			|||||||
Additional information
 | 
					Additional information
 | 
				
			||||||
======================
 | 
					======================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					TODO (wish list)
 | 
				
			||||||
 | 
					----------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Links
 | 
					Links
 | 
				
			||||||
-----
 | 
					-----
 | 
				
			||||||
* [Homepage](http://arcanis.name/projects/pytextmonitor/)
 | 
					* [Homepage](http://arcanis.name/projects/pytextmonitor/)
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,6 @@ public:
 | 
				
			|||||||
                       const int pkgNull = 0);
 | 
					                       const int pkgNull = 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
    void readConfiguration();
 | 
					 | 
				
			||||||
    bool sourceRequestEvent(const QString &name);
 | 
					    bool sourceRequestEvent(const QString &name);
 | 
				
			||||||
    bool updateSourceEvent(const QString &source);
 | 
					    bool updateSourceEvent(const QString &source);
 | 
				
			||||||
    QStringList sources() const;
 | 
					    QStringList sources() const;
 | 
				
			||||||
@ -50,6 +49,7 @@ private:
 | 
				
			|||||||
    // reread configuration
 | 
					    // reread configuration
 | 
				
			||||||
    QString getAllHdd();
 | 
					    QString getAllHdd();
 | 
				
			||||||
    QString getAutoGpu();
 | 
					    QString getAutoGpu();
 | 
				
			||||||
 | 
					    void readConfiguration();
 | 
				
			||||||
    QMap<QString, QString> updateConfiguration(const QMap<QString, QString> rawConfig);
 | 
					    QMap<QString, QString> updateConfiguration(const QMap<QString, QString> rawConfig);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -87,8 +87,12 @@ class ConfigDefinition:
 | 
				
			|||||||
                pkgCmd = []
 | 
					                pkgCmd = []
 | 
				
			||||||
                pkgNull = []
 | 
					                pkgNull = []
 | 
				
			||||||
                for command in item:
 | 
					                for command in item:
 | 
				
			||||||
 | 
					                    try:
 | 
				
			||||||
                        pkgCmd.append(str(command.split(QString(":"))[0]))
 | 
					                        pkgCmd.append(str(command.split(QString(":"))[0]))
 | 
				
			||||||
                        pkgNull.append(str(command.split(QString(":"))[1]))
 | 
					                        pkgNull.append(str(command.split(QString(":"))[1]))
 | 
				
			||||||
 | 
					                    except:
 | 
				
			||||||
 | 
					                        pkgCmd.append(str(command))
 | 
				
			||||||
 | 
					                        pkgNull.append("0")
 | 
				
			||||||
                deConfigFile.write("PKGCMD=" + ','.join(pkgCmd) + "\n")
 | 
					                deConfigFile.write("PKGCMD=" + ','.join(pkgCmd) + "\n")
 | 
				
			||||||
                deConfigFile.write("PKGNULL=" + ','.join(pkgNull) + "\n")
 | 
					                deConfigFile.write("PKGNULL=" + ','.join(pkgNull) + "\n")
 | 
				
			||||||
        except:
 | 
					        except:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user