FS#78104 - [conky] add wayland support

Attached to Project: Arch Linux
Opened by Robert Manner (manni) - Monday, 03 April 2023, 11:52 GMT
Last edited by David Runge (dvzrv) - Sunday, 03 September 2023, 19:17 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Conky now supports wayland ouput, it just needs "-D BUILD_WAYLAND=ON" cmake flag during its build to be enabled.
As more and more desktop environments are using wayland, I think it would be beneficial to enable its support.

This is a patch that seems to be working for me:

$ svn diff
Index: PKGBUILD
===================================================================
--- PKGBUILD (revision 472576)
+++ PKGBUILD (working copy)
@@ -12,10 +12,10 @@
url='https://github.com/brndnmtthws/conky'
license=('BSD' 'GPL')
arch=('x86_64')
-makedepends=('cmake' 'docbook2x' 'docbook-xsl' 'man-db' 'git' 'catch2' 'pandoc' 'python-yaml' 'python-jinja')
+makedepends=('cmake' 'docbook2x' 'docbook-xsl' 'man-db' 'git' 'catch2' 'pandoc' 'python-yaml' 'python-jinja' 'wayland-protocols' 'pango')
depends=(
'glibc' 'glib2' 'lua' 'wireless_tools' 'libxdamage' 'libxinerama' 'libxft' 'imlib2'
- 'libxml2' 'libpulse' 'libxnvctrl' 'systemd-libs' 'ncurses' 'curl'
+ 'libxml2' 'libpulse' 'libxnvctrl' 'systemd-libs' 'ncurses' 'curl' 'wayland' 'pango'
libncursesw.so libXNVCtrl.so libsystemd.so libpulse.so libcurl.so)
#source=("git+https://github.com/brndnmtthws/conky.git#commit=${_gitcommit}?signed")
#v1.17.0 commit not signed
@@ -58,6 +58,7 @@
-D BUILD_PULSEAUDIO=ON \
-D BUILD_JOURNAL=ON \
-D CMAKE_INSTALL_PREFIX=/usr \
+ -D BUILD_WAYLAND=ON \
-Wno-dev \
-S .

Additional info:
* package version(s)
conky == 1.18.1-1

* config and/or log files etc.
Example conky config to try drawing on wayland's background:

$ cat conky.conf
conky.config = {
out_to_wayland = true,
alignment = 'middle_middle',
own_window_argb_value = 0,
own_window_type = 'desktop',
default_shade_color = 'grey',
draw_shades = true,
font = 'Arial:size=13',
use_xft = true,
update_interval = 5,
}

conky.text = [[
${alignc}${font Arial:size=50:style=Bold}${exec date +"%H"}${font Arial:size=50}:${exec date +"%M"}${font}

${font Arial:size=20}${exec date +"%a %d %b %Y"}${font}
]]

* link to upstream bug report, if any

Steps to reproduce:
conky --config conky.conf
This task depends upon

Closed by  David Runge (dvzrv)
Sunday, 03 September 2023, 19:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 1.18.1-2

Loading...