Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode
build/*
data
.qmake.stash
Makefile
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

This fork adds support for specifying an interval to wait before the action is triggered. There may be more improvements in the future.

![Screenshot of lead](https://github.com/almamu/lead/blob/master/screenshots/screenshot1.png)
![Screenshot of lead](https://github.com/almamu/lead/blob/master/screenshots/screenshot2.png)
![Screenshot of lead](./screenshots/screenshot1.png)
![Screenshot of lead](./screenshots/screenshot2.png)
> Sensors are not displayed unless the debug mode is enabled


### Features

- hot corners: sensors in the corners of the screen
- hot sides: sensors on center/middle edge of the screen
- freely configurable action for each sensor
Expand All @@ -25,17 +26,29 @@ This fork adds support for specifying an interval to wait before the action is t

# Build it

*lead* uses [clang](http://clang.llvm.org/) as compiler, [g++](https://gcc.gnu.org/) as linker and [make](https://www.gnu.org/software/make/) as build-tool.
*lead* uses [make](https://www.gnu.org/software/make/) as the build-tool, but the makefile is generated with [qmake](https://wiki.qt.io/Qmake).

*qmake* offers flexibility in compiler and linker choice, but [gcc](https://gcc.gnu.org/) and [g++](https://gcc.gnu.org/) have been proven to work.

To build *lead* open a terminal in the root folder of the repository and:

$ make
$ qmake && make

or alternatively (depending on distribution):

$ qmake-qt5 && make

### Dependencies

- Qt5Widgets
- Qt5Gui
- Qt5Core

Instructions on installing the dependencies:
|OS|Command|
|---|---|
|Ubuntu 20.04|`$ sudo apt install -y qt5-default qt5-qmake`|
|Fedora 34|`$ sudo dnf install -y qmake-qt5-devel`|

# Install it

Expand Down
29 changes: 29 additions & 0 deletions lead.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
TEMPLATE = app
TARGET = lead
INCLUDEPATH += .

QT += widgets

# Output folders, thanks https://stackoverflow.com/a/12872585/12036073
release: DESTDIR = build/release
debug: DESTDIR = build/debug

OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.qrc
UI_DIR = $$DESTDIR/.ui

# Make commands, thanks https://stackoverflow.com/a/9378280/12036073
target.path = /usr/bin/lead
INSTALLS += target

# Input
HEADERS += src/app.h src/screenname.h src/sensor.h
SOURCES += src/app.cpp src/main.cpp src/screenname.cpp src/sensor.cpp

# You can make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# Please consult the documentation of the deprecated API in order to know
# how to port your code away from it.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
53 changes: 0 additions & 53 deletions makefile

This file was deleted.