Troubleshooting
This guide covers common issues you might encounter with Config-Sway and their solutions.General Issues
Sway won't start or crashes on startup
Sway won't start or crashes on startup
Symptoms: Black screen, immediate crash to TTY, or error messages on startup.Solutions:
-
Check for syntax errors in your configuration:
-
Start Sway with debug logging:
Then check
~/sway.logfor error messages. -
Verify required environment variables are set:
-
Check if required programs are installed:
-
Try running Sway with a minimal config:
Configuration changes not taking effect
Configuration changes not taking effect
Symptoms: You edit config files but see no changes in Sway.Solutions:
-
Reload Sway configuration:
-
For theme changes, the theme file is included, so reload works. But verify the include:
-
For Waybar changes, restart Waybar:
-
Check if you’re editing the correct file:
-
Some changes (like input devices) require a full Sway restart:
High CPU or memory usage
High CPU or memory usage
Symptoms: System feels sluggish, fans spinning up, or high resource usage.Solutions:
-
Check for multiple
swaybgprocesses: -
Check for zombie Waybar processes:
-
Disable expensive Waybar modules:
-
Reduce wallpaper resolution:
-
Check for runaway processes:
Keybinding Issues
Keybindings not working
Keybindings not working
Symptoms: Pressing key combinations does nothing.Solutions:
-
Verify the keybinding exists in config:
-
Check for conflicting keybindings:
-
Test if the program exists:
-
Verify script permissions:
-
Test the command directly:
Multimedia keys not working
Multimedia keys not working
Symptoms: Volume, brightness, or media keys don’t respond.Solutions:
-
Check if required services are running:
-
Test commands manually:
-
Add your user to required groups:
-
Install missing packages:
Display and Graphics Issues
Screen tearing or artifacts
Screen tearing or artifacts
Symptoms: Visual glitches, tearing during window movement or video playback.Solutions:
-
Check if you’re using proprietary GPU drivers (if applicable):
-
Set environment variables for better compatibility:
-
Try different rendering backends (for specific applications):
-
Check Sway logs for GPU issues:
External monitors not detected or wrong resolution
External monitors not detected or wrong resolution
Symptoms: External displays don’t show up or use incorrect resolution.Solutions:
-
List all outputs:
-
Manually configure outputs in
~/.config/sway/config: -
Force display detection:
-
Check available modes:
-
Try disabling and re-enabling:
Wallpaper not displaying or wrong wallpaper
Wallpaper not displaying or wrong wallpaper
Symptoms: Black screen background or incorrect wallpaper.Solutions:
-
Check saved wallpaper path:
-
Manually set wallpaper:
-
Check for multiple swaybg processes:
-
Verify wallpaper file is not corrupted:
-
Check setwallpaper.sh script:
Application-Specific Issues
Rofi menus not appearing or crashing
Rofi menus not appearing or crashing
Waybar not appearing or showing incorrectly
Waybar not appearing or showing incorrectly
Symptoms: No status bar visible or modules showing errors.Solutions:
-
Check Waybar logs:
-
Verify config file syntax:
-
Check if config file exists:
-
Disable problematic modules:
-
Restart with default config:
Flameshot screenshots not working
Flameshot screenshots not working
Symptoms: Pressing Super+Z does nothing, or Flameshot shows errors.Solutions:
-
Verify xdg-desktop-portal-wlr is installed and running:
-
Check portal configuration:
Should contain:
-
Verify environment variables are set:
-
Check Flameshot window rule:
-
Try alternative screenshot tool:
Kitty terminal not launching or crashing
Kitty terminal not launching or crashing
Symptoms: Pressing Super+Enter does nothing or Kitty crashes immediately.Solutions:
-
Test Kitty from command line:
-
Check Kitty configuration:
-
Try with default config:
-
Verify font is installed:
-
Check for conflicting themes:
Theme Switching Issues
Theme switcher not showing themes
Theme switcher not showing themes
Symptoms: Theme menu is empty or shows no themes.Solutions:
-
Check themes directory:
-
Verify theme structure:
-
Check script permissions:
-
Run script with debug output:
Theme applied but colors wrong
Theme applied but colors wrong
Symptoms: Theme switches but colors don’t match or look broken.Solutions:
-
Reload Sway after theme switch:
-
Check theme.conf colors:
-
Restart Waybar:
-
Verify CSS color variables:
-
Re-apply the theme:
Performance Optimization
Slow window animations or lag
Slow window animations or lag
Solutions:
-
Reduce gaps and borders (in theme.conf):
-
Disable transparency in Kitty:
-
Use simpler Waybar modules:
-
Reduce Waybar update intervals:
Getting Help
If these troubleshooting steps don’t resolve your issue:-
Check Sway logs:
-
Check system logs:
-
Collect system information:
- Test with minimal config: Create a minimal test configuration to isolate the issue.
- Check upstream documentation: