Update to use new tl-wallpaper shuffle script

This commit is contained in:
David Thurstenson 2022-01-20 19:38:08 -06:00
parent dbd2ad0604
commit 119ab59fdc
2 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,13 @@
# Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=greetd-tlgreet
pkgver=0.6
pkgver=0.7
pkgrel=1
pkgdesc="Thurstylark's greetd + wlgreet setup"
arch=(any)
url="https://git.thurstylark.com/greetd-tlgreet.git/"
license=('GPL')
depends=(greetd greetd-wlgreet sway swayidle waybar)
optdepends=(tl-wallpaper archlinux-wallpaper)
depends=(greetd greetd-wlgreet sway swayidle waybar tl-wallpaper)
optdepends=(archlinux-wallpaper)
source=("greetd.toml"
"sway-wlgreet.conf"
"wlgreet.toml"
@ -15,7 +15,7 @@ source=("greetd.toml"
"waybar.css"
"greetd.service.override.conf")
md5sums=('db675a996223c3f155885d7494b16282'
'706fb4f44e3cac99d3d737566426212a'
'c49b0b834d84f5282a089abce390fa98'
'4c1b6e5dff4071bff81e935322743974'
'bfdda1ad67829fd55d3612c857df18dc'
'0b3156d2868912d8b4141428b72b4bbe'

View File

@ -8,8 +8,8 @@
# Settings
#
# Wallpapers dir
set $wallpapers-path /usr/share/backgrounds
# Use script to grab a random wallpaper from tl-wallpaper collection
set $wallpaper-path $$(/usr/share/backgrounds/thurstylark/tl-wallpaper-shuf.bash)
# Fallback color if no wallpapers exist
set $fallback-color "#333333"
@ -47,7 +47,7 @@ set $waybar-css /etc/greetd/tlgreet/waybar.css
bindsym Mod4+Shift+r exit
# Set the wallpaper to a random file in the wallpapers dir
output * bg $$(find $wallpapers-path -type f \( -iname \*.jpg -o -iname \*.png \) -not -path $wallpapers-path/sway/\* | shuf -n 1) fill $fallback-color
output * bg $wallpaper-path fill $fallback-color
# Touchpad options
input $touchpad {