Skip to content

Commit 5010b6c

Browse files
committed
Initial commit
0 parents  commit 5010b6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3218
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig <http://EditorConfig.org>
2+
root = true
3+
4+
# elementary defaults
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = tab
9+
indent_style = space
10+
insert_final_newline = true
11+
max_line_length = 80
12+
tab_width = 4
13+
trim_trailing_whitespace = true
14+
15+
[{*.xml,*.xml.in,*.yml}]
16+
tab_width = 2

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
container:
11+
image: elementary/docker:stable
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Install Dependencies
16+
run: |
17+
apt update
18+
apt install -y libgranite-dev libgtk-3-dev meson valac
19+
- name: Build
20+
env:
21+
DESTDIR: out
22+
run: |
23+
meson build
24+
ninja -C build
25+
ninja -C build install
26+
27+
lint:
28+
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@v1
33+
- uses: elementary/actions/vala-lint@master

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*~
2+
build

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
3+
language: node_js
4+
5+
node_js:
6+
- 10.17.0
7+
8+
sudo: required
9+
10+
services:
11+
- docker
12+
13+
addons:
14+
apt:
15+
sources:
16+
- ubuntu-toolchain-r-test
17+
packages:
18+
- libstdc++-5-dev
19+
20+
install:
21+
- npm i -g @elementaryos/houston
22+
23+
script:
24+
- houston ci

COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<div align="center">
2+
<span align="center"> <img width="80" height="80" class="center" src="data/icons/128/com.github.manexim.insomnia.svg" alt="Icon"></span>
3+
<h1 align="center">Insomnia</h1>
4+
<h3 align="center">Prevent the display from being turned off or the device from going into sleep mode</h3>
5+
<p align="center">Designed for <a href="https://elementary.io">elementary OS</a></p>
6+
</div>
7+
8+
<p align="center">
9+
<a href="https://appcenter.elementary.io/com.github.manexim.insomnia" target="_blank">
10+
<img src="https://appcenter.elementary.io/badge.svg">
11+
</a>
12+
</p>
13+
14+
<p align="center">
15+
<a href="https://travis-ci.org/manexim/insomnia">
16+
<img src="https://img.shields.io/travis/manexim/insomnia.svg">
17+
</a>
18+
<a href="https://github.com/manexim/insomnia/releases/">
19+
<img src="https://img.shields.io/github/release/manexim/insomnia.svg">
20+
</a>
21+
<a href="https://github.com/manexim/insomnia/blob/master/COPYING">
22+
<img src="https://img.shields.io/github/license/manexim/insomnia.svg">
23+
</a>
24+
</p>
25+
26+
<p align="center">
27+
<img src="data/screenshots/000.png">
28+
<table>
29+
<tr>
30+
<td>
31+
<img src="data/screenshots/001.png">
32+
</td>
33+
<td>
34+
<img src="data/screenshots/002.png">
35+
</td>
36+
</tr>
37+
</table>
38+
</p>
39+
40+
## Installation
41+
42+
### Dependencies
43+
44+
These dependencies must be present before building:
45+
46+
- `libgranite-dev`
47+
- `libgtk-3-dev`
48+
- `meson`
49+
- `valac`
50+
51+
### Building
52+
53+
```
54+
git clone https://github.com/manexim/insomnia.git && cd insomnia
55+
meson build --prefix=/usr
56+
cd build
57+
ninja
58+
sudo ninja install
59+
com.github.manexim.insomnia
60+
```
61+
62+
### Deconstruct
63+
64+
```
65+
sudo ninja uninstall
66+
```
67+
68+
## Contributing
69+
70+
If you want to contribute to Insomnia and make it better, your help is very welcome.
71+
72+
### How to make a clean pull request
73+
74+
- Create a personal fork of this project on GitHub.
75+
- Clone the fork on your local machine. Your remote repo on GitHub is called `origin`.
76+
- Create a new branch to work on. Branch from `master`!
77+
- Implement/fix your feature.
78+
- Push your branch to your fork on GitHub, the remote `origin`.
79+
- From your fork open a pull request in the correct branch. Target the `master` branch!
80+
81+
And last but not least: Always write your commit messages in the present tense.
82+
Your commit message should describe what the commit, when applied, does to the code – not what you did to the code.
83+
84+
## Special thanks
85+
86+
### Translators
87+
88+
| Name | Language |
89+
| ----------------------------------------------- | ---------- |
90+
| [meisenzahl](https://github.com/meisenzahl) | German 🇩🇪 |
91+
92+
## License
93+
94+
This project is licensed under the GNU General Public License v3.0 - see the [COPYING](COPYING) file for details.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright 2019 Manexim -->
3+
<component type="desktop">
4+
<id>com.github.manexim.insomnia</id>
5+
<metadata_license>CC0</metadata_license>
6+
<project_license>GPL-3.0+</project_license>
7+
<name>Insomnia</name>
8+
<summary>Prevent the display from being turned off or the device from going into sleep mode</summary>
9+
<description>
10+
<p>Insomnia helps to keep your device awake, without needing to adjust your system power settings.</p>
11+
</description>
12+
<categories>
13+
<category>System</category>
14+
</categories>
15+
<provides>
16+
<binary>com.github.manexim.insomnia</binary>
17+
</provides>
18+
​<releases>
19+
<release date="2021-01-23" version="1.0.0">
20+
<description>
21+
<p>Initial release</p>
22+
</description>
23+
</release>
24+
</releases>
25+
<screenshots>
26+
<screenshot type="default">
27+
<caption></caption>
28+
<image>https://raw.githubusercontent.com/manexim/insomnia/master/data/screenshots/000.png</image>
29+
</screenshot>
30+
<screenshot>
31+
<caption></caption>
32+
<image>https://raw.githubusercontent.com/manexim/insomnia/master/data/screenshots/001.png</image>
33+
</screenshot>
34+
<screenshot>
35+
<caption></caption>
36+
<image>https://raw.githubusercontent.com/manexim/insomnia/master/data/screenshots/002.png</image>
37+
</screenshot>
38+
</screenshots>
39+
<developer_name>Manexim</developer_name>
40+
<url type="homepage">https://github.com/manexim</url>
41+
<url type="bugtracker">https://github.com/manexim/insomnia/issues</url>
42+
<custom>
43+
<!-- elementary AppCenter specific values -->
44+
<value key="x-appcenter-color-primary">#fafafa</value>
45+
<value key="x-appcenter-color-primary-text">#333</value>
46+
<!-- Suggested price in USD; just a suggestion, NOT a minimum. -->
47+
<value key="x-appcenter-suggested-price">5</value>
48+
</custom>
49+
<content_rating type="oars-1.1">
50+
<content_attribute id="violence-cartoon">none</content_attribute>
51+
<content_attribute id="violence-fantasy">none</content_attribute>
52+
<content_attribute id="violence-realistic">none</content_attribute>
53+
<content_attribute id="violence-bloodshed">none</content_attribute>
54+
<content_attribute id="violence-sexual">none</content_attribute>
55+
<content_attribute id="violence-desecration">none</content_attribute>
56+
<content_attribute id="violence-slavery">none</content_attribute>
57+
<content_attribute id="violence-worship">none</content_attribute>
58+
<content_attribute id="drugs-alcohol">none</content_attribute>
59+
<content_attribute id="drugs-narcotics">none</content_attribute>
60+
<content_attribute id="drugs-tobacco">none</content_attribute>
61+
<content_attribute id="sex-nudity">none</content_attribute>
62+
<content_attribute id="sex-themes">none</content_attribute>
63+
<content_attribute id="sex-homosexuality">none</content_attribute>
64+
<content_attribute id="sex-prostitution">none</content_attribute>
65+
<content_attribute id="sex-adultery">none</content_attribute>
66+
<content_attribute id="sex-appearance">none</content_attribute>
67+
<content_attribute id="language-profanity">none</content_attribute>
68+
<content_attribute id="language-humor">none</content_attribute>
69+
<content_attribute id="language-discrimination">none</content_attribute>
70+
<content_attribute id="social-chat">none</content_attribute>
71+
<content_attribute id="social-info">mild</content_attribute>
72+
<content_attribute id="social-audio">none</content_attribute>
73+
<content_attribute id="social-location">none</content_attribute>
74+
<content_attribute id="social-contacts">none</content_attribute>
75+
<content_attribute id="money-purchasing">none</content_attribute>
76+
<content_attribute id="money-gambling">none</content_attribute>
77+
</content_rating>
78+
</component>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=Insomnia
4+
Comment=Prevent the display from being turned off or the device from going into sleep mode
5+
Exec=com.github.manexim.insomnia
6+
Icon=com.github.manexim.insomnia
7+
Terminal=false
8+
Categories=GNOME;GTK;
9+
X-GNOME-UsesNotifications=false
10+
Actions=0;300;600;900;1800;2700;3600;7200;-1;
11+
12+
[Desktop Action 0]
13+
Name=Follow system power settings
14+
Exec=com.github.manexim.insomnia 0
15+
16+
[Desktop Action 300]
17+
Name=Prevent the display from being turned off or the device from going into sleep mode for 5 min
18+
Exec=com.github.manexim.insomnia 300
19+
20+
[Desktop Action 600]
21+
Name=Prevent the display from being turned off or the device from going into sleep mode for 10 min
22+
Exec=com.github.manexim.insomnia 600
23+
24+
[Desktop Action 900]
25+
Name=Prevent the display from being turned off or the device from going into sleep mode for 15 min
26+
Exec=com.github.manexim.insomnia 900
27+
28+
[Desktop Action 1800]
29+
Name=Prevent the display from being turned off or the device from going into sleep mode for 30 min
30+
Exec=com.github.manexim.insomnia 1800
31+
32+
[Desktop Action 2700]
33+
Name=Prevent the display from being turned off or the device from going into sleep mode for 45 min
34+
Exec=com.github.manexim.insomnia 2700
35+
36+
[Desktop Action 3600]
37+
Name=Prevent the display from being turned off or the device from going into sleep mode for 1 hour
38+
Exec=com.github.manexim.insomnia 3600
39+
40+
[Desktop Action 7200]
41+
Name=Prevent the display from being turned off or the device from going into sleep mode for 2 hours
42+
Exec=com.github.manexim.insomnia 7200
43+
44+
[Desktop Action -1]
45+
Name=Prevent the display from being turned off or the device from going into sleep mode
46+
Exec=com.github.manexim.insomnia -1

0 commit comments

Comments
 (0)