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

Module changes for vnc bar

This commit is contained in:
h45h74x
2020-07-03 16:59:02 +02:00
parent 973ac69ed7
commit d8e49fdf7d
6 changed files with 208 additions and 27 deletions
+1 -1
View File
@@ -1 +1 @@
config##hostname.yoga3
config##hostname.pc
+1 -1
View File
@@ -105,7 +105,7 @@ enable-ipc = true
[bar/pc_vnc_landscape]
modules-left = disk_short_pc checkupd ovpn nvpn eth_pc
modules-center = i3
modules-right = sensors_cpu_pc nvgpu memory date
modules-right = sensors_cpu_pc memory date
monitor = ${env:MONITOR:VNC-0}
width = 100%
height = 18
@@ -10,5 +10,7 @@ while pgrep -x polybar >/dev/null; do sleep 1; done
polybar pc_primary_landscape -r &
polybar pc_secondary_landscape -r &
polybar pc_vnc_landscape -r &
#insync
echo "Bar launched..."
+172 -6
View File
@@ -5,12 +5,178 @@ See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12006000, The X.Org Foundation
Fri Jul 3 16:34:32 2020
Fri Jul 3 16:49:05 2020
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
/etc/X11/xinit/xinitrc: line 51: twm: command not found
/etc/X11/xinit/xinitrc: line 52: xclock: command not found
xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
/bin/sh: nvidia-settings: command not found
zsh: can't open input file: /home/sim/Userdata/Scripts/restart_pulseaudio_1s.sh
warning: output DP-0 not found; ignoring
warning: output DP-1 not found; ignoring
warning: output DP-2 not found; ignoring
warning: output DP-3 not found; ignoring
warning: output HDMI-0 not found; ignoring
warning: output DP-4 not found; ignoring
warning: output DP-5 not found; ignoring
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
/bin/sh: fix_xcursor: command not found
Bar launched...
(nitrogen:156999): Gtk-WARNING **: 16:49:08.116: Unable to locate theme engine in module_path: "murrine",
(nitrogen:156999): Gtk-WARNING **: 16:49:08.117: Unable to locate theme engine in module_path: "murrine",
(nitrogen:156999): Gtk-WARNING **: 16:49:08.117: Unable to locate theme engine in module_path: "murrine",
polybar|error: Monitor "HDMI-0" not found or disconnected
polybar|error: Monitor "DP-4" not found or disconnected
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
[ 2020-07-03 16:49:08.171 get_buffer_age WARN ] GLX_EXT_buffer_age not supported by your driver,`use-damage` has to be disabled
(nitrogen:156999): Gtk-WARNING **: 16:49:08.188: Unable to locate theme engine in module_path: "murrine",
(nitrogen:156999): Gtk-WARNING **: 16:49:08.189: Unable to locate theme engine in module_path: "murrine",
(nitrogen:156999): Gtk-WARNING **: 16:49:08.189: Unable to locate theme engine in module_path: "murrine",
Could not find Xinerama screen number 1
2020-07-03 16:49:09 - 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:49:09 - ERROR: Your command: [id="14680074"] none
2020-07-03 16:49:09 - ERROR: ^^^^
2020-07-03 16:49:09 - 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:49:09 - ERROR: Your command: [id="18874376"] none
2020-07-03 16:49:09 - ERROR: ^^^^
Already up to date.
Fri Jul 3 16:49:11 2020
Connections: accepted: 192.168.1.16::53032
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VeNCrypt(19)
SVeNCrypt: Client requests security type TLSVnc (258)
Glances Web User Interface started on http://0.0.0.0:60000/
Traceback (most recent call last):
File "/usr/bin/glances", line 11, in <module>
load_entry_point('Glances==3.1.4.1', 'console_scripts', 'glances')()
File "/usr/lib/python3.8/site-packages/glances/__init__.py", line 143, in main
start(config=config, args=args)
File "/usr/lib/python3.8/site-packages/glances/__init__.py", line 112, in start
mode.serve_forever()
File "/usr/lib/python3.8/site-packages/glances/webserver.py", line 48, in serve_forever
self.web.start(self.stats)
File "/usr/lib/python3.8/site-packages/glances/outputs/glances_bottle.py", line 216, in start
self._app.run(host=self.args.bind_address,
File "/usr/bin/bottle.py", line 761, in run
run(self, **kwargs)
File "/usr/bin/bottle.py", line 3137, in run
server.run(app)
File "/usr/bin/bottle.py", line 2789, in run
srv = make_server(self.host, self.port, app, server_cls, handler_cls)
File "/usr/lib/python3.8/wsgiref/simple_server.py", line 154, in make_server
server = server_class((host, port), handler_class)
File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
self.server_bind()
File "/usr/lib/python3.8/wsgiref/simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "/usr/lib/python3.8/http/server.py", line 138, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
Fri Jul 3 16:49:17 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 16:49:21.875 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200061 (Unlock Login Keyring)
Fri Jul 3 16:49:22 2020
VNCSConnST: closing 192.168.1.16::53032: Clean disconnection
EncodeManager: Framebuffer updates: 57
EncodeManager: Hextile:
EncodeManager: Solid: 99 rects, 6.39623 Mpixels
EncodeManager: 26.0488 KiB (1:959.215 ratio)
EncodeManager: Full Colour: 496 rects, 32.1393 Mpixels
EncodeManager: 51.1772 MiB (1:2.39574 ratio)
EncodeManager: Total: 595 rects, 38.5355 Mpixels
EncodeManager: 51.2026 MiB (1:2.8711 ratio)
TLS: TLS session wasn't terminated gracefully
TcpSocket: unable to get peer name for socket
Connections: closed: ::0
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
Fri Jul 3 16:50:51 2020
Connections: accepted: 192.168.1.16::53052
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VeNCrypt(19)
SVeNCrypt: Client requests security type TLSVnc (258)
Fri Jul 3 16:50:53 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 16:50:58.411 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200059 (Nextcloud)
2020-07-03 16:50:59 - 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:50:59 - ERROR: Your command: [id="18874381"] none
2020-07-03 16:50:59 - ERROR: ^^^^
[ 2020-07-03 16:51:00.920 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200069 (Alacritty)
2020-07-03 16:52:57 - 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:52:57 - ERROR: Your command: [id="18874381"] none
2020-07-03 16:52:57 - ERROR: ^^^^
[ 2020-07-03 16:52:59.021 win_clear_flags WARN ] Flags cleared on a destroyed window 0x0020006e (Alacritty)
2020-07-03 16:53:00 - 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:53:00 - ERROR: Your command: [id="18874381"] none
2020-07-03 16:53:00 - ERROR: ^^^^
[ 2020-07-03 16:53:02.471 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200071 (Alacritty)
(arandr:194600): Gdk-CRITICAL **: 16:53:07.924: gdk_atom_intern: assertion 'atom_name != NULL' failed
(arandr:194600): Gdk-CRITICAL **: 16:53:07.924: gdk_atom_intern: assertion 'atom_name != NULL' failed
2020-07-03 16:53:07 - 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:53:07 - ERROR: Your command: [id="18874375"] none
2020-07-03 16:53:07 - ERROR: ^^^^
Fri Jul 3 16:53:14 2020
ComparingUpdateTracker: 242.221 Mpixels in / 53.7395 Mpixels out
ComparingUpdateTracker: (1:4.50732 ratio)
[ 2020-07-03 16:53:15.966 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200074 (Screen Layout Editor)
2020-07-03 16:53:21 - 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:53:21 - ERROR: Your command: [id="18874381"] none
2020-07-03 16:53:21 - ERROR: ^^^^
(nitrogen:195006): Gtk-WARNING **: 16:53:25.645: Unable to locate theme engine in module_path: "murrine",
(nitrogen:195006): Gtk-WARNING **: 16:53:25.645: Unable to locate theme engine in module_path: "murrine",
(nitrogen:195006): Gtk-WARNING **: 16:53:25.646: Unable to locate theme engine in module_path: "murrine",
2020-07-03 16:53:25 - 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:53:25 - ERROR: Your command: [id="18874371"] none
2020-07-03 16:53:25 - ERROR: ^^^^
(nitrogen:195006): Gtk-WARNING **: 16:53:28.481: Unable to locate theme engine in module_path: "murrine",
(nitrogen:195006): Gtk-WARNING **: 16:53:28.481: Unable to locate theme engine in module_path: "murrine",
(nitrogen:195006): Gtk-WARNING **: 16:53:28.482: Unable to locate theme engine in module_path: "murrine",
[ 2020-07-03 16:53:29.296 win_clear_flags WARN ] Flags cleared on a destroyed window 0x0020007a (Nitrogen)
2020-07-03 16:53:53 - 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:53:53 - ERROR: Your command: [id="16777231"] none
2020-07-03 16:53:53 - ERROR: ^^^^
2020-07-03 16:53:54 - 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:53:54 - ERROR: Your command: [id="16777467"] none
2020-07-03 16:53:54 - ERROR: ^^^^
2020-07-03 16:54:08 - 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:54:08 - ERROR: Your command: [id="18874381"] none
2020-07-03 16:54:08 - ERROR: ^^^^
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
2020-07-03 16:54:44 - 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:54:44 - ERROR: Your command: [id="35651585"] none
2020-07-03 16:54:44 - ERROR: ^^^^
2020-07-03 16:54:57 - 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:54:57 - ERROR: Your command: [id="46137357"] none
2020-07-03 16:54:57 - ERROR: ^^^^
2020-07-03 16:57:33 - 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:57:33 - ERROR: Your command: [id="56623117"] none
2020-07-03 16:57:33 - ERROR: ^^^^
[ 2020-07-03 16:58:41.585 win_clear_flags WARN ] Flags cleared on a destroyed window 0x00200097 (polybar-pc_vnc_landscape_VNC-0)
[ 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)
+1 -1
View File
@@ -1 +1 @@
23178
156910
+31 -18
View File
@@ -2,24 +2,37 @@
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
i3 &