From 13d9fde9f59a4c805cf4d020a8e603332be9154e Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 10 Sep 2020 21:37:46 -0500 Subject: [PATCH] Support PNG wallpapers, exclude sway wallpapers --- PKGBUILD | 4 ++-- sway-wlgreet.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 2a462a4..dbb5f4a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: David Thurstenson pkgname=greetd-tlgreet -pkgver=0.3 +pkgver=0.4 pkgrel=1 pkgdesc="Thurstylark's greetd + wlgreet setup" arch=(any) @@ -15,7 +15,7 @@ source=("greetd.toml" "waybar.css" "greetd.service.override.conf") md5sums=('db675a996223c3f155885d7494b16282' - '00f6fd55e5ddb9dd2f4a24d7a0b64a34' + '167d68617d8ef5da0013449e27a4a495' '4c1b6e5dff4071bff81e935322743974' 'bfdda1ad67829fd55d3612c857df18dc' '0b3156d2868912d8b4141428b72b4bbe' diff --git a/sway-wlgreet.conf b/sway-wlgreet.conf index 826d2a3..093282b 100644 --- a/sway-wlgreet.conf +++ b/sway-wlgreet.conf @@ -9,7 +9,7 @@ # # Wallpapers dir -set $wallpapers-path /usr/share/backgrounds/ +set $wallpapers-path /usr/share/backgrounds # Fallback color if no wallpapers exist set $fallback-color "#333333" @@ -37,7 +37,7 @@ set $waybar-css /etc/greetd/tlgreet/waybar.css # # Set the wallpaper to a random file in the wallpapers dir -output * bg `find $wallpapers-path -type f -name *.jpg | shuf -n 1` fill $fallback-color +output * bg $$(find $wallpapers-path -type f \( -iname \*.jpg -o -iname \*.png \) -not -path $wallpapers-path/sway/\* | shuf -n 1) fill $fallback-color # Touchpad options input $touchpad {