Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit c2cf9fa

Browse files
author
Phuntsok Drak-pa
authored
Merge pull request #3 from GitSquared/master
yet another update from main repo
2 parents bd42019 + 3fff3c5 commit c2cf9fa

File tree

11 files changed

+514
-50
lines changed

11 files changed

+514
-50
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ before_install:
99
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libc6-dev-i386 gcc-multilib g++-multilib ; fi
1010

1111
before_script:
12+
- npm install snyk
13+
- npm run snyk-protect
1214
- npm install
1315

1416
script:

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
</p>
66

77

8-
Download | Linux & MacOS | Windows | Dependencies | Build system | Source
9-
--------- | ------------- | ------- | ------------ | ------------ | ------
8+
Download | Linux & macOS | Windows | Dependencies | Build system | Source
9+
-------- | ------------- | ------- | ------------ | ------------ | ------
1010
[![Release Badge](https://badgen.net/github/release/GitSquared/edex-ui)](https://github.com/GitSquared/edex-ui/releases) | [![Build Status](https://travis-ci.org/GitSquared/edex-ui.svg?branch=master)](https://travis-ci.org/GitSquared/edex-ui) | [![Build status](https://ci.appveyor.com/api/projects/status/leb069bro8gwocu7/branch/master?svg=true)](https://ci.appveyor.com/project/GitSquared/edex-ui/branch/master) | [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=GitSquared/edex-ui)](https://dependabot.com) | [![Known Vulnerabilities](https://snyk.io/test/github/GitSquared/edex-ui/badge.svg?targetFile=package.json)](https://snyk.io/test/github/GitSquared/edex-ui?targetFile=package.json) | [![Known Vulnerabilities](https://snyk.io/test/github/GitSquared/edex-ui/badge.svg?targetFile=src%2Fpackage.json)](https://snyk.io/test/github/GitSquared/edex-ui?targetFile=src%2Fpackage.json)
1111

1212
eDEX-UI is a fullscreen desktop application resembling a sci-fi computer interface, heavily inspired from [DEX-UI](https://github.com/seenaburns/dex-ui) and the [TRON Legacy movie effects](https://web.archive.org/web/20170511000410/http://jtnimoy.com/blogs/projects/14881671). It runs the shell of your choice in a real terminal, and displays live information about your system. It was made to be used on large touchscreens but will work nicely on a regular desktop computer or perhaps a tablet PC or one of those funky 360° laptops with touchscreens.
1313

1414
I had no ideas for a name so i took DEX-UI and added a "e" for Electron. Deal with it.
1515

16+
([Official ArchLinux AUR package](https://aur.archlinux.org/packages/edex-ui/) maintained by [@JesusCrie](https://github.com/JesusCrie))
17+
1618
## Screenshots
1719
![Default screenshot](https://github.com/GitSquared/edex-ui/raw/master/media/screenshot_default.png)
1820

@@ -28,9 +30,9 @@ _([fx](https://github.com/antonmedv/fx) showing the results of a [ipapi](https:/
2830

2931
## Q&A
3032
#### What OS can this thing run on?
31-
Currently Windows, the latest MacOS and any linux distro that can run Chromium (AppImage package).
33+
Currently Windows, the latest macOS and any Linux distro that can run Chromium (AppImage package).
3234
#### Is this a real terminal?
33-
Yes. By default, eDEX runs bash on linux and Powershell on Windows, but you can change that to any command in the settings.json file.
35+
Yes. By default, eDEX runs bash on Linux and Powershell on Windows, but you can change that to any command in the settings.json file.
3436
#### I don't like the colors/the keyboard layout is not right for me!
3537
We got you covered! Check the [repo's Wiki](https://github.com/GitSquared/edex-ui/wiki) for in-depth information about customizing eDEX.
3638
#### Why is there a keyboard?
@@ -45,16 +47,18 @@ Seenaburns' DEX-UI was created _"as an experiment or an art piece, not distribut
4547
- [Linux Uprising Blog](https://www.linuxuprising.com/2018/11/edex-ui-fully-functioning-sci-fi.html)
4648
- [My post on r/unixporn](https://www.reddit.com/r/unixporn/comments/9ysbx7/oc_a_little_project_that_ive_been_working_on/)
4749
- [Korben article (in french)](https://korben.info/une-interface-futuriste-pour-vos-ecrans-tactiles.html)
50+
- [Hacker News](https://news.ycombinator.com/item?id=18509828)
51+
- [This tweet that made me smile](https://twitter.com/mikemaccana/status/1065615451940667396)
4852

4953

5054
## Useful commands for the nerds
5155
#### Starting from source:
52-
on *nix systems (You'll need the Xcode command line tools on MacOS):
56+
on *nix systems (You'll need the Xcode command line tools on macOS):
5357
- clone the repository
5458
- `npm run install-linux`
5559
- `npm start`
5660

57-
on windows:
61+
on Windows:
5862
- start cmd or powershell **as administrator**
5963
- clone the repository
6064
- `npm run install-windows`

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pull_requests:
44
install:
55
- ps: Install-Product node 8
66
build_script:
7-
- cmd: npm install && npm install 7zip-bin-win && npm run build-windows
7+
- cmd: npm install snyk && npm run snyk-protect && npm install && npm install 7zip-bin-win && npm run build-windows
88
test: off
99
artifacts:
1010
- path: "dist\\eDEX-UI Windows Installer.exe"

package-lock.json

Lines changed: 36 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"postbuild-linux": "rm -R prebuild-src",
2727
"postbuild-darwin": "rm -R prebuild-src",
2828
"postbuild-windows": "rmdir /S /Q prebuild-src",
29-
"snyk-protect": "snyk protect",
30-
"prepare": "npm run snyk-protect"
29+
"snyk-protect": "snyk protect"
3130
},
3231
"repository": {
3332
"type": "git",
@@ -108,8 +107,8 @@
108107
"electron-rebuild": "1.8.2",
109108
"node-abi": "2.5.0",
110109
"node-json-minify": "1.0.0",
111-
"snyk": "^1.108.2",
112-
"uglify-es": "3.3.10"
110+
"snyk": "^1.110.1",
111+
"uglify-es": "3.3.9"
113112
},
114113
"snyk": true
115114
}

src/_boot.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@ fs.readdirSync(innerFontsDir).forEach((e) => {
8080

8181
function createWindow(settings) {
8282
signale.info("Creating window...");
83-
let {x, y, width, height} = electron.screen.getPrimaryDisplay().bounds;
83+
84+
let display;
85+
if (!isNaN(settings.monitor)) {
86+
display = electron.screen.getAllDisplays()[settings.monitor] || electron.screen.getPrimaryDisplay();
87+
} else {
88+
display = electron.screen.getPrimaryDisplay();
89+
}
90+
let {x, y, width, height} = display.bounds;
8491
width++; height++;
8592
win = new BrowserWindow({
8693
title: "eDEX-UI",

src/assets/css/keyboard.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ div.keyboard_key > h3 {
120120
right: 0.278vh;
121121
}
122122

123+
div.keyboard_key > h5 {
124+
top: 0.278vh;
125+
right: 0.278vh;
126+
}
127+
123128
div.keyboard_key > h4, div.keyboard_row > .keyboard_key:last-child > *:not(h1), div.keyboard_row > .keyboard_key:first-child > *:not(h1) {
124129
opacity: 0;
125130
position: absolute;

0 commit comments

Comments
 (0)