{"id":17196944,"url":"https://github.com/dmaroo/fakwin","last_synced_at":"2025-04-13T19:32:23.077Z","repository":{"id":229638153,"uuid":"777250088","full_name":"DMaroo/fakwin","owner":"DMaroo","description":"Fake KWin DBus service to make KDE 6 play nice with i3wm","archived":false,"fork":false,"pushed_at":"2024-08-17T18:07:32.000Z","size":11,"stargazers_count":17,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T10:37:28.768Z","etag":null,"topics":["dbus","i3wm","kde","kde-plasma","linux"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DMaroo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-25T13:51:56.000Z","updated_at":"2025-02-26T19:13:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3acd028-6770-4774-a7b0-89b0614c6bf2","html_url":"https://github.com/DMaroo/fakwin","commit_stats":null,"previous_names":["dmaroo/fakwin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMaroo%2Ffakwin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMaroo%2Ffakwin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMaroo%2Ffakwin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMaroo%2Ffakwin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DMaroo","download_url":"https://codeload.github.com/DMaroo/fakwin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248768041,"owners_count":21158578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dbus","i3wm","kde","kde-plasma","linux"],"created_at":"2024-10-15T01:54:52.316Z","updated_at":"2025-04-13T19:32:22.807Z","avatar_url":"https://github.com/DMaroo.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FakWin\n\n\n\u003e [!IMPORTANT]\n\u003e KDE bug tracker link: https://bugs.kde.org/show_bug.cgi?id=488277\n\nFake 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.\n\n - KDE 6 commit responsible for the change: https://github.com/KDE/plasma-workspace/commit/23cca93b879d0fcf9f430b03a482dbca1e0a1d79\n - KWin DBus config: https://github.com/KDE/kwin/blob/master/src/org.kde.KWin.Session.xml\n - KWin implementation for the DBus methods: https://github.com/KDE/kwin/blob/master/src/sm.cpp\n\n# Usage\n\n## Building\n\nYou may need Qt6 development packages to build this (`qt6-base-dev` for Ubuntu, `qt6-qtbase-devel` for Fedora, `qt6-base` for Arch Linux).\n\n```\ngit clone https://github.com/DMaroo/fakwin.git\ncd fakwin\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n## Running\n\nThe `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.\n\n```\n$ qdbus org.kde.KWin /Session\nmethod bool org.kde.KWin.Session.closeWaylandWindows()\nsignal void org.freedesktop.DBus.Properties.PropertiesChanged(QString interface_name, QVariantMap changed_properties, QStringList invalidated_properties)\nmethod QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)\nmethod QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)\nmethod void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)\nmethod QString org.freedesktop.DBus.Introspectable.Introspect()\nmethod QString org.freedesktop.DBus.Peer.GetMachineId()\nmethod void org.freedesktop.DBus.Peer.Ping()\n```\n\nIt is important that the `bool org.kde.KWin.Session.closeWaylandWindows()` shows up in the output.\n\n## Make it persist\n\nYou 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](https://www.linode.com/docs/guides/start-service-at-boot/) teaching how to do it.\n\n# Why\n\nhttps://github.com/heckelson/i3-and-kde-plasma/issues/54 motivated me to build this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmaroo%2Ffakwin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmaroo%2Ffakwin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmaroo%2Ffakwin/lists"}