Skip to content

Commit

Permalink
Merge pull request #876 from mariux64/add-slick-greeter-1.2.2
Browse files Browse the repository at this point in the history
slick-greeter: a 'user interface' for lightdm
  • Loading branch information
donald authored Sep 14, 2018
2 parents a3e502c + ce13ba2 commit 64a7895
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions slick-greeter.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/usr/bin/env beesh

# BEE_VERSION slick-greeter-1.2.2-0

SRCURL[0]="https://github.com/linuxmint/slick-greeter/archive/${PKGVERSION}.tar.gz slick-greeter-${PKGVERSION}.tar.gz"

# PATCHURL+=()

# EXCLUDE+=()

build_in_sourcedir # or the 'badges' won't be installed

# mee_extract() {
# bee_extract "${@}"
# }

mee_patch() {
# bee_patch "${@}"
# our session descriptors are way large ...
sed -i -e '/BOX_WIDTH/ s/BOX_WIDTH = 8;/BOX_WIDTH = 11;/' ${S}/src/greeter-list.vala
# we also think differently if it comes to the name of the default session :)
sed -i -e '/sessions.append ("cinnamon");/ i \ sessions.append ("00-default");' ${S}/src/slick-greeter.vala
}

# mee_configure() {
# bee_configure
# }

# mee_build() {
# bee_build
# }

# mee_install() {
# bee_install
# }
## by default this may be 'make install DESTDIR="${D}"'

mee_install_post() {

###########################
# write our default config

local slickgreeterconf=/etc/lightdm/slick-greeter.conf
mkdir -vp ${D}/etc/lightdm

cat <<-CONF > ${D}/${slickgreeterconf}
# config options are listed here:
#
# https://github.com/linuxmint/slick-greeter/blob/master/README.md
#
draw-user-backgrounds=false
play-ready-sound=false
# accessibility doesn't really help, and would require 'https://launchpad.net/onboard'
show-a11y=false
# since german is hammered into /etc/local/X11_xorg.conf, we can skip this
# (also 'de nodeadkeys' looks silly).
show-keyboard=false
# well, no nifty background right now
# background=/tmp/test_bg.png
CONF

chmod 644 ${D}/${slickgreeterconf}


####################################################
# make the mariux session names known to the badges

local sessionfile
local badgedir=${D}/usr/share/slick-greeter/badges

for sessionfile in /usr/share/xsessions/*.desktop ; do

local dsb=$(basename ${sessionfile} .desktop)

test -e ${badgedir}/${dsb}.png && continue
test -e ${badgedir}/${dsb}.svg && continue

case ${dsb} in
xfce*)
ln -v -s xfce.svg ${badgedir}/${dsb}.svg
;;
*)
ln -v -s usr.png ${badgedir}/${dsb}.png
;;
esac

done

}

0 comments on commit 64a7895

Please sign in to comment.