Skip to content

Commit

Permalink
Update docs and deb
Browse files Browse the repository at this point in the history
  • Loading branch information
rda0 committed Apr 5, 2022
1 parent 41834db commit aca19ac
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 131 deletions.
8 changes: 4 additions & 4 deletions .debmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
TARGET="usr/share/lightdm-webkit/themes/luminosity"
TARGET="usr/share/web-greeter/themes/luminosity"
HOMEPAGE="https://github.com/rda0/web-greeter-theme-luminosity.git"
DEPENDS="lightdm-webkit2-greeter"
PREDEPENDS="python3, graphicsmagick-imagemagick-compat | imagemagick-6.q16"
DEPENDS="web-greeter"
PREDEPENDS="python3, graphicsmagick"
SUGGESTS="light-locker"
DESCRIPTION_SHORT="Customizable LightDM Web Greeter theme"
DESCRIPTION_LONG="This dark theme was built for use on Linux Workstations at the Department of Physics ETH Zurich, because there was no suitable theme available that would allow us to use it in combination with a central authentication provider like LDAP or Kerberos. Other themes present a list of users to select from, as it is done with the default LightDM configuration, which does not scale with thousands of LDAP user accounts"
SECTION="x11"
VERSION="0.8.7"
VERSION="1.0.0"
26 changes: 16 additions & 10 deletions .debmake.changelog
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
lightdm-webkit2-greeter-theme-luminosity (0.8.7-1) bionic; urgency=medium
web-greeter-theme-luminosity (1.0.0-1) jammy; urgency=medium

* Adapt for web-greeter 3.4.0.

-- Sven Mäder (rda) <[email protected]> Tue, 05 Apr 2022 14:44:00 +0200

web-greeter-theme-luminosity (0.8.7-1) bionic; urgency=medium

* New upstream release.

-- Sven Mäder (rda) <[email protected]> Fri, 06 Sep 2019 10:47:48 +0200

lightdm-webkit2-greeter-theme-luminosity (0.8.6-2) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.6-2) bionic; urgency=medium

* Fix package dependencies.

-- Sven Mäder (rda) <[email protected]> Wed, 05 Dec 2018 12:44:26 +0100

lightdm-webkit2-greeter-theme-luminosity (0.8.6-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.6-1) bionic; urgency=medium

* Add exception handling.
* Fix race condition with async config loading.
Expand All @@ -22,43 +28,43 @@ lightdm-webkit2-greeter-theme-luminosity (0.8.6-1) bionic; urgency=medium

-- Sven Mäder (rda) <[email protected]> Wed, 05 Dec 2018 12:18:40 +0100

lightdm-webkit2-greeter-theme-luminosity (0.8.5-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.5-1) bionic; urgency=medium

* Fix theme loading bug.

-- Sven Mäder (rda) <[email protected]> Fri, 30 Nov 2018 13:30:22 +0100

lightdm-webkit2-greeter-theme-luminosity (0.8.4-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.4-1) bionic; urgency=medium

* Add greeter error handling.

-- Sven Mäder (rda) <[email protected]> Fri, 30 Nov 2018 12:03:58 +0100

lightdm-webkit2-greeter-theme-luminosity (0.8.3-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.3-1) bionic; urgency=medium

* New upstream release.

-- Sven Mäder (rda) <[email protected]> Thu, 12 Jul 2018 16:50:12 +0200

lightdm-webkit2-greeter-theme-luminosity (0.8.2-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.2-1) bionic; urgency=medium

* New upstream release.

-- Sven Mäder (rda) <[email protected]> Tue, 10 Jul 2018 16:10:09 +0200

lightdm-webkit2-greeter-theme-luminosity (0.8.1-2) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.1-2) bionic; urgency=medium

* Add missing config file background.json.

-- Sven Mäder (rda) <[email protected]> Mon, 09 Jul 2018 15:59:13 +0200

lightdm-webkit2-greeter-theme-luminosity (0.8.1-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.1-1) bionic; urgency=medium

* New upstream release.

-- Sven Mäder (rda) <[email protected]> Fri, 29 Jun 2018 14:03:24 +0200

lightdm-webkit2-greeter-theme-luminosity (0.8.0-1) bionic; urgency=medium
web-greeter-theme-luminosity (0.8.0-1) bionic; urgency=medium

* Initial release.

Expand Down
2 changes: 1 addition & 1 deletion .debmake.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

SCRIPT="/usr/share/lightdm-webkit/themes/luminosity/generate-images.py"
SCRIPT="/usr/share/web-greeter/themes/luminosity/generate-images.py"

[ -x ${SCRIPT} ] && ${SCRIPT}

Expand Down
88 changes: 11 additions & 77 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Many thanks to the following guys for their support on this project.
- Shows useful static information
- Short feedback after authenticating (success/failure)
- Drop-down list for session selection
- Wallpaper changer (todo)
- Wallpaper changer

## Screenshots

Expand Down Expand Up @@ -74,13 +74,13 @@ To select luminosity as default theme just change the `greeter.theme` property i

```
greeter:
debug_mode: False
detect_theme_errors: True
screensaver_timeout: 300
secure_mode: True
theme: luminosity
icon_theme:
time_language:
debug_mode: False
detect_theme_errors: True
screensaver_timeout: 300
secure_mode: True
theme: luminosity
icon_theme:
time_language:
```

Now restart `lightdm`:
Expand All @@ -89,73 +89,7 @@ Now restart `lightdm`:
systemctl restart lightdm.service
```

## Configuration

The theme configuration is read from `branding.theme` (optional), example:

```yaml
branding:
background_images_dir: /usr/share/backgrounds
logo_image: /usr/share/web-greeter/themes/default/img/antergos-logo-user.png
user_image: /usr/share/web-greeter/themes/default/img/antergos.png
theme:
username_area:
title: Authentication
title_locked: Authentication
comment: Enter your Account name to sign in
comment_locked: Enter your Account name to unlock / sign in
password_area:
comment: Please enter your Password
active_sessions_label: Locked Sessions
info_top:
- label: OS Version
value: Ubuntu 22.04 Jammy
- label: Authorized Users
value: Student
- label: Managed by
value: ISG DPHYS
info_bottom:
- label: Documentation
value: readme.phys.ethz.ch
- label: Announcements
value: isg.phys.ethz.ch
- label: Chat
value: chat.phys.ethz.ch
- label: Mail
value: [email protected]
- label: Tel
value: '+41 44 633 26 68'
banner: dphys
logo: ethz
styles:
panel:
position: 'absolute'
width: '450px'
top: '50%'
left: '50%'
transform: 'translate(-50%, -50%)'
content:
height: '541px'
panels_shadow:
boxShadow: '0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)'
panels_color:
background: 'rgba(0,0,0,.7)'
color: '#fff'
status_panel:
background: 'rgba(143,0,17,.6)'
color: '#fff'
status_panel_granted:
background: 'rgba(66,133,244,.6)'
status_panel_granted_green:
background: 'rgba(66,244,95,.6)'
status_panel_denied:
background: 'rgba(143,0,17,.6)'
contentFooter:
paddingTop: '0px'
background:
backgroundPosition: 'center'
backgroundSize: 'cover'
```
The theme can be customized in `branding.theme` (optional), see [docs](https://github.com/rda0/web-greeter-theme-luminosity/blob/master/doc/etc/lightdm/web-greeter.conf) for example. To generate thumbnails run `generate-images.py` (requires `graphicsmagick`).

## Using light-locker

Expand Down Expand Up @@ -209,5 +143,5 @@ To uninstall, simply restore the `greeter-session` property of the `/etc/lightdm

You may also want to:

- Remove the folder `luminosity` which was created in `/usr/share/lightdm-webkit/themes/`
- Restore the `webkit-theme` property of the `/etc/lightdm/lightdm-webkit-greeter.conf` file
- Remove the folder `luminosity` which was created in `/usr/share/web-greeter/themes/`
- Restore the `webkit-theme` property of the `/etc/lightdm/web-greeter.conf` file
35 changes: 0 additions & 35 deletions doc/etc/lightdm/lightdm-webkit2-greeter.conf

This file was deleted.

6 changes: 3 additions & 3 deletions doc/etc/lightdm/lightdm.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[SeatDefaults]
greeter-session=lightdm-webkit2-greeter
[Seat:*]
greeter-session=web-greeter
greeter-show-manual-login=true
greeter-hide-users=true
user-session=ubuntu
user-session=gnome
allow-guest=false
# display-setup-script=xrandr --output DP-0 --primary
118 changes: 118 additions & 0 deletions doc/etc/lightdm/web-greeter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
#
# branding:
# background_images_dir: Path to directory that contains background images for use by themes.
# logo_image: Path to logo image for use by greeter themes.
# user_image: Default user image/avatar. This is used by themes when user has no .face image.
#
# NOTE: Paths must be accessible to the lightdm system user account (so they cannot be anywhere in /home)
#
branding:
background_images_dir: /usr/share/backgrounds
logo_image: /usr/share/web-greeter/themes/default/img/antergos-logo-user.png
user_image: /usr/share/web-greeter/themes/default/img/antergos.png
theme:
username_area:
title: Authentication
title_locked: Authentication
comment: Enter your Account name to sign in
comment_locked: Enter your Account name to unlock / sign in
password_area:
comment: Please enter your Password
active_sessions_label: Locked Sessions
info_top:
- label: OS Version
value: Ubuntu 22.04 Jammy
- label: Authorized Users
value: Student
- label: Managed by
value: ISG DPHYS
info_bottom:
- label: Documentation
value: readme.phys.ethz.ch
- label: Announcements
value: isg.phys.ethz.ch
- label: Chat
value: chat.phys.ethz.ch
- label: Mail
value: [email protected]
- label: Tel
value: '+41 44 633 26 68'
banner: dphys
logo: ethz
styles:
panel:
position: 'absolute'
width: '450px'
top: '50%'
left: '50%'
transform: 'translate(-50%, -50%)'
content:
height: '541px'
panels_shadow:
boxShadow: '0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)'
panels_color:
background: 'rgba(0,0,0,.7)'
color: '#fff'
status_panel:
background: 'rgba(143,0,17,.6)'
color: '#fff'
status_panel_granted:
background: 'rgba(66,133,244,.6)'
status_panel_granted_green:
background: 'rgba(66,244,95,.6)'
status_panel_denied:
background: 'rgba(143,0,17,.6)'
contentFooter:
paddingTop: '0px'
background:
backgroundPosition: 'center'
backgroundSize: 'cover'

#
# greeter:
# debug_mode: Enable debug mode for the greeter as well as greeter themes.
# detect_theme_errors: Provide an option to load a fallback theme when theme errors are detected.
# screensaver_timeout: Blank the screen after this many seconds of inactivity.
# secure_mode: Don't allow themes to make remote http requests.
# theme: Greeter theme to use.
# icon_theme: Icon/cursor theme to use, located in /usr/share/icons/, i.e. "Adwaita". Set to None to use default icon theme.
# time_language: Language to use when displaying the date or time, i.e. "en-us", "es-419", "ko", "ja". Set to None to use system's language.
#
# NOTE: See IANA subtags registry for time_language options: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
#
greeter:
debug_mode: False
detect_theme_errors: True
screensaver_timeout: 300
secure_mode: True
theme: luminosity
icon_theme:
time_language:

#
# layouts A list of preferred layouts to use
# - us "en_us" xkb layout
# - latam "es_latam" xkb layout
# - gb dvorak "en_gb_dvorak" xkb layout
#
# NOTE: See "man xkeyboard-config" for posible layout values. Also, see posible layouts here: https://web.archive.org/web/20161203032703/http://pastebin.com/v2vCPHjs
# A layout value is composed in the main layout, like "us" or "latam", and its variant, like "dvorak", "colemak", "mac" or "mac_intl"
#
layouts:
- us
- latam

#
# features:
# battery: Enable greeter and themes to get battery status.
# backlight:
# enabled: Enable greeter and themes to control display backlight.
# value: The amount to increase/decrease brightness by greeter.
# steps: How many steps are needed to do the change. 0 for instant change.
#
features:
battery: False
backlight:
enabled: False
value: 10
steps: 0
2 changes: 1 addition & 1 deletion index.theme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[theme]
name=Luminosity
description=Luminosity Theme
engine=lightdm-webkit2-greeter
engine=web-greeter
url=index.html
session=ubuntu

0 comments on commit aca19ac

Please sign in to comment.