Skip to content

Commit

Permalink
Added virtual keyboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonstrandum committed Jan 28, 2020
1 parent 5862183 commit 8ade179
Show file tree
Hide file tree
Showing 22 changed files with 1,662 additions and 1,400 deletions.
15 changes: 9 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ Pictures/wallpaper"
if [ -f "$wall" ]; then
wall_base="$(basename "$wall")"
echo " $ARROW Converting $wall_base..."
$MAGICK -quiet -regard-warnings\
"$WALL_ASSETS/$wall_base" -resize 1500 -filter Gaussian -resize 25% \
-define filter:sigma=3 -resize 400% "$WALL_ASSETS/blurred/$wall_base"
$MAGICK -quiet -regard-warnings \
"$WALL_ASSETS/$wall_base" -resize 1500 \
-filter Gaussian -resize '50%' \
-define filter:sigma=6 -resize '200%' \
"$WALL_ASSETS/blurred/$wall_base"
fi
done

Expand All @@ -82,7 +84,6 @@ Pictures/wallpaper"
echo " You might need to give your password for this one."
sudo cp -rf "$WALL_ASSETS"/* /usr/share/backgrounds


IFS="$IFS_OLD"
fi

Expand All @@ -100,6 +101,8 @@ if [ ! -d ./node_modules ]; then
echo "$ARROW \`node_modules\` not found, installing packages..."
$NPM install
echo "Done."
else
echo "$ARROW \`node_moudles\` found, skipping running \`npm install\`."
fi

# `npm` build.
Expand All @@ -111,7 +114,7 @@ echo "Done"
# Build archive.
echo "$ARROW Building directory..."
cd ./dist || exit 1
tar zcvf ../lightdm-saluto.tar.gz ./*
tar zcf ../lightdm-saluto.tar.gz ./*
cd ../ || exit 1
sudo mkdir -p "$THEME_INSTALL_DIR"
sudo mv ./lightdm-saluto.tar.gz "$THEME_INSTALL_DIR"
Expand All @@ -120,7 +123,7 @@ echo "Done"
# Decompressing.
echo "$ARROW Entering directory and running final decompression..."
cd "$THEME_INSTALL_DIR" || exit 1
sudo tar xvf lightdm-saluto.tar.gz
sudo tar xf lightdm-saluto.tar.gz
echo "Done"

echo
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
{
"name": "lightdm-saluto",
"version": "1.0.0",
"license": "MIT",
"author": "Demonstrandum",
"homepage": "https://github.com/Demonstrandum/Saluto",
"repository": "https://github.com/Demonstrandum/Saluto",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"vue": "^2.6.10",
"vue-router": "^3.1.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.0.5",
"@vue/cli-service": "^4.0.5",
"node-sass": "^4.13.0",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.10"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
"name": "lightdm-saluto",
"version": "1.0.0",
"license": "MIT",
"author": "Demonstrandum",
"homepage": "https://github.com/Demonstrandum/Saluto",
"repository": "https://github.com/Demonstrandum/Saluto",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"simple-keyboard": "latest"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.0.5",
"@vue/cli-service": "^4.0.5",
"node-sass": "^4.13.0",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.10"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
180 changes: 95 additions & 85 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,102 +1,112 @@
<template>
<div id="app"
:class="{ 'disableZoom': disableZoom }">
<div id="app" :class="{ 'disableZoom': disableZoom }">
<transition name="fade">
<router-view/>
</transition>
</div>
</template>

<script>
import { settings } from '@/settings';
export default {
mounted() {
this.$router.push('/intro/initial');
},
data() {
return {
disableZoom: settings.disableZoom
}
import { settings } from '@/settings';
export default {
mounted() {
this.$router.push('/intro/initial');
},
data() {
return {
disableZoom: settings.disableZoom
}
}
}
</script>

<style lang="scss">
@import '_theme';
@import '_theme';
html.lightdm {
background: $outer-background;
color: $secondary-color;
}
html.lightdm {
background: $outer-background;
color: $secondary-color;
}
/* HiDPI */
@media screen and (min-width: 3000px) and (min-height: 1200px) {
#app:not(.disableZoom) {
zoom: 2.0;
}
}
@font-face {
font-family: 'Alte Haas Grotesk';
src: url('assets/fonts/AlteHaasGroteskRegular.ttf');
}
@font-face {
font-family: 'Alte Haas Grotesk';
font-weight: bold;
src: url('assets/fonts/AlteHaasGroteskBold.ttf');
}
@font-face {
font-family: 'Input Mono';
src: url('assets/fonts/InputMono-Regular.ttf');
}
@font-face {
font-family: 'Input Mono';
font-style: italic;
src: url('assets/fonts/InputMono-Italic.ttf');
}
html, body, #app, #app > *, .base > * {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
background-size: cover;
border-radius: $screen-radius;
}
h1, h2, h3, h4, h5, h6 {
cursor: default;
}
img {
-webkit-user-drag: none;
}
#app {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
text-align: center;
}
.fade-enter-active, .fade-leave-active {
transition-property: opacity;
transition-duration: .4s;
}
.fade-enter-active {
transition-delay: .4s;
}
/* HiDPI */
.fade-enter, .fade-leave-active {
opacity: 0
@media screen and (min-width: 3000px) and (min-height: 1200px) {
#app:not(.disableZoom) {
zoom: 2.0;
}
}
@font-face {
font-family: 'Alte Haas Grotesk';
src: url('assets/fonts/AlteHaasGroteskRegular.ttf');
}
@font-face {
font-family: 'Alte Haas Grotesk';
font-weight: bold;
src: url('assets/fonts/AlteHaasGroteskBold.ttf');
}
@font-face {
font-family: 'Input Mono';
src: url('assets/fonts/InputMono-Regular.ttf');
}
@font-face {
font-family: 'Input Mono';
font-style: italic;
src: url('assets/fonts/InputMono-Italic.ttf');
}
html,
body,
#app,
#app>*,
.base>* {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
background-size: cover;
border-radius: $screen-radius;
}
h1,
h2,
h3,
h4,
h5,
h6 {
cursor: default;
}
img {
-webkit-user-drag: none;
}
#app {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
text-align: center;
}
.fade-enter-active,
.fade-leave-active {
transition-property: opacity;
transition-duration: .4s;
}
.fade-enter-active {
transition-delay: .4s;
}
.fade-enter,
.fade-leave-active {
opacity: 0
}
.visible {
visibility: visible !important;
}
</style>
Loading

0 comments on commit 8ade179

Please sign in to comment.