compositor: added scrollwm support.

This commit is contained in:
Lemmy
2026-02-09 22:07:06 -05:00
parent b89bc0aaf3
commit 9b7147f126
6 changed files with 57 additions and 8 deletions
+28 -1
View File
@@ -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"