You are not logged in.

#1 2023-09-18 15:17:12

Ranon
Member
Registered: 2023-09-14
Posts: 3

Polydock Requires X11 - Using X11 - Computer is confused

Hello all,

Just started using Polybar and love the config but missed the icons that would show on ibar (Using i3WM)

Was looking at polydock, got it into the binary with all the dependencies (issue lies with Wnck) from the github page but had a little trouble running it due to "work in X11 only", was fairly certain I was not using Wayland so did an echo $XDG_SESSION_TYPE and it outputs X11.

Overall pretty stumped. Why would Wnck not recognize X11?

Full Terminal Output below

[user@UserArch bin]$ polydock
(gjs:2250): Wnck-WARNING **: 23:10:49.587: libwnck is designed to work in X11 only, no valid display found
Segmentation fault (core dumped)
[user@UserArch bin]$ echo $XDG_SESSION_TYPE
x11

Offline

#2 2023-09-19 11:01:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,357

Re: Polydock Requires X11 - Using X11 - Computer is confused

All dependencies listed on https://github.com/folke/polydock are present in archlinux repos. Have you tried https://aur.archlinux.org/packages/polydock ?

Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2023-09-19 12:06:00

seth
Member
Registered: 2012-09-03
Posts: 42,622

Re: Polydock Requires X11 - Using X11 - Computer is confused

echo $DISPALY
xdpyinfo  | head -n 64
xauth

Offline

#4 2023-09-20 00:05:20

Ranon
Member
Registered: 2023-09-14
Posts: 3

Re: Polydock Requires X11 - Using X11 - Computer is confused

Thanks a bunch for the replies.

@Lone_Wolf - I installed it manually by copying the binaries right into bin folder as the git page instructs. I tried installing the paru version from the AUR but the same issue happens. Also thanks for the welcome big_smile

@Seth - I installed xorg-xdpyinfo and xorg-xauth packages on my system via pacman since I did not previously have them and here is the output:

 [user@UserArch ~]$ echo $DISPLAY
:0
[user@UserArch ~]$ xdpyinfo | head -n 64
name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12101008
X.Org version: 21.1.8
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x1e00002, revert to PointerRoot
number of extensions:    31
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    DRI3
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    NV-CONTROL
    NV-GLX
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    5120x1440 pixels (1204x342 millimeters)
  resolution:    108x107 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x1d9
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
[user@UserArch ~]$ xauth
Using authority file /home/user/.Xauthority
xauth>
xauth> ^C[user@UserArch ~] 

Last edited by Ranon (Yesterday 09:45:18)

Offline

#5 2023-09-20 00:44:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 28,958
Website

Re: Polydock Requires X11 - Using X11 - Computer is confused

Note that the error is actually from libwnck which is a repo package.  I'd strongly suggest testing another bit of software that uses libwnck such as lxpanel or alltray.  If these give similar errors, it would greatly narrow down the problem ... alternatively, if these work fine, it'd also narrow down the problem, but to a less-easy to debug space.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2023-09-20 06:50:07

seth
Member
Registered: 2012-09-03
Posts: 42,622

Re: Polydock Requires X11 - Using X11 - Computer is confused

Please use [code][/code] tags. Edit your post in this regard.
You're certainly running X11, but polybar doesn't even seem to rely on libwnck, so it's probably one of the widgetletthingies inside => post the polybar config.

Offline

#7 Yesterday 09:51:47

Ranon
Member
Registered: 2023-09-14
Posts: 3

Re: Polydock Requires X11 - Using X11 - Computer is confused

@Trillby - I downloaded lxpanel via pacman and ran it in the console. There was a bunch of critical errors (since I just ran it on its own) but the bar did display on the bottom on my screen so I think it worked? I have not read up on the lxpanel so not 100% sure. As far as I could see the lxpanel errors did not include the libwnck package
Here is some of the errors from when I run polybar in the console.

[user@UserArch polybar]$ polybar
notice: Parsing config file: /home/user/.config/polybar/config.ini
notice: Listening for IPC messages (PID: 2713)
warn: No monitor specified, using "HDMI-0"
error: Invalid value for "bar/bar.separator-foreground", using default value (reason: The reference ${colors.disabled} does not exist (no fallback set))
notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
error: Invalid value for "module/xworkspaces.label-empty-foreground", using default value (reason: The reference ${colors.disabled} does not exist (no fallback set))
notice: Loading module 'xwindow' of type 'internal/xwindow'
notice: Loading module 'filesystem' of type 'internal/fs'
error: Invalid value for "module/filesystem.label-unmounted-foreground", using default value (reason: The reference ${colors.disabled} does not exist (no fallback set))
notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.usb-SteelSeries_SteelSeries_Arctis_1_Wireless-00.analog-stereo
error: Invalid value for "module/pulseaudio.label-muted-foreground", using default value (reason: The reference ${colors.disabled} does not exist (no fallback set))
notice: Loading module 'memory' of type 'internal/memory'
notice: Loading module 'cpu' of type 'internal/cpu'
notice: Loading module 'temp' of type 'internal/temperature'
notice: Loading module 'date' of type 'internal/date'
notice: Loaded 8 modules
notice: Loaded font "monkey:size=20:" (name=Monkey, offset=5, file=/usr/local/share/fonts/monkey/monkey.ttf)
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
warn: Dropping unmatched character ° (U+00b0) in ' || 17°C'
notice: Received signal(2): Interrupt
notice: Termination signal received, shutting down...

@Seth - I will use the code tags thanks for the heads up. I believe the Polybar is working at intended it is the PolyDock I am having issues with (Trying to display icons on the side) Below is the polybar config


[user@UserArch polybar]$ cat config.ini
[colors]
background = #282A2E
background-alt = #373B41
foreground = #458588
primary = #83a598
secondary = #076678
alert = #d65d0e


[bar/bar]
width = 100%
height = 24pt
radius = 6

; dpi = 96

background = ${colors.background}
foreground = ${colors.foreground}

line-size = 3pt

border-size = 4pt
border-color = #00000000

padding-left = 0
padding-right = 1

module-margin = 1

separator = ||
separator-foreground = ${colors.disabled}

font-0 = monkey:size=20:;5

modules-left = xworkspaces xwindow
modules-right = filesystem pulseaudio memory cpu temp date

cursor-click = pointer
cursor-scroll = ns-resize

enable-ipc = true

; tray-position = right

; wm-restack = i3

; override-redirect = true

[module/xworkspaces]
type = internal/xworkspaces

label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1

label-occupied = %name%
label-occupied-padding = 1

label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1

label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1

[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%

[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /

label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%

label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}

[module/pulseaudio]
type = internal/pulseaudio

format-volume-prefix = "VOL "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>

label-volume = %percentage%%

label-muted = muted
label-muted-foreground = ${colors.disabled}

[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%

[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}
label = %percentage:1%%

[module/temp]
type = internal/temperature
interval = 0.5
thermal-zone = 0
hwmon-path = /sys/class/thermal/thermal_zone0/temp
base-temperature = 15
warn-temperature = 20
format-prefex = "TEMP "
format-prefix-foreground = ${colors.primary}
; label-active = %name%
; label = %temperature-c%


[module/date]
type = internal/date
interval = 1

date = %Y-%m-%d %H:%M:%S

label = %date%
label-foreground = ${colors.primary}

[settings]
screenchange-reload = true
pseudo-transparency = true

; vim:ft=dosini

After reading the errors from the PolyBar console run I am faily sure I have just messed up some values in the config file. The part I tried to do myself was the Temperature for the CPU.
It is not showing up with the label properly and it did require some tweaking. Pretty sure the error might be there.
This is how my Polybar looks currently
https://drive.google.com/file/d/1F4KAMh … sp=sharing

Last edited by Ranon (Yesterday 10:10:48)

Offline

#8 Yesterday 12:02:27

seth
Member
Registered: 2012-09-03
Posts: 42,622

Re: Polydock Requires X11 - Using X11 - Computer is confused

I believe the Polybar is working at intended it is the PolyDock I am having issues with

Sorry, missed that.

xininfo -int # click a window
wnckprop --window 123456789 # replace the window id from the xwininfo output

Don't just run wnckprop, it grabs the X11 server, but the picker doesn't seem to work properly… hmm

Offline

Board footer

Powered by FluxBB