Nwg-shell for sway Wayland compositor

A post was merged into an existing topic: Nwg-dock Showing On the Wrong Screen

Ladies and gentlemen, could you do me a favor and check if Azote 1.10.1 installs well for you? Someone raised an issue, but I can't confirm it in any way.

1 Like

From chaotic-aur it work fine :slight_smile: , so AUR must work too.

pacman -Qi azote
Name                     : azote
Version                  : 1.10.1-1
Beschreibung             : Wallpaper & color manager for Sway, i3 and other WMs
2 Likes

Thanks! I still have no idea what's behind the issue. I changed setup.py a bit last time, but those were minor changes.

No issues on multiple DEs I've tested recently, both Wayland and Xorg setups. Like SGS said it's getting built in the Chaotic repo so our users just download it like a normal package (or have it pre-installed).

I just tested with a helper like the person who opened the issue and it built fine.

Build output
paru azote
2 aur/azote 1.10.1-1 [+11 ~1.32] [Installed]
    Wallpaper & color manager for Sway, i3 and other WMs
1 chaotic-aur/azote 1.10.1-1 [0B 4.83MiB] [Installed]
    Wallpaper & color manager for Sway, i3 and other WMs
:: Packages to install (eg: 1 2 3, 1-3):
:: 2
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1)    Old Version  New Version  Make Only
aur/azote  1.10.1-1     1.10.1-1     No

:: Proceed to review? [Y/n]: y

:: Downloading PKGBUILDs...
 (1/1) azote-1.10.1-1                                [-----------------------------------------------------------------------]
/home/jeremy/.cache/paru/clone/azote/PKGBUILD
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
pkgname=('azote')
pkgver=1.10.1
pkgrel=1
pkgdesc="Wallpaper & color manager for Sway, i3 and other WMs"
arch=('any')
url="https://github.com/nwg-piotr/azote"
license=('GPL3')
provides=('azote')
conflicts=('azote' 'azote-git')
depends=('python' 'python-setuptools' 'python-gobject' 'python-pillow' 'gtk3' 'python-cairo' 'python-send2trash')
optdepends=('imagemagick: for screen color picker'
            'grim: for screen color picker on sway/Wayfire'
                        'slurp: for screen color picker on sway/Wayfire'
                        'maim: for screen color picker on X11-based WMs'
                        'libappindicator-gtk3: for tray status icon'
                        'python-yaml: for alacritty.yml toolbox'
                        'swaybg: for setting background on wlroots-based compositors other than sway'
                        'feh: for setting background on X11-based WMs'
                        'xorg-xrandr: for checking outputs on X11-based WMs'
                        'wlr-randr-git: for checking outputs on wlroots-based compositors other than sway')

source=("$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/$pkgname/archive/v$pkgver.tar.gz")

md5sums=('9490808393dbc115f659514e60978e99')

package() {
  install -D -m 755 "$pkgname"-"$pkgver"/dist/azote "$pkgdir"/usr/bin/azote
  install -D -t "$pkgdir"/usr/share/pixmaps "$pkgname"-"$pkgver"/dist/azote.svg
  install -D -t "$pkgdir"/usr/share/"$pkgname" "$pkgname"-"$pkgver"/dist/indicator*.png
  install -D -t "$pkgdir"/usr/share/applications "$pkgname"-"$pkgver"/dist/azote.desktop
  install -Dm 644 "$pkgname"-"$pkgver"/LICENSE-COLORTHIEF "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-COLORTHIEF"
  cd "$srcdir/$pkgname-$pkgver"
  /usr/bin/python setup.py install --root="$pkgdir/" --optimize=1
}



:: Proceed with installation? [Y/n]: y
fetching devel info...
==> Making package: azote 1.10.1-1 (Sat 11 Mar 2023 07:20:37 PM EST)
==> Retrieving sources...
  -> Downloading azote-1.10.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 4453k    0 4453k    0     0  8906k      0 --:--:-- --:--:-- --:--:-- 8906k
==> Validating source files with md5sums...
    azote-1.10.1.tar.gz ... Passed
==> Making package: azote 1.10.1-1 (Sat 11 Mar 2023 07:20:38 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found azote-1.10.1.tar.gz
==> Validating source files with md5sums...
    azote-1.10.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting azote-1.10.1.tar.gz with bsdtar
==> Sources are ready.
azote-1.10.1-1: parsing pkg list...
==> Making package: azote 1.10.1-1 (Sat 11 Mar 2023 07:20:39 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running build
running build_py
creating build
creating build/lib
creating build/lib/azote
copying azote/__init__.py -> build/lib/azote
copying azote/color_tools.py -> build/lib/azote
copying azote/colorthief.py -> build/lib/azote
copying azote/common.py -> build/lib/azote
copying azote/main.py -> build/lib/azote
copying azote/plugins.py -> build/lib/azote
copying azote/tools.py -> build/lib/azote
running egg_info
creating azote.egg-info
writing azote.egg-info/PKG-INFO
writing dependency_links to azote.egg-info/dependency_links.txt
writing top-level names to azote.egg-info/top_level.txt
writing manifest file 'azote.egg-info/SOURCES.txt'
reading manifest file 'azote.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSE-COLORTHIEF'
writing manifest file 'azote.egg-info/SOURCES.txt'
/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'azote.images' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'azote.images' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'azote.images' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'azote.images' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
/usr/lib/python3.10/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'azote.langs' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'azote.langs' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'azote.langs' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'azote.langs' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
creating build/lib/azote/images
copying azote/images/azote-wallpaper.jpg -> build/lib/azote/images
copying azote/images/azote-wallpaper1.jpg -> build/lib/azote/images
copying azote/images/azote-wallpaper2.jpg -> build/lib/azote/images
copying azote/images/azote.svg -> build/lib/azote/images
copying azote/images/empty.png -> build/lib/azote/images
copying azote/images/icon.svg -> build/lib/azote/images
copying azote/images/icon_about.svg -> build/lib/azote/images
copying azote/images/icon_all.svg -> build/lib/azote/images
copying azote/images/icon_apply.svg -> build/lib/azote/images
copying azote/images/icon_az.svg -> build/lib/azote/images
copying azote/images/icon_config.svg -> build/lib/azote/images
copying azote/images/icon_flip.svg -> build/lib/azote/images
copying azote/images/icon_image_menu.svg -> build/lib/azote/images
copying azote/images/icon_menu.svg -> build/lib/azote/images
copying azote/images/icon_new.svg -> build/lib/azote/images
copying azote/images/icon_old.svg -> build/lib/azote/images
copying azote/images/icon_picker.svg -> build/lib/azote/images
copying azote/images/icon_refresh.svg -> build/lib/azote/images
copying azote/images/icon_split.svg -> build/lib/azote/images
copying azote/images/icon_za.svg -> build/lib/azote/images
copying azote/images/nwg-shell-sgs.png -> build/lib/azote/images
copying azote/images/squares.jpg -> build/lib/azote/images
creating build/lib/azote/langs
copying azote/langs/de_DE.json -> build/lib/azote/langs
copying azote/langs/en_US.json -> build/lib/azote/langs
copying azote/langs/fr_FR.json -> build/lib/azote/langs
copying azote/langs/pl_PL.json -> build/lib/azote/langs
running install_lib
creating /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib
creating /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10
creating /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages
creating /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/__init__.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/color_tools.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/colorthief.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/common.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/main.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/plugins.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
copying build/lib/azote/tools.py -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote
creating /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/azote-wallpaper.jpg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/azote-wallpaper1.jpg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/azote-wallpaper2.jpg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/azote.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/empty.png -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_about.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_all.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_apply.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_az.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_config.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_flip.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_image_menu.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_menu.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_new.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_old.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_picker.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_refresh.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_split.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/icon_za.svg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/nwg-shell-sgs.png -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
copying build/lib/azote/images/squares.jpg -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/images
creating /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/langs
copying build/lib/azote/langs/de_DE.json -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/langs
copying build/lib/azote/langs/en_US.json -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/langs
copying build/lib/azote/langs/fr_FR.json -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/langs
copying build/lib/azote/langs/pl_PL.json -> /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/langs
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/__init__.py to __init__.cpython-310.pyc
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/color_tools.py to color_tools.cpython-310.pyc
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/colorthief.py to colorthief.cpython-310.pyc
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/common.py to common.cpython-310.pyc
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/main.py to main.cpython-310.pyc
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/plugins.py to plugins.cpython-310.pyc
byte-compiling /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote/tools.py to tools.cpython-310.pyc
writing byte-compilation script '/tmp/tmplbanr2i9.py'
/usr/bin/python /tmp/tmplbanr2i9.py
removing /tmp/tmplbanr2i9.py
running install_egg_info
Copying azote.egg-info to /home/jeremy/.cache/paru/clone/azote/pkg/azote/usr/lib/python3.10/site-packages/azote-1.10.1-py3.10.egg-info
running install_scripts
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "azote"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: azote 1.10.1-1 (Sat 11 Mar 2023 07:20:40 PM EST)
==> Cleaning up...
[sudo] password for jeremy:                 
loading packages...
warning: azote-1.10.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)  Old Version  New Version  Net Change

azote        1.10.1-1     1.10.1-1       0.00 MiB

Total Installed Size:  4.83 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                               [-------------------------------------------] 100%
(1/1) checking package integrity                                             [-------------------------------------------] 100%
(1/1) loading package files                                                  [-------------------------------------------] 100%
(1/1) checking for file conflicts                                            [-------------------------------------------] 100%
(1/1) checking available disk space                                          [-------------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 9
:: Processing package changes...
(1/1) reinstalling azote                                                     [-------------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Foreign/AUR package notification
=> No foreign/AUR packages found.
(3/7) Orphaned package notification...
=> No orphans found.
(4/7) Checking for .pacnew and .pacsave files...
(5/7) Updating the desktop file MIME type cache...
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 10
(7/7) Syncing all file systems...
2 Likes

Many thanks! Maybe something is wrong w/ the users environment? I've never used yay until now.

2 Likes

The really strange thing is they appear to have successfully installed it already, just an older version. It seems like if they had their environment oddly configured somehow, it would have failed the first time around too.

Unless something significant has changed in the package, or in their environment. :thinking:

1 Like

I only replaced

packages=['azote'],

with

packages=find_packages(),

and added:

package_data={
    "": ["images/*", "langs/*"]
},

It works in for all of my other python stuff.

3 Likes

I think they should try building it manually, in case it is just some Yay weirdness.

3 Likes

Such isolated problems are the most difficult to diagnose.

3 Likes

The Azote 1.10.1 issue laid on the user's side. Thanks again for your help.

3 Likes

Any Hyprland users here? I'm working on Hyprland compatibility in nwg-shell. You may track the progress here: nwg-shell Hyprland compatibility · nwg-piotr/nwg-shell · Discussion #91 · GitHub

3 Likes

Yeah, just a proposal. Some issues mentioned in this post come from the Hyprland IP C, that seems to need some more work. However, the HyprlandTaskbar module of the nwg-panel seems to work pretty well for me. Yes, there's no way to find a focused client at the time.

3 Likes

Hey nwg :slight_smile: ,
we need a maintainer for Garuda Hyprland :smiley:

Theme

4 Likes

I may not be familiar with Garuda well enough. When I'm done with my work, nwg-shell will just work with Hyprland, either on Arch, or on derivatives. Dunno if it's enough to make the Garuda Hyprland flavour.

1 Like

If garuda hyprland would be made then would like to contribute for it(if would have something to contribute) ,
but at this point I am neck deep in studies :sweat_smile:

1 Like