updated config handling
This commit is contained in:
parent
b4cad83073
commit
b18f018d65
2
PKGBUILD
2
PKGBUILD
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Eric Lay <ericlaytm@gmail.com>
|
# Maintainer: Eric Lay <ericlaytm@gmail.com>
|
||||||
pkgname=systrayupdater
|
pkgname=systrayupdater
|
||||||
pkgver=r48.14267bc
|
pkgver=r49.b4cad83
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="PyQt5 system tray applet notifier of available updates"
|
pkgdesc="PyQt5 system tray applet notifier of available updates"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
|
|
@ -37,23 +37,23 @@ f.close()
|
||||||
iconDir = '/usr/share/icons/hicolor/symbolic/apps/'
|
iconDir = '/usr/share/icons/hicolor/symbolic/apps/'
|
||||||
match icn:
|
match icn:
|
||||||
case "white":
|
case "white":
|
||||||
iconFile = path.join(iconDir, 'arch-white-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-white-symbolic-24.svg'))
|
||||||
case "blue":
|
case "blue":
|
||||||
iconFile = path.join(iconDir, 'arch-blue-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-blue-symbolic-24.svg'))
|
||||||
case "red":
|
case "red":
|
||||||
iconFile = path.join(iconDir, 'arch-red-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-red-symbolic-24.svg'))
|
||||||
case "green":
|
case "green":
|
||||||
iconFile = path.join(iconDir, 'arch-green-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-green-symbolic-24.svg'))
|
||||||
case "purple":
|
case "purple":
|
||||||
iconFile = path.join(iconDir, 'arch-purple-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-purple-symbolic-24.svg'))
|
||||||
case "yellow":
|
case "yellow":
|
||||||
iconFile = path.join(iconDir, 'arch-yellow-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-yellow-symbolic-24.svg'))
|
||||||
case "black":
|
case "black":
|
||||||
iconFile = path.join(iconDir, 'arch-black-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-black-symbolic-24.svg'))
|
||||||
case "gray":
|
case "gray":
|
||||||
iconFile = path.join(iconDir, 'arch-gray-symbolic-24.svg')
|
icon = QIcon(path.join(iconDir, 'arch-gray-symbolic-24.svg'))
|
||||||
case _:
|
case _:
|
||||||
iconFile = path.join(path.expanduser("~/.config/systrayupdater/"), icn)
|
icon = QIcon(path.join(path.expanduser("~/.config/systrayupdater/"), icn))
|
||||||
|
|
||||||
# Run checkupdates command
|
# Run checkupdates command
|
||||||
# Populates the available updates and count
|
# Populates the available updates and count
|
||||||
|
@ -107,7 +107,6 @@ updateTimer.start(wait)
|
||||||
|
|
||||||
# Adding items to the tray
|
# Adding items to the tray
|
||||||
tray = QSystemTrayIcon()
|
tray = QSystemTrayIcon()
|
||||||
icon = QIcon(iconFile)
|
|
||||||
tray.setIcon(icon)
|
tray.setIcon(icon)
|
||||||
tray.setToolTip(avail)
|
tray.setToolTip(avail)
|
||||||
tray.setVisible(True)
|
tray.setVisible(True)
|
||||||
|
|
Loading…
Reference in New Issue