A complete Rofi configuration featuring the Tokyo Night color scheme with custom scripts for application launching, power management, and password prompts.
This Rofi configuration provides a modern, Tokyo Night-themed interface for:
- Application launcher
- Power menu with system controls
- Password/authentication prompts
- File browser support
- Tokyo Night Color Scheme: Beautiful dark theme with blue accents
- Custom Scripts: Ready-to-use scripts for common tasks
- Icon Support: Configurable icon display
- Confirmation Dialogs: Safe power actions with user confirmation
- Multiple Modes: Support for applications, commands, and file browsing
~/.config/rofi/
├── bin/
│ ├── askpass # Password prompt script
│ ├── launcher # Application launcher script
│ └── powermenu # Power management script
└── config/
├── askpass.rasi # Password prompt theme
├── colors.rasi # Tokyo Night color definitions
├── confirm.rasi # Confirmation dialog theme
├── font.rasi # Font configuration
├── launcher.rasi # Application launcher theme
└── powermenu.rasi # Power menu theme
Application launcher with the following features:
- Shows desktop applications (
drun
mode) - Displays application names only
- Uses Terminator as default terminal
- Escape key to cancel
- Grid layout with icons (6 columns × 3 rows)
Usage:
~/.config/rofi/bin/launcher
Comprehensive power management with options for:
- Shutdown: Power off the system
- Restart: Reboot the system
- Lock: Lock the screen (requires
~/Bin/lock.sh
) - Sleep: Suspend system with audio/music pause
- Logout: Exit i3 window manager
All power actions (except lock) require confirmation for safety.
Usage:
~/.config/rofi/bin/powermenu
Simple password prompt dialog for authentication needs.
Usage:
~/.config/rofi/bin/askpass
The configuration uses the Tokyo Night color palette:
Color | Hex Code | Usage |
---|---|---|
Background | #1a1b26 |
Main background |
Background Alt | #32344a |
Secondary background |
Foreground | #a9b1d6 |
Main text color |
Accent | #7aa2f7 |
Accent/selection color |
Urgent | #f7768e |
Urgent/warning color |
The configuration uses RecMonoCasual Nerd Font:
- Default:
RecMonoCasual Nerd Font Bold 18
- Launcher elements:
Manrope Medium 12-14
- Icons:
RecMonoCasual Nerd Font 10
- Size: 1000px width
- Border: 2px with 12px radius
- Transparency: Real transparency support
- Position: Center screen
- Modes:
drun
,run
,filebrowser
- Layout: 6 columns, 3 rows
- Icons: Enabled (64px size)
- Search: Fuzzy matching across all fields
- Uptime Display: Shows system uptime in prompt
- Icon Options: Two icon sets available (configurable)
- Safety: Confirmation required for destructive actions
- Audio Integration: Pauses music and mutes audio before suspend
- Rofi: The application launcher
- systemctl: For power management
- uptime: For system uptime display
- Terminator: Default terminal (configurable)
- i3: Window manager (for logout function)
- mpc: Music player control (for suspend)
- amixer: Audio control (for suspend)
- lock script: Custom lock script at
~/Bin/lock.sh
or~/.local/bin/lock
-
Clone repository:
git clone https://github.com/Hanashiko/dotfiles-rofi.git cd dotfiles-rofi
-
Copy configuration files:
mkdir -p ~/.config/rofi/{bin,config} cp bin/* ~/.config/rofi/bin/ cp config/* ~/.config/rofi/config/
-
Make scripts executable:
chmod +x ~/.config/rofi/bin/*
-
Install required fonts:
- RecMonoCasual Nerd Font
- Manrope font family
Add these to your window manager configuration:
# Application launcher
bindsym $mod+d exec ~/.config/rofi/bin/launcher
# Power menu
bindsym $mod+Shift+e exec ~/.config/rofi/bin/powermenu
# Quick password prompt
bindsym $mod+p exec ~/.config/rofi/bin/askpass
Use Rofi scripts as dmenu replacement:
echo "option1\noption2\noption3" | rofi -dmenu -theme ~/.config/rofi/config/launcher.rasi
Edit config/colors.rasi
to modify the color scheme:
* {
BG: #your-bg-color;
ACC: #your-accent-color;
FG: #your-text-color;
}
Adjust columns and rows in the respective .rasi
files:
listview {
columns: 6; /* Number of columns */
lines: 3; /* Number of rows */
}
Toggle icons in launcher by modifying:
configuration {
show-icons: true; /* or false */
}
- Ensure Nerd Font is installed and properly configured
- Check if icon theme is available
- Try the alternative icon section in powermenu script
Ensure scripts are executable:
ls -la ~/.config/rofi/bin/
chmod +x ~/.config/rofi/bin/*
Verify systemctl permissions and dependencies:
# Test systemctl commands
systemctl --dry-run poweroff
systemctl --dry-run reboot
- Color Scheme: Tokyo Night
- Fonts: RecMonoCasual Nerd Font, Manrope
- Icons: Nerd Font icons