Skip to main content

Troubleshooting

This guide covers common issues you might encounter with Config-Sway and their solutions.

General Issues

Symptoms: Black screen, immediate crash to TTY, or error messages on startup.Solutions:
  1. Check for syntax errors in your configuration:
  2. Start Sway with debug logging:
    Then check ~/sway.log for error messages.
  3. Verify required environment variables are set:
  4. Check if required programs are installed:
  5. Try running Sway with a minimal config:
If Sway starts with -c /dev/null, the issue is in your configuration file. Comment out sections systematically to find the problematic line.
Symptoms: You edit config files but see no changes in Sway.Solutions:
  1. Reload Sway configuration:
  2. For theme changes, the theme file is included, so reload works. But verify the include:
  3. For Waybar changes, restart Waybar:
  4. Check if you’re editing the correct file:
  5. Some changes (like input devices) require a full Sway restart:
Symptoms: System feels sluggish, fans spinning up, or high resource usage.Solutions:
  1. Check for multiple swaybg processes:
  2. Check for zombie Waybar processes:
  3. Disable expensive Waybar modules:
  4. Reduce wallpaper resolution:
  5. Check for runaway processes:

Keybinding Issues

Symptoms: Pressing key combinations does nothing.Solutions:
  1. Verify the keybinding exists in config:
  2. Check for conflicting keybindings:
  3. Test if the program exists:
  4. Verify script permissions:
  5. Test the command directly:
Symptoms: Volume, brightness, or media keys don’t respond.Solutions:
  1. Check if required services are running:
  2. Test commands manually:
  3. Add your user to required groups:
  4. Install missing packages:

Display and Graphics Issues

Symptoms: Visual glitches, tearing during window movement or video playback.Solutions:
  1. Check if you’re using proprietary GPU drivers (if applicable):
  2. Set environment variables for better compatibility:
  3. Try different rendering backends (for specific applications):
  4. Check Sway logs for GPU issues:
Symptoms: External displays don’t show up or use incorrect resolution.Solutions:
  1. List all outputs:
  2. Manually configure outputs in ~/.config/sway/config:
  3. Force display detection:
  4. Check available modes:
  5. Try disabling and re-enabling:
Symptoms: Black screen background or incorrect wallpaper.Solutions:
  1. Check saved wallpaper path:
  2. Manually set wallpaper:
  3. Check for multiple swaybg processes:
  4. Verify wallpaper file is not corrupted:
  5. Check setwallpaper.sh script:

Application-Specific Issues

Symptoms: Pressing Super+D, Super+Q, or other Rofi shortcuts does nothing.Solutions:
  1. Test Rofi directly:
  2. Check for Rofi configuration errors:
  3. Verify theme files exist:
  4. Test specific Rofi scripts:
  5. Check for missing dependencies:
  6. Regenerate Rofi palette:
Symptoms: No status bar visible or modules showing errors.Solutions:
  1. Check Waybar logs:
  2. Verify config file syntax:
  3. Check if config file exists:
  4. Disable problematic modules:
  5. Restart with default config:
Symptoms: Pressing Super+Z does nothing, or Flameshot shows errors.Solutions:
  1. Verify xdg-desktop-portal-wlr is installed and running:
  2. Check portal configuration:
    Should contain:
  3. Verify environment variables are set:
  4. Check Flameshot window rule:
  5. Try alternative screenshot tool:
Symptoms: Pressing Super+Enter does nothing or Kitty crashes immediately.Solutions:
  1. Test Kitty from command line:
  2. Check Kitty configuration:
  3. Try with default config:
  4. Verify font is installed:
  5. Check for conflicting themes:

Theme Switching Issues

Symptoms: Theme menu is empty or shows no themes.Solutions:
  1. Check themes directory:
  2. Verify theme structure:
  3. Check script permissions:
  4. Run script with debug output:
Symptoms: Theme switches but colors don’t match or look broken.Solutions:
  1. Reload Sway after theme switch:
  2. Check theme.conf colors:
  3. Restart Waybar:
  4. Verify CSS color variables:
  5. Re-apply the theme:

Performance Optimization

Solutions:
  1. Reduce gaps and borders (in theme.conf):
  2. Disable transparency in Kitty:
  3. Use simpler Waybar modules:
  4. Reduce Waybar update intervals:

Getting Help

If these troubleshooting steps don’t resolve your issue:
  1. Check Sway logs:
  2. Check system logs:
  3. Collect system information:
  4. Test with minimal config: Create a minimal test configuration to isolate the issue.
  5. Check upstream documentation:
Before reporting issues, ensure you’re running the latest versions of all components: