Skip to content
/ fakwin Public

Fake KWin DBus service to make KDE 6 play nice with i3wm

License

Notifications You must be signed in to change notification settings

DMaroo/fakwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakWin

Fake KWin DBus service so that KDE 6 shutdown/reboot/logout works when not using KWin. It exposes the closeWaylandWindows method through the org.kde.KWin service and /Session object.

Usage

Building

git clone https://github.com/DMaroo/fakwin.git
cd fakwin
mkdir build
cd build
cmake ..
make

Running

The fakwin binary gets generated in the build directory. Once you run it, it will establish the relevant services and the methods. To check if everything's in order, run the following command.

$ qdbus org.kde.KWin /Session
method bool org.kde.KWin.Session.closeWaylandWindows()
signal void org.freedesktop.DBus.Properties.PropertiesChanged(QString interface_name, QVariantMap changed_properties, QStringList invalidated_properties)
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()

It is important that the bool org.kde.KWin.Session.closeWaylandWindows() shows up in the output.

Make it persist

You can add a user systemd service for this so that you don't need to run this manually everytime you want to shutdown. Here's an article teaching how to do it.

Why

heckelson/i3-and-kde-plasma#54 motivated me to build this.

About

Fake KWin DBus service to make KDE 6 play nice with i3wm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published