Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoker0 committed Mar 11, 2023
0 parents commit 3029540
Show file tree
Hide file tree
Showing 19 changed files with 4,845 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
}
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright © 2023 QuanMCPC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Better Tuxedo Keyboard Backlight Controller
A minimal UI to control the backlight of Tuxedo/Clevo compatible keyboard.

## I. Why is it better?
- It's bundled in an AppImage (which you can find in th Releases page) so you don't have to install any package.
- It have a simple but clean UI.
- It give you more control like the brightness or the backlight color which you can pick from over 16.7 million different colors.

## II. How to use?
- Download the AppImage from the Releases page
- Run it
- That's it.

## III. Build
### 1. Dependencies
- NodeJS ([https://nodejs.org/en/](https://nodejs.org/en/))
- Rust ([https://www.rust-lang.org/](https://www.rust-lang.org/))
- Rustup
- Cargo

### 2. Steps to build
- Clone the repository
```bash
git clone https://github.com/QuanMCPC/TuxedoBacklightController
cd TuxedoBacklightController
```

- Install required `npm` dependencies
```bash
npm install
```

- If you want to directly run the program for debugging purposes:
```bash
npm run tauri dev
```

- OR if you want to build the program:
```bash
npm run tauri build
```

## IV. Contribute
PR and Issues are always welcome. Although don't expect active development or quick responses since I have to study a lot these days.

## V. Licenses
Released under MIT License
107 changes: 107 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/styles.css">
<script type="module" src="./src/main.ts" defer></script>
<title>Tuxedo Keyboard Backlight Controller</title>
</head>
<body>
<div id="error" class="hidden">
<h1 id="error_title">ERROR: $_error_title</h1>
<p id="error_detail">Detail: $_error_detail</p>
<p id="error_solutions">Solutions: $_error_solutions</p>
</div>
<div id="main">
<div class="row" id="enableBacklight">
<div class="left">
<label>Enable backlight:</label>
</div>
<div class="right">
<label class="switch">
<input type="checkbox" class="function">
<span class="slider"></span>
</label>
</div>
</div>
<div class="row dg-1" id="backlightMode">
<div class="left">
<label for="blmode">Backlight mode:</label>
</div>
<div class="right">
<select name="blmode" id="blmode" class="function">
<option value="0">Color</option>
<option value="1">Breathe</option>
<option value="2">Cycle</option>
<option value="3">Dance</option>
<option value="4">Flash</option>
<option value="5">Random Color</option>
<option value="6">Tempo</option>
<option value="7">Wave</option>
</select>
</div>
</div>
<div class="row dg-1 dg-2" id="brightness">
<div class="left">
<label for="blbrightness">Brightness:</label>
</div>
<div class="right">
<input type="number" name="blbrightness" id="blbrightness" min="0" max="255" value="0" class="function">
</div>
</div>
<div class="row dg-1 dg-2" id="colorMode">
<div class="left">
<label for="clmode">Color mode:</label>
</div>
<div class="right">
<select name="clmode" id="clmode" class="function">
<option value="single">Single</option>
<option value="multiple">Multiple</option>
</select>
</div>
</div>
<div class="row dg-1 dg-2 dg-3" id="colorSingle">
<div class="left">
<label for="blcolor">Color:</label>
</div>
<div class="right">
<input type="color" name="blcolor" id="blcolor" class="function">
</div>
</div>
<div class="row dg-1 dg-2 dg-4" id="colorLeft">
<div class="left">
<label for="blcolorleft">Color left:</label>
</div>
<div class="right">
<input type="color" name="blcolorleft" id="blcolorleft" class="function">
</div>
</div>
<div class="row dg-1 dg-2 dg-4" id="colorMiddle">
<div class="left">
<label for="blcolormiddle">Color middle:</label>
</div>
<div class="right">
<input type="color" name="blcolormiddle" id="blcolormiddle" class="function">
</div>
</div>
<div class="row dg-1 dg-2 dg-4" id="colorRight">
<div class="left">
<label for="blcolorright">Color right:</label>
</div>
<div class="right">
<input type="color" name="blcolorright" id="blcolorright" class="function">
</div>
</div>
<div class="row dg-1 dg-2 dg-4" id="colorExtra">
<div class="left">
<label for="blcolorextra">Color extra:</label>
</div>
<div class="right">
<input type="color" name="blcolorextra" id="blcolorextra" class="function">
</div>
</div>
</div>
</body>
</html>
Loading

0 comments on commit 3029540

Please sign in to comment.