Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
fix random bg option. update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Mar 3, 2016
1 parent 0b764e1 commit 89d5d1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Overview

This is the default theme included with [lightdm-webkit2-greeter](http://github.com/Antergos/lightdm-webkit2-greeter). If you are using the Webkit2 greeter, you already have this theme. The theme can also be used with the legacy Webkit1 greeter.
This is the default theme included with [lightdm-webkit2-greeter](http://github.com/Antergos/lightdm-webkit2-greeter). If you are using the Webkit2 greeter, you already have this theme.

### Screenshots
<center>
Expand All @@ -19,14 +19,18 @@ This is the default theme included with [lightdm-webkit2-greeter](http://github.
* lightdm-webkit-greeter

### Installation
Antergos users have this theme installed by default. It can be reinstalled using pacman if needed. Arch users can install [lightdm-webkit2-greeter](https://aur.archlinux.org/packages/lightdm-webkit2-greeter/) from the AUR.
This theme is included with `lightdm-webkit2-greeter` which is installed by default for Antergos users. Non-Antergos users should see [lightdm-webkit2-greeter](https://github.com/Antergos/lightdm-webkit2-greeter/) for install details.

To use this theme with the legacy Webkit1 greeter:
#### ***NOTE:***
The last version of this theme which supports the legacy Webkit1 greeter is [v2.3.2](https://github.com/Antergos/lightdm-webkit-theme-antergos/releases/tag/2.3.2).
Versions of this theme later than ***2.3.2*** will not work with the legacy Webkit1 greeter. If you want to use the latest version of the theme you must use the Webkit2 greeter.

1. Download [Antergos Theme](https://github.com/Antergos/lightdm-webkit-theme-antergos/zipball/master)
2. Unzip it. This should create a folder named like `Antergos-lightdm-webkit-theme-antergos-28c4b13`.
#### To use [v2.3.2](https://github.com/Antergos/lightdm-webkit-theme-antergos/releases/tag/2.3.2) of this theme with the legacy Webkit1 greeter:

1. Download [Antergos Theme](https://github.com/Antergos/lightdm-webkit-theme-antergos/archive/2.3.2.zip)
2. Unzip it. This should create a folder named like `Antergos-lightdm-webkit-theme-antergos-2.3.2`.
3. Rename this folder to `antergos` and copy move it to the themes directory (so that the complete path becomes `/usr/share/lightdm-webkit/themes/antergos`)
4. Edit `/etc/lightdm/lightdm-webkit2-greeter.conf` and set the `webkit-theme` property to `antergos`:
4. Edit `/etc/lightdm/lightdm-webkit-greeter.conf` and set the `webkit-theme` property to `antergos`:

```
[greeter]
Expand Down
4 changes: 3 additions & 1 deletion js/greeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class AntergosBackgroundManager {
localStorage.removeItem( 'bgrandom' );
localStorage.removeItem( 'bgsaved' );
} else {
if ( '0' === localStorage.getItem( 'bgrandom' ) ) {
if ( '1' === localStorage.getItem( 'bgrandom' ) ) {
this.current_background = this.get_random_image();
_util.cache_set( 'true', 'background_manager', 'random_background' );
localStorage.removeItem( 'bgrandom' );
Expand Down Expand Up @@ -317,6 +317,8 @@ class AntergosBackgroundManager {
if ( 'random' === img ) {
_util.cache_set( 'true', 'background_manager', 'random_background' );
img = _bg_self.get_random_image();
} else {
_util.cache_set( 'false', 'background_manager', 'random_background' );
}

_util.cache_set( img, 'background_manager', 'current_background' );
Expand Down

0 comments on commit 89d5d1c

Please sign in to comment.