Documentation Index
Fetch the complete documentation index at: https://mintlify.com/FraVelz/Config-Sway/llms.txt
Use this file to discover all available pages before exploring further.
Rofi Menus and Scripts
Rofi provides all the interactive menus in Config-Sway, from application launching to theme switching. All menus are styled consistently and integrated with the theme system.Directory Structure
Rofi Scripts
Application Selector (Super + D)
Application Selector (Super + D)
Script: selector-app.sh
~/.config/rofi/scripts/selector-app.sh
- Shows all desktop applications (
.desktopfiles) - Displays application icons
- Background image overlay (if available)
- Fuzzy search enabled
Super + DPower Menu (Super + Q)
Power Menu (Super + Q)
Theme Switcher (Super + A)
Theme Switcher (Super + A)
Script: theme-switcher.sh
The theme switcher is the most complex script, handling theme application across all components.~/.config/rofi/scripts/theme-switcher.sh
- Lists available themes from
~/.config/themes/ - Shows theme previews using wallpaper images as icons
- Applies selected theme to:
- Kitty terminal colors
- Waybar colors and styles
- Sway window decorations
- Rofi color palette
- System wallpaper
- Reloads all components automatically
Super + AThe script creates
.bak-<timestamp> backups before modifying configurations. Backups are stored alongside the original files.Wallpaper Switcher (Super + W)
Wallpaper Switcher (Super + W)
Similar to theme switcher, but only changes the wallpaper without modifying other theme components.Keybinding:
Super + WIcon Menu (Super + E)
Icon Menu (Super + E)
Rofi Styling
Color Palette
~/.config/rofi/styles/_core/palette.rasi
Menu-Specific Styles
Each menu has two style files:styles/_core/<menu>.rasi- Core layout and structurestyles/<menu>.rasi- Imports core + customizations
The
_core/ directory contains the actual styling logic. Top-level .rasi files simply import from _core/ and can add overrides.Available Themes
Config-Sway includes 6 pre-configured themes:| Theme Name | Style | Wallpaper |
|---|---|---|
| Anime | Catppuccin-inspired dark theme | Anime artwork |
| Batman | Dark gray and black | Batman logo |
| Hacker | Matrix-style green on black | Hacker aesthetic |
| Mode-Dark | Pure dark mode | Minimal dark |
| Superman | Red and blue accents | Superman emblem |
| Windows10 | Windows-inspired | Windows 10 default |
Theme Structure
Each theme directory contains:Creating Custom Menus
Basic Rofi Script Template
Adding Icons to Menu Items
Using Images as Icons
Rofi Configuration Tips
Custom keybindings in Rofi
Custom keybindings in Rofi
Edit
~/.config/rofi/config.rasi to add custom keybindings:Adjusting window size
Adjusting window size
In your menu’s Or use percentages:
.rasi file:Changing fonts
Changing fonts
In
palette.rasi or individual menu styles:Troubleshooting
Rofi not showing icons
Rofi not showing icons
Possible causes:Ensure script uses:
- Missing Nerd Fonts
-show-iconsflag not set- GTK icon theme not installed
rofi -show drun -show-iconsTheme colors not applying
Theme colors not applying
- Verify
palette.rasiexists:
- Check for syntax errors:
- Manually update palette by running theme switcher again
Script not executing
Script not executing
- Ensure script is executable:
- Check for errors:
- Verify shebang is correct:
#!/usr/bin/env bash
Related Configuration
Sway Keybindings
See all Rofi menu keybindings in Sway config
Theme System
Understand how themes affect Rofi styling
Scripts
Other utility scripts used by the system