Skip to content

Commit

Permalink
this is now powerkit
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Oct 12, 2018
1 parent 054afc5 commit 59b3f74
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -7,7 +7,7 @@ before_install:
- sudo apt-get update

install:
- sudo apt-get install qt4-dev-tools qtbase5-dev libxss-dev qt4-qmake qt5-qmake tree libxrandr-dev libxinerama-dev
- sudo apt-get install qt4-dev-tools qtbase5-dev libxss-dev qt4-qmake qt5-qmake tree libxrandr-dev

script:
- export CWD=`pwd`
Expand Down
2 changes: 1 addition & 1 deletion CNAME
@@ -1 +1 @@
powerdwarf.dracolinux.org
powerkit.dracolinux.org
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
powerdwarf <https://github.com/rodlie/powerdwarf>
PowerKit <https://github.com/rodlie/powerkit>

Copyright (c) 2018, Ole-André Rodlie <ole.andre.rodlie@gmail.com>
All rights reserved.
Expand Down
17 changes: 8 additions & 9 deletions app/app.pro
@@ -1,24 +1,23 @@
#
# powerdwarf <https://github.com/rodlie/powerdwarf>
# PowerKit <https://github.com/rodlie/powerkit>
# Copyright (c) 2018, Ole-André Rodlie <ole.andre.rodlie@gmail.com> All rights reserved.
#
# Available under the 3-clause BSD license
# See the LICENSE file for full details
#

QT += core gui dbus
QT += core gui dbus xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = powerdwarf
TARGET = powerkit
TEMPLATE = app

SOURCES += main.cpp systray.cpp dialog.cpp
HEADERS += systray.h dialog.h
OTHER_FILES += share/man/powerdwarf.1
LIBS += -L../lib -lPowerDwarf
SOURCES += main.cpp systray.cpp dialog.cpp common.cpp
HEADERS += systray.h dialog.h common.h
LIBS += -L../lib -lPowerKit
INCLUDEPATH += ../lib

include(../powerdwarf.pri)
include(../powerkit.pri)
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\"
DEFINES += APP_VERSION_EXTRA=\"\\\"$${VERSION_EXTRA}\\\"\"

Expand All @@ -32,7 +31,7 @@ DEFINES += APP_VERSION_EXTRA=\"\\\"$${VERSION_EXTRA}\\\"\"
}
!CONFIG(no_man_install) {
target_man.path = $${MANDIR}/man1
target_man.files = share/man/powerdwarf.1
target_man.files = share/man/$${TARGET}.1
INSTALLS += target_man
}
!CONFIG(no_desktop_install) {
Expand Down
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=powerdwarf
Name=PowerKit
Comment=Power Manager
Icon=ac-adapter
Exec=powerdwarf --config
Exec=powerkit --config
Terminal=false
Type=Application
Categories=Settings;
Expand Down
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=powerdwarf
Name=PowerKit
Comment=Power Manager
Icon=ac-adapter
Exec=powerdwarf
Exec=powerkit
Terminal=false
Type=Application
NotShowIn=GNOME;KDE;MATE;TDE;Unity;XFCE;Cinnamon;
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion app/systray.cpp
Expand Up @@ -814,7 +814,6 @@ void SysTray::handlePrepareForSuspend(bool suspend)
if (!suspend) { // resume
tray->showMessage(QString(), QString());
man->UpdateDevices();
resetTimer();
ss->SimulateUserActivity();
}
}
Expand Down
15 changes: 6 additions & 9 deletions lib/lib.pro
@@ -1,40 +1,37 @@
#
# powerdwarf <https://github.com/rodlie/powerdwarf>
# PowerKit <https://github.com/rodlie/powerkit>
# Copyright (c) 2018, Ole-André Rodlie <ole.andre.rodlie@gmail.com> All rights reserved.
#
# Available under the 3-clause BSD license
# See the LICENSE file for full details
#

QT += dbus gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += dbus xml
QT -= gui

TARGET = PowerDwarf
TARGET = PowerKit
TEMPLATE = lib
SOURCES += \
common.cpp \
powermanagement.cpp \
screensaver.cpp \
device.cpp \
screens.cpp \
powerkit.cpp
HEADERS += \
common.h \
powermanagement.h \
screensaver.h \
def.h \
device.h \
screens.h \
powerkit.h

include(../powerdwarf.pri)

include(../powerkit.pri)
CONFIG(install_lib) {
CONFIG -= staticlib
target.path = $${PREFIX}/lib$${LIBSUFFIX}
INSTALLS += target
!CONFIG(no_doc_install) {
target_docs.path = $${DOCDIR}/powerdwarf-$${VERSION}$${VERSION_EXTRA}
target_docs.path = $${DOCDIR}/powerkit-$${VERSION}$${VERSION_EXTRA}
target_docs.files = ../LICENSE ../README.md ../ChangeLog
INSTALLS += target_docs
}
Expand Down
2 changes: 1 addition & 1 deletion lib/screens.h
Expand Up @@ -12,7 +12,7 @@
#include <QMap>
#include <QString>

#include "common.h"
//#include "common.h"
#include <X11/extensions/Xrandr.h>

class Screens
Expand Down
12 changes: 3 additions & 9 deletions powerdwarf.pri → powerkit.pri
@@ -1,13 +1,13 @@
#
# powerdwarf <https://github.com/rodlie/powerdwarf>
# PowerKit <https://github.com/rodlie/powerkit>
# Copyright (c) 2018, Ole-André Rodlie <ole.andre.rodlie@gmail.com> All rights reserved.
#
# Available under the 3-clause BSD license
# See the LICENSE file for full details
#

VERSION = 1.0.0
VERSION_EXTRA = "beta8"
VERSION_EXTRA = "beta1"

isEmpty(PREFIX) {
PREFIX = /usr/local
Expand Down Expand Up @@ -36,10 +36,4 @@ CONFIG(release, debug|release) {
CONFIG += staticlib
}

freebsd {
INCLUDEPATH += /usr/local/include
LIBS += -lX11 -lXss -lXrandr
} else {
CONFIG += link_pkgconfig
PKGCONFIG += x11 xscrnsaver xrandr
}
LIBS += -lX11 -lXss -lXrandr
2 changes: 1 addition & 1 deletion powerdwarf.pro → powerkit.pro
@@ -1,5 +1,5 @@
#
# powerdwarf <https://github.com/rodlie/powerdwarf>
# PowerKit <https://github.com/rodlie/powerkit>
# Copyright (c) 2018, Ole-André Rodlie <ole.andre.rodlie@gmail.com> All rights reserved.
#
# Available under the 3-clause BSD license
Expand Down

0 comments on commit 59b3f74

Please sign in to comment.