Skip to content

Commit

Permalink
Fix clock, add BSPWM
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonstrandum committed Jan 28, 2020
1 parent 8ade179 commit df23021
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 16 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
* [Screenshots](#screenshots)
+ [Splash Screen](#splash-screen)
+ [Login Screen](#login-screen)
+ [Login Screen with Virtual Keyboard](#login-screen-with-virtual-keyboard)
+ [Login Screen with Clock](#login-screen-with-clock)
+ [Settings Screen](#settings-screen)
+ [Theming Screen](#theming-screen)

## Installation

Expand Down Expand Up @@ -65,16 +67,24 @@ A live preview of what your greeter may look like may be viewed by either:

### Splash Screen

![splash](https://github.com/Demonstrandum/Saluto/blob/master/demo/splash.png?raw=true)
![splash](demo/splash.png)

### Login Screen

![login](https://github.com/Demonstrandum/Saluto/blob/master/demo/login.png?raw=true)
![login](demo/login.png)

### Login Screen with Virtual Keyboard

![login-keyboard](demo/login-keyboard.png)

### Login Screen with Clock

![login-with-clock](https://github.com/Demonstrandum/lightdm-eh8/blob/master/demo/login-clock.png?raw=true)
![login-clock](demo/login-clock.png)

### Settings Screen

![settings](https://github.com/Demonstrandum/Saluto/blob/master/demo/settings.png?raw=true)
![settings](demo/settings.png)

### Theming Screen

![theming](demo/theming.png)
Binary file modified demo/login-clock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/login-keyboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/theming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/default_images/desktops/bspwm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions src/components/Clock.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<template>
<div class="clock" :class="{ 'small': small }">
<span id="hours">
{{ part !== '' ? hours : $options.filters.pad(hours) }}
</span>
:{{ minutes | pad }}
<span id="hours">{{ part !== '' ? hours : $options.filters.pad(hours) }}</span>:{{ minutes | pad }}
<span id="part">{{ part }}</span>

<div id="date">
Expand Down
2 changes: 2 additions & 0 deletions src/components/SelectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export default {
icon = "kde";
} else if (key.indexOf("gnome") > -1) {
icon = "gnome";
} else if (key.indexOf("bspwm") > -1) {
icon = "bspwm";
} else if (key.indexOf("xfce") > -1) {
icon = "xfce";
} else if (key.indexOf("unity") > -1 || key.indexOf("ubuntu") > -1) {
Expand Down
4 changes: 2 additions & 2 deletions src/lightdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ if (window.lightdm_debug) {
key: 'xfce'
},
{
name: 'Cinnamon',
key: 'cinnamon'
name: 'BSPWM',
key: 'bspwm'
},
{
name: 'i3wm',
Expand Down
31 changes: 25 additions & 6 deletions src/themer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
import { settings } from './settings';

export const DEFAULT_COLOR = '#657285';
const DEFAULT_BG = {
default: require('./assets/images/wallpapers/background.png'),
blurred: require('./assets/images/wallpapers/blurred/background.png')
};

const wall_dir = './assets/images/wallpapers';
const require_wallpaper = wallpaper => ({
default: require(`${wall_dir}/${wallpaper}`),
blurred: require(`${wall_dir}/blurred/${wallpaper}`)
});

const DEFAULT_NAMES = [
'background.png',
'1532564867739.png', '1579652499063.jpg',
'EJ2tvsICil0.jpg', '1532575538303.jpg',
'Solid_Aqua_Graphite.png'
];

const DEFAULT_WALLPAPERS = DEFAULT_NAMES.map(require_wallpaper);

const unique_objects = _ =>
_.map(JSON.stringify)
.filter((e, i, self) => self.indexOf(e) === i)
.map(JSON.parse);

export let color = localStorage.getItem('color') || DEFAULT_COLOR;
export let background = getBackground();
Expand Down Expand Up @@ -47,7 +63,10 @@ export function backgrounds() {
};

let result = dirlist(greeter_config.branding.background_images);
return [DEFAULT_BG, ...result];
return unique_objects([
...DEFAULT_WALLPAPERS,
...result
]);
}

function getBackground() {
Expand All @@ -57,7 +76,7 @@ function getBackground() {
}

if (!localStorage.getItem('background'))
return DEFAULT_BG;
return DEFAULT_WALLPAPERS[0];
return {
default: localStorage.getItem('background'),
blurred: localStorage.getItem('background_blurred')
Expand Down

0 comments on commit df23021

Please sign in to comment.