mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
compositor: added scrollwm support.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
if [ "$#" -lt 1 ]; then
|
||||
# Print usage information to standard error.
|
||||
echo "Error: No application specified." >&2
|
||||
echo "Usage: $0 {kitty|ghostty|foot|alacritty|wezterm|fuzzel|walker|pywalfox|cava|yazi|niri|hyprland|sway|mango|btop|zathura} [dark|light]" >&2
|
||||
echo "Usage: $0 {kitty|ghostty|foot|alacritty|wezterm|fuzzel|walker|pywalfox|cava|yazi|niri|hyprland|sway|scroll|mango|btop|zathura} [dark|light]" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -369,6 +369,33 @@ sway)
|
||||
swaymsg reload
|
||||
;;
|
||||
|
||||
scroll)
|
||||
echo "Applying 'noctalia' theme to Scroll..."
|
||||
CONFIG_DIR="$HOME/.config/scroll"
|
||||
CONFIG_FILE="$CONFIG_DIR/config"
|
||||
INCLUDE_LINE='include ~/.config/scroll/noctalia'
|
||||
|
||||
# Check if the config file exists.
|
||||
if [ ! -f "$CONFIG_FILE" ]; then
|
||||
echo "Config file not found, creating $CONFIG_FILE..."
|
||||
mkdir -p "$(dirname "$CONFIG_FILE")"
|
||||
echo -e "\n$INCLUDE_LINE\n" >"$CONFIG_FILE"
|
||||
echo "Created new config file with noctalia theme."
|
||||
else
|
||||
# Check if noctalia include already exists (flexible matching)
|
||||
if grep -qE 'include\s+.*noctalia' "$CONFIG_FILE"; then
|
||||
echo "Theme already included, skipping modification."
|
||||
else
|
||||
# Add the include line to the end of the file
|
||||
echo -e "\n$INCLUDE_LINE\n" >>"$CONFIG_FILE"
|
||||
echo "Added noctalia theme include to config."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Reload scroll
|
||||
scrollmsg reload
|
||||
;;
|
||||
|
||||
mango)
|
||||
CONFIG_DIR="$HOME/.config/mango"
|
||||
MAIN_CONFIG="$CONFIG_DIR/config.conf"
|
||||
|
||||
Reference in New Issue
Block a user