-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Miriway is a new generic compositor built on the Mir compositor library that is designed to be used as part of composable desktop environments.
- Loading branch information
1 parent
cdf9368
commit 6bda9f7
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
|
||
unset WAYLAND_DISPLAY | ||
unset DISPLAY | ||
|
||
port=0 | ||
while [ -e "${XDG_RUNTIME_DIR}/wayland-${port}" ]; do | ||
let port+=1 | ||
done | ||
wayland_display=wayland-${port} | ||
|
||
export WAYLAND_DISPLAY=${wayland_display} | ||
|
||
if command -v Xwayland > /dev/null | ||
then | ||
export MIR_SERVER_ENABLE_X11=1 | ||
MIR_SERVER_XWAYLAND_PATH=$(which Xwayland) | ||
export MIR_SERVER_XWAYLAND_PATH | ||
fi | ||
|
||
export MIRIWAY_CONFIG_DIR="lxqt" | ||
|
||
miriway-shell --display-config=static="${XDG_CONFIG_HOME}/miriway-shell.display-config" --add-wayland-extensions=all --lockscreen-app="lxqt-leave --lockscreen" & | ||
miriway_pid=$! | ||
|
||
# Wait until the server starts | ||
until [ -O "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}" ] | ||
do | ||
if ! kill -0 ${miriway_pid} &> /dev/null | ||
then | ||
echo "ERROR: miriway-shell [pid=${miriway_pid}] is not running" | ||
exit 1 | ||
fi | ||
inotifywait -qq --timeout 5 --event create "$(dirname "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}")" | ||
done | ||
|
||
lxqt-session "$@" | ||
lxqt_session_exit_code=$? | ||
|
||
kill $miriway_pid | ||
|
||
exit $lxqt_session_exit_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
x11-window-title=LXQt (Miriway) | ||
idle-timeout=600 | ||
|
||
shell-component=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP | ||
|
||
shell-alt=Space:lxqt-runner | ||
shell-alt=F2:lxqt-runner | ||
shell-meta=l:lxqt-leave --lockscreen | ||
|
||
meta=p:pcmanfm-qt | ||
meta=Return:qterminal | ||
meta=f:featherpad | ||
|
||
meta=Left:@dock-left | ||
meta=Right:@dock-right | ||
meta=Space:@toggle-maximized | ||
meta=Home:@workspace-begin | ||
meta=End:@workspace-end | ||
meta=Page_Up:@workspace-up | ||
meta=Page_Down:@workspace-down | ||
ctrl-alt=BackSpace:@exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters