[Sawfish] Re: KDE Root Window Menu |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
Hi,
aaa@xxxxxxxxxxx (2018-12-06 at 0801.05 +0000):
> I'm running sawfish on Fedora (currently 29) with KDE. There are (annoyingly)
> a couple of KDE configuration options that aren't in the KDE system settings
> application, but are only accessible via the root window menu or via qdbus
> scripting. While running sawfish, though, the root window menu for sawfish
> comes up instead of the KDE root window menu. Anyone got a solution? Would it
> be possible to add an option to the sawfish root window menu to access the
> kde root window menu, for example?
I can imagine a few. One would be creating entries for the qdbus
commands in the sawfish menu. Or maybe a launcher of the KDE menu, if
that is possible. Or the other way around, add a sawfish-client
command to the KDE menu (assuming you can modify it) that launches SF
menu. Other would be binding sawfish menu to something different
(different button, or button plus modifier) so you can access both as
needed.
For example, figure the proper qdbus commands and create a submenu
with them, then add it to the root-menu.
---8<---
(defvar kde-qdbus-menu
`((,(_ "Foo") (system "qdbus-foo &"))
(,(_ "Bar") (system "qdbus-bar &"))
))
(setq root-menu
(append
root-menu
`(() ; Separator line, optional, remove () if unwanted
("KDE things" . kde-qdbus-menu))))
--->8---
Or add the launcher for the KDE menu.
---8<---
(setq root-menu
(append
root-menu
`(()
("Launch KDE menu" (system "qdbus-launch-menu &"))))
--->8---
You will have to figure the proper qdbus-* (as shell scripts, or
replace here with longer commands "qdbus blah blah &"). Putting the
new thing at the top is easy, just swap items in the append. If you
want to insert the new thing in the middle, it would be a bit more
work.
Hope this helps,
GSR
--
Sawfish ML