initial commit
This commit is contained in:
70
install-arch-sway.sh
Executable file
70
install-arch-sway.sh
Executable file
@@ -0,0 +1,70 @@
|
||||
#!/bin/bash
|
||||
# Install Sway configuration files only - Arch Linux version
|
||||
|
||||
set -e
|
||||
|
||||
echo "Installing Sway configuration files for Arch Linux..."
|
||||
echo "======================================================="
|
||||
|
||||
# Create sway config directory
|
||||
mkdir -p ~/.config/sway
|
||||
echo "✓ Created ~/.config/sway directory"
|
||||
|
||||
# Backup existing sway config if it exists
|
||||
if [ -f ~/.config/sway/config ]; then
|
||||
echo "⚠ Backing up existing sway config to ~/.config/sway/config.backup"
|
||||
cp ~/.config/sway/config ~/.config/sway/config.backup
|
||||
fi
|
||||
|
||||
# === SWAY CONFIG ===
|
||||
# Comment out this section if you don't want to install the main config
|
||||
echo ""
|
||||
echo "Installing main Sway config..."
|
||||
cp config ~/.config/sway/config
|
||||
echo "✓ Sway config installed to ~/.config/sway/config"
|
||||
|
||||
# === I3STATUS-RUST CONFIG ===
|
||||
# Comment out this section if you don't want i3status-rust
|
||||
echo ""
|
||||
echo "Installing i3status-rust config..."
|
||||
cp i3status-rust.toml ~/.config/sway/i3status-rust.toml
|
||||
echo "✓ i3status-rust config installed to ~/.config/sway/i3status-rust.toml"
|
||||
|
||||
# === WEATHER SCRIPT ===
|
||||
# Comment out this section if you don't want the weather script
|
||||
echo ""
|
||||
echo "Installing weather script..."
|
||||
cp weather-sway.sh ~/.config/sway/weather-sway.sh
|
||||
chmod +x ~/.config/sway/weather-sway.sh
|
||||
echo "✓ Weather script installed to ~/.config/sway/weather-sway.sh"
|
||||
|
||||
# === VOLUME NOTIFY SCRIPT ===
|
||||
# Comment out this section if you don't want volume notifications
|
||||
if [ -f volume-notify-sway.sh ]; then
|
||||
echo ""
|
||||
echo "Installing volume notify script..."
|
||||
cp volume-notify-sway.sh ~/.config/sway/volume-notify-sway.sh
|
||||
chmod +x ~/.config/sway/volume-notify-sway.sh
|
||||
echo "✓ Volume notify script installed to ~/.config/sway/volume-notify-sway.sh"
|
||||
else
|
||||
echo ""
|
||||
echo "⚠ volume-notify-sway.sh not found, skipping..."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "✅ Sway configuration installation complete!"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
echo "Next steps:"
|
||||
echo "1. Run ./install-arch-sway-requirements.sh to install packages"
|
||||
echo "2. Log out and select Sway from your display manager"
|
||||
echo "3. Or start Sway from TTY with: sway"
|
||||
echo ""
|
||||
echo "Config files installed:"
|
||||
echo "- ~/.config/sway/config (main Sway config)"
|
||||
echo "- ~/.config/sway/i3status-rust.toml (status bar config)"
|
||||
echo "- ~/.config/sway/weather-sway.sh (weather script)"
|
||||
if [ -f ~/.config/sway/volume-notify-sway.sh ]; then
|
||||
echo "- ~/.config/sway/volume-notify-sway.sh (volume notifications)"
|
||||
fi
|
||||
Reference in New Issue
Block a user