mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
greeter: allow mangowc as compositor
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
export WLR_DRM_DEVICES=/dev/dri/card1
|
||||
|
||||
COMPOSITOR=""
|
||||
COMPOSITOR_CONFIG=""
|
||||
DMS_PATH="dms-greeter"
|
||||
@@ -14,7 +16,7 @@ dms-greeter - DankMaterialShell greeter launcher
|
||||
Usage: dms-greeter --command COMPOSITOR [OPTIONS]
|
||||
|
||||
Required:
|
||||
--command COMPOSITOR Compositor to use (niri, hyprland, or sway)
|
||||
--command COMPOSITOR Compositor to use (niri, hyprland, sway, or mangowc)
|
||||
|
||||
Options:
|
||||
-C, --config PATH Custom compositor config file
|
||||
@@ -29,6 +31,7 @@ Examples:
|
||||
dms-greeter --command hyprland -C /etc/greetd/custom-hypr.conf
|
||||
dms-greeter --command sway -p /home/user/.config/quickshell/custom-dms
|
||||
dms-greeter --command niri --cache-dir /tmp/dmsgreeter
|
||||
dms-greeter --command mangowc
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -204,9 +207,20 @@ SWAY_EOF
|
||||
exec sway -c "$COMPOSITOR_CONFIG"
|
||||
;;
|
||||
|
||||
mangowc)
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
if [[ -n "$COMPOSITOR_CONFIG" ]]; then
|
||||
cp "$COMPOSITOR_CONFIG" "$TEMP_DIR/config.conf"
|
||||
else
|
||||
touch "$TEMP_DIR/config.conf"
|
||||
fi
|
||||
export MANGOCONFIG="$TEMP_DIR"
|
||||
exec mango -s "$QS_CMD && mmsg -d quit"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Error: Unsupported compositor: $COMPOSITOR" >&2
|
||||
echo "Supported compositors: niri, hyprland, sway" >&2
|
||||
echo "Supported compositors: niri, hyprland, sway, mangowc" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user