aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorna <noah.andreas@nukura.com>2017-01-21 21:10:09 +0100
committerna <noah.andreas@nukura.com>2017-01-21 21:10:09 +0100
commit52fdab964c7df42dee94840198a3a0ee8e2efd4a (patch)
tree7c78d8d1f36faf7406135050cf7febceb73d6ce9
parent686f3fba2f152a9b8ca66cc2cabc82bef5296fab (diff)
downloadlead-52fdab964c7df42dee94840198a3a0ee8e2efd4a.tar
lead-52fdab964c7df42dee94840198a3a0ee8e2efd4a.tar.gz
lead-52fdab964c7df42dee94840198a3a0ee8e2efd4a.zip
changed namespace
-rw-r--r--CHANGELOG.md4
-rw-r--r--README.md20
-rw-r--r--build.ninja5
-rwxr-xr-xbuild/mlde.leadbin0 -> 45056 bytes
-rw-r--r--data/etc/xdg/kernladung/lead.conf2
-rw-r--r--src/lead.cpp12
-rw-r--r--src/lead.h2
-rw-r--r--src/main.cpp2
-rw-r--r--src/sensor.cpp6
-rw-r--r--src/sensor.h2
10 files changed, 30 insertions, 25 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1cd63a3..53cefb1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,6 @@
-# 01/20/2017
+# 01/21/2017
+- changed namespace to mlde
+# 01/20/2017
- Changed build-system from qmake/make to ninja
- Changed licence from GPLv3 to MIT \ No newline at end of file
diff --git a/README.md b/README.md
index 6573bac..16a86f0 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
*lead* provides hot-corners for your desktop, notably for openbox, awesome, i3 and other window managers.
-![Screenshot of lead](https://github.com/kernladung/lead/blob/master/screenshot.png)
+![Screenshot of lead](https://github.com/mlde/lead/blob/master/screenshot.png)
> Despite the screenshot, the sensors are only 1px in size and invisible.
@@ -13,7 +13,7 @@
# Get it
-- clone the repository with `$ git clone https://github.com/kernladung/lead`
+- clone the repository with `$ git clone https://github.com/mlde/lead`
**or**
@@ -24,7 +24,7 @@
*lead* uses [clang](http://clang.llvm.org/) as compiler, [g++](https://gcc.gnu.org/) as linker and [ninja](https://github.com/ninja-build/ninja) as build-tool.
-To build *lead* open terminal in the root folder of the repository and:
+To build *lead* open a terminal in the root folder of the repository and:
$ ninja
@@ -35,7 +35,7 @@ To build *lead* open terminal in the root folder of the repository and:
### Build
-A build `kernladung.lead` is provided in the build dir. It was build on my arch64 system.
+A build `mlde.lead` is provided in the build dir. It was build on my arch64 system.
# Install it
@@ -49,10 +49,10 @@ A build `kernladung.lead` is provided in the build dir. It was build on my arch6
On the first run lead will look into these dirs for a conf-file. The first one found will be used.
- ~/.config/kernladung/lead.conf
- /etc/xdg/kernladung/lead.conf
+ ~/.config/mlde/lead.conf
+ /etc/xdg/mlde/lead.conf
-If none of these exists, it will create `~/.config/kernladung/lead.conf` with default values for each screen, ie:
+If none of these exists, it will create `~/.config/mlde/lead.conf` with default values for each screen, ie:
[eDP1]
bottom=
@@ -73,7 +73,7 @@ To enable a action for a sensor, simply add a command to the corner or side:
left=
right=
top=
- topLeft=kernladung.californium toggle
+ topLeft=mlde.californium toggle
topRight=skippy-xd
Used config-files and theme-files are monitored and changes are applied automatically.
@@ -81,11 +81,11 @@ Used config-files and theme-files are monitored and changes are applied automati
# Use it
-*lead* provides the binary `kernladung.lead` which creates sensors for each configured corner or side.
+*lead* provides the binary `mlde.lead` which creates sensors for each configured corner or side.
Start *lead* as background process:
- $ kernladung.lead &
+ $ mlde.lead &
# Drawbacks
diff --git a/build.ninja b/build.ninja
index 291a4fa..da57044 100644
--- a/build.ninja
+++ b/build.ninja
@@ -16,11 +16,14 @@ rule moc
build build/lead.moc.cpp: moc src/lead.h
build build/sensor.moc.cpp: moc src/sensor.h
+
build build/main.o: cpp src/main.cpp
build build/lead.o: cpp src/lead.cpp
build build/sensor.o: cpp src/sensor.cpp
+
build build/lead.moc.o: cpp build/lead.moc.cpp
build build/sensor.moc.o: cpp build/sensor.moc.cpp
-build build/kernladung.lead: link build/main.o build/lead.o build/sensor.o build/lead.moc.o build/sensor.moc.o
+
+build build/mlde.lead: link build/main.o build/lead.o build/sensor.o build/lead.moc.o build/sensor.moc.o
diff --git a/build/mlde.lead b/build/mlde.lead
new file mode 100755
index 0000000..4b90dab
--- /dev/null
+++ b/build/mlde.lead
Binary files differ
diff --git a/data/etc/xdg/kernladung/lead.conf b/data/etc/xdg/kernladung/lead.conf
index 0ab0c9b..2b263a1 100644
--- a/data/etc/xdg/kernladung/lead.conf
+++ b/data/etc/xdg/kernladung/lead.conf
@@ -1,3 +1,3 @@
[General]
menu=/etc/xdg/menus/sulfur-applications.menu
-theme=/usr/share/kernladung/californium/themes/default/default.qss
+theme=/usr/share/mlde/californium/themes/default/default.qss
diff --git a/src/lead.cpp b/src/lead.cpp
index cd47b19..f6a4c60 100644
--- a/src/lead.cpp
+++ b/src/lead.cpp
@@ -30,12 +30,12 @@ SOFTWARE.
#include <QFileSystemWatcher>
-namespace kernladung {
+namespace mlde {
Lead::Lead(int &argc, char** argv) :
QApplication(argc, argv),
- settings("kernladung", "lead"),
+ settings("mlde", "lead"),
watcher()
{
loadScreens();
@@ -61,7 +61,7 @@ Lead::watchSettings()
void
Lead::fileChanged(QString fileName)
{
- qDebug() << "kernladung::Lead::fileChanged() fileName: " << fileName;
+ qDebug() << "mlde::Lead::fileChanged() fileName: " << fileName;
// this reloads the settings from the file
settings.sync();
@@ -113,7 +113,7 @@ Lead::loadScreens()
void
Lead::loadScreen(QScreen* screen)
{
- qDebug() << "kernladung::Lead::loadScreen() " << screen->name();
+ qDebug() << "mlde::Lead::loadScreen() " << screen->name();
QRect rec = screen->geometry();
@@ -137,7 +137,7 @@ Lead::loadSensor(QScreen* screen, QString name, int x, int y, int w, int h)
if (!settings.contains(key) )
{
- qDebug() << "kernladung::Lead::loadSensor() key " << name << " not found";
+ qDebug() << "mlde::Lead::loadSensor() key " << name << " not found";
// restore missing key
settings.setValue(key, QString());
@@ -146,7 +146,7 @@ Lead::loadSensor(QScreen* screen, QString name, int x, int y, int w, int h)
if (settings.value(key).toString().isEmpty())
{
- qDebug() << "kernladung::Lead::loadSensor() key " << name << " is empty";
+ qDebug() << "mlde::Lead::loadSensor() key " << name << " is empty";
return;
}
diff --git a/src/lead.h b/src/lead.h
index 035e0f2..e9b7f08 100644
--- a/src/lead.h
+++ b/src/lead.h
@@ -34,7 +34,7 @@ SOFTWARE.
#include <QFileSystemWatcher>
-namespace kernladung {
+namespace mlde {
class Lead : public QApplication
diff --git a/src/main.cpp b/src/main.cpp
index 601c065..bd627c6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -30,7 +30,7 @@ SOFTWARE.
int
main(int argc, char *argv[])
{
- kernladung::Lead lead(argc, argv);
+ mlde::Lead lead(argc, argv);
return lead.exec();
}
diff --git a/src/sensor.cpp b/src/sensor.cpp
index 41c4326..822dc98 100644
--- a/src/sensor.cpp
+++ b/src/sensor.cpp
@@ -29,14 +29,14 @@ SOFTWARE.
#include <QProcess>
-namespace kernladung {
+namespace mlde {
namespace lead {
Sensor::Sensor(int x, int y, int w, int h, QString action):
QWidget()
{
- qDebug() << "kernladung::lead::Sensor() " << x << "," << y << "," << w << "," << h << " : " << action;
+ qDebug() << "mlde::lead::Sensor() " << x << "," << y << "," << w << "," << h << " : " << action;
this->action = action;
@@ -56,7 +56,7 @@ Sensor::~Sensor()
void
Sensor::enterEvent(QEvent * event)
{
- qDebug() << "kernladung::lead::Sensor::enterEvent() " << this->x() << ":" << this->y() << " action: " << this->action;
+ qDebug() << "mlde::lead::Sensor::enterEvent() " << this->x() << ":" << this->y() << " action: " << this->action;
QProcess::startDetached(action);
}
diff --git a/src/sensor.h b/src/sensor.h
index 0404583..bc448c6 100644
--- a/src/sensor.h
+++ b/src/sensor.h
@@ -30,7 +30,7 @@ SOFTWARE.
#include <QScreen>
-namespace kernladung {
+namespace mlde {
namespace lead {