Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer and Error Fixes #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 25 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# Minimalistic lightdm-webkit2-greeter theme
Simple theme for lightdm display manager with webkit2 greeter.
![Screen sample 1](https://github.com/dimaglushkov/lightdm-webkit2-theme-minimal/blob/master/assets/screenshots/screenshot-1.jpg)

![Screen sample 2](https://github.com/dimaglushkov/lightdm-webkit2-theme-minimal/blob/master/assets/screenshots/screenshot-2.jpg)


## Installation
1. Clone or download this repo
2. Copy content of the repo to `/usr/share/lightdm-webkit/themes/minimal`
2. Install `lightdm` and `lightdm-webkit2-greeter`
4. Set webkit2 greeter as your greeter by editing file `/etc/lightdm/lightdm.conf`:
```
[Seat:*]
...
greeter-session=lightdm-webkit2-greeter
```

5. Set this theme as greeter theme by editing file `/etc/lightdm/lightdm-webkit2-greeter.conf`:
```
webkit_theme = minimal
```

![Screen sample 1](./screenshots/screenshot-1.jpg)

![Screen sample 2](./screenshots/screenshot-2.jpg)

## Simple theme for lightdm display manager with webkit2 greeter.

### Installation

This is a theme for [web greeter](https://github.com/Antergos/web-greeter) therefore that must be installed first.

1. `git clone https://github.com/dimaglushkov/lightdm-webkit2-theme-minimal`
1. `cd lightdm-webkit2-theme-minimal`
1. `sudo ./install.sh`
1. Set this theeme as greeter theme by adding `webkit_theme=minimal` to `/etc/lightdm/lightdm-webkit2-greeter.conf`
1. Set webkit2 greeter as your greeter by adding `greeter-session=lightdm-webkit2-greeter` to `/etc/lightdm/lightdm.conf`

### Requirements

- [lightdm](https://github.com/canonical/lightdm)
- [web greeter](https://github.com/Antergos/web-greeter)

### Developing

To make the developing experience more enjoyable the theme can be deployed in a browser as well as natively. To test the theme natively run `sudo ./install.sh --test-mode` this will install the theme and then open a window showing the theme. See [web greeter](https://github.com/Antergos/web-greeter) for more details on how to setup web-greeter for debugging.
17 changes: 17 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

theme_location='/usr/share/lightdm-webkit/themes/minimal'

echo 'Removing existing theme...'
rm -rf "$theme_location"
echo 'Coping files...'
cp -r src "$theme_location"

echo 'Complete'

if [ "$1" == "--test-mode" ]
then
lightdm-webkit2-greeter
fi
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion index.theme → src/index.theme
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ name=minimal
description=A minimal theme for lightdm webkit2 greeter
engine=lightdm-webkit-greeter
url=index.html
session=i3
File renamed without changes.