Skip to content

theswiftfox/dontnap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISCONTINUED

As I am using a windows machine for my current development tasks I don't have an active elementaryOS installation anymore. Pull requests etc. are still appreciated, however for the time being I won't develop this further myself.

DontNap

Indicator for Wingpanel to quickly disable sleep settings.

Inspired by the popular application caffeine I decided to write a small indicator application for elementary OS using their wingpanel API.
On enabling the 'Prevent Sleep' option the application will store your current settings for inactivity and update the gsettings temporarily and restore your settings once you disable it.

This is my first application for elementary OS and written for personal use. So use at your own risk. But I am always open for suggestions on improvements.

How to install

You can grab the prebuilt .deb package from the latest release and install it via

sudo dpkg -i com.github.theswiftfox.dontnap_0.1ubuntu2_amd64.deb

Alternatively you can build it from source, as described in the next section.

How to build

Make sure you have the elementary SDK installed as explained here.
The steps to clone and build the application are quite simple as it doesn't require any other dependencies.

git clone https://github.com/theswiftfox/dontnap.git
cd dontnap
meson build --prefix=/usr
cd build
ninja
sudo ninja install

This will install the indicator to your system. After restarting wingpanel it will be visible:

killall wingpanel