1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-19 04:06:00 +02:00

Added update checker for manjaro

This commit is contained in:
h45h74x
2020-07-03 20:40:30 +02:00
parent d8e49fdf7d
commit 00eb5d5528
3 changed files with 114 additions and 2 deletions
+13 -1
View File
@@ -77,7 +77,7 @@ enable-ipc = true
; Bars PC
[bar/pc_primary_landscape]
modules-left = disk_short_pc checkupd ovpn nvpn eth_pc
modules-left = disk_short_pc checkupd_manjaro ovpn nvpn eth_pc
modules-center = i3
modules-right = sensors_cpu_pc nvgpu memory date
monitor = ${env:MONITOR:DP-4}
@@ -206,6 +206,18 @@ click-left = "setsid alacritty -e sh -c 'echo ---UPDATE LIST---; echo; checkupda
click-right = "setsid alacritty -e sh -c 'echo ---UPDATING---; echo ; yay -Syu --sudoloop; echo ; read -p ---END---'"
click-middle = "setsid alacritty -e sh -c 'echo ---UPDATING, NOCONFIRM---; echo ; yay -Syu --sudoloop --noconfirm; echo ; read -p ---END---'"
; This module uses 'checkupdates-aur' to fetch update count without database sync
[module/checkupd_manjaro]
type = custom/script
interval = 60
format = upd: <label>
label-maxlen=5
label-ellipsis=true
exec = "echo $(checkupdates | wc -l | awk '$1 ~ /^[[:digit:]]+$/') 2>&1"
click-left = "setsid alacritty -e sh -c 'echo ---UPDATE LIST---; echo; checkupdates-aur; echo ; read -p ---END---'"
click-right = "setsid alacritty -e sh -c 'echo ---UPDATING---; echo ; yay -Syu --sudoloop; echo ; read -p ---END---'"
click-middle = "setsid alacritty -e sh -c 'echo ---UPDATING, NOCONFIRM---; echo ; yay -Syu --sudoloop --noconfirm; echo ; read -p ---END---'"
; Module HW-Statistics
[module/cpu]
+101
View File
@@ -180,3 +180,104 @@ Warning: 'sandbox' is not in the list of known options, but still passed to Elec
[ 2020-07-03 16:58:41.614 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200097 (polybar-pc_vnc_landscape_VNC-0)
[ 2020-07-03 16:58:41.642 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200097 (polybar-pc_vnc_landscape_VNC-0)
[ 2020-07-03 16:58:41.664 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200097 (polybar-pc_vnc_landscape_VNC-0)
[ 2020-07-03 16:59:06.662 win_clear_flags WARN ] Flags cleared on a destroyed window 0x0020008c (Untitled-1 - Code - OSS)
[ 2020-07-03 16:59:08.314 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200095 (Alacritty)
[ 2020-07-03 16:59:30.305 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200080 (HandBrake Queue)
2020-07-03 16:59:31 - ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar', 'gaps'
2020-07-03 16:59:31 - ERROR: Your command: [id="33554439"] none
2020-07-03 16:59:31 - ERROR: ^^^^
[ 2020-07-03 16:59:32.854 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200087 (Alacritty)
[ 2020-07-03 16:59:32.958 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200087 (Alacritty)
2020-07-03 16:59:51 - ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar', 'gaps'
2020-07-03 16:59:51 - ERROR: Your command: [id="16777467"] none
2020-07-03 16:59:51 - ERROR: ^^^^
[ 2020-07-03 17:00:30.235 win_clear_flags WARN ] Flags cleared on a destroyed window 0x0020009f (Entertainment)
Fri Jul 3 18:53:29 2020
VNCSConnST: closing 192.168.1.16::53052: Clean disconnection
EncodeManager: Framebuffer updates: 534370
EncodeManager: Tight:
EncodeManager: Solid: 36.396 krects, 258.545 Mpixels
EncodeManager: 568.688 KiB (1:1776.67 ratio)
EncodeManager: Bitmap RLE: 20.936 krects, 15.331 Mpixels
EncodeManager: 695.615 KiB (1:86.4445 ratio)
EncodeManager: Indexed RLE: 130.966 krects, 198.014 Mpixels
EncodeManager: 25.7217 MiB (1:29.4252 ratio)
EncodeManager: Tight (JPEG):
EncodeManager: Full Colour: 484.598 krects, 1.78075 Gpixels
EncodeManager: 1.51664 GiB (1:4.37761 ratio)
EncodeManager: Total: 672.896 krects, 2.25264 Gpixels
EncodeManager: 1.54296 GiB (1:5.44361 ratio)
TLS: TLS session wasn't terminated gracefully
Connections: closed: 192.168.1.16::53052
ComparingUpdateTracker: 88.636 Gpixels in / 1.45101 Gpixels out
ComparingUpdateTracker: (1:61.0859 ratio)
Fri Jul 3 18:53:51 2020
Connections: accepted: 192.168.1.16::60170
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VeNCrypt(19)
SVeNCrypt: Client requests security type TLSVnc (258)
Fri Jul 3 18:53:53 2020
VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888
VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888
Fri Jul 3 18:53:56 2020
VNCSConnST: closing 192.168.1.16::60170: Clean disconnection
EncodeManager: Framebuffer updates: 328
EncodeManager: Tight:
EncodeManager: Solid: 146 rects, 1.54089 Mpixels
EncodeManager: 2.28125 KiB (1:2639.26 ratio)
EncodeManager: Bitmap RLE: 12 rects, 10.255 kpixels
EncodeManager: 444 B (1:92.7117 ratio)
EncodeManager: Indexed RLE: 216 rects, 258.087 kpixels
EncodeManager: 41.8721 KiB (1:24.1374 ratio)
EncodeManager: Tight (JPEG):
EncodeManager: Full Colour: 341 rects, 1.04011 Mpixels
EncodeManager: 1.25329 MiB (1:3.16893 ratio)
EncodeManager: Total: 715 rects, 2.84933 Mpixels
EncodeManager: 1.29683 MiB (1:8.38777 ratio)
TLS: TLS session wasn't terminated gracefully
Connections: closed: 192.168.1.16::60170
ComparingUpdateTracker: 35.2512 Mpixels in / 303.104 kpixels out
ComparingUpdateTracker: (1:116.301 ratio)
Fri Jul 3 20:25:24 2020
Connections: accepted: 192.168.1.16::38060
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VeNCrypt(19)
SVeNCrypt: Client requests security type TLSVnc (258)
Fri Jul 3 20:25:26 2020
VNCSConnST: Server default pixel format depth 24 (32bpp) little-endian rgb888
VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888
2020-07-03 20:25:56 - ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar', 'gaps'
2020-07-03 20:25:56 - ERROR: Your command: [id="18874381"] none
2020-07-03 20:25:56 - ERROR: ^^^^
X connection to :1 broken (explicit kill or server shutdown).
X connection to :1 broken (explicit kill or server shutdown).
Gdk-Message: 20:26:16.373: polkit-gnome-authentication-agent-1: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
X connection to :1 broken (explicit kill or server shutdown).
Fri Jul 3 20:26:16 2020
VNCSConnST: closing 192.168.1.16::38060: Server shutdown
EncodeManager: Framebuffer updates: 3353
EncodeManager: Tight:
EncodeManager: Solid: 1.2 krects, 9.64889 Mpixels
EncodeManager: 18.75 KiB (1:2010.93 ratio)
EncodeManager: Bitmap RLE: 253 rects, 183.252 kpixels
EncodeManager: 8.7207 KiB (1:82.4237 ratio)
EncodeManager: Indexed RLE: 1.535 krects, 3.35556 Mpixels
EncodeManager: 507.211 KiB (1:25.8781 ratio)
EncodeManager: Tight (JPEG):
EncodeManager: Full Colour: 3.61 krects, 25.879 Mpixels
EncodeManager: 15.8967 MiB (1:6.21274 ratio)
EncodeManager: Total: 6.598 krects, 39.0667 Mpixels
EncodeManager: 16.4188 MiB (1:9.08123 ratio)
TLS: TLS session wasn't terminated gracefully
ComparingUpdateTracker: 1.10523 Gpixels in / 32.8407 Mpixels out
ComparingUpdateTracker: (1:33.6542 ratio)
i3: Cannot open display
Closing SHM log "/i3-log-156985"
-1
View File
@@ -1 +0,0 @@
156910