dev-resources.site
for different kinds of informations.
π Mastering Rofi in i3: A Cool & Fun Guide
Published at
12/27/2024
Categories
Author
Ayedoun ChΓ’-Fine ADEBI
Categories
1 categories in total
open
So, you've installed Rofi, jazzed it up with some sweet themes from adi1090x, and now you're ready to turn it into a powerful, futuristic multitool. Letβs dive into customizing your workflow with Rofi!
1οΈβ£ Install & Configure Rofi
- Clone the repository for amazing pre-made themes:
git clone https://github.com/adi1090x/rofi.git ~/rofi-themes
- Navigate to the cloned directory:
cd ~/rofi-themes
- Run the setup script to install the themes:
./setup.sh
- Choose your desired theme style during setup (light, dark, or custom). Themes are installed in
~/.config/rofi
.
2οΈβ£ Make Rofi Pop with i3 Keybindings
Add the following to your i3 configuration file (~/.config/i3/config
):
πΉ Launch Rofi in "drun" mode (app launcher):
bindsym $mod+d exec --no-startup-id rofi -show drun -theme ~/.config/rofi/config.rasi
πΉ Switch to "run" mode (execute commands):
bindsym $mod+r exec --no-startup-id rofi -show run -theme ~/.config/rofi/config.rasi
πΉ Switch to "window" mode (manage windows):
bindsym $mod+w exec --no-startup-id rofi -show window -theme ~/.config/rofi/config.rasi
πΉ Enable "file browser" mode (navigate files):
To browse files, ensure Rofi Scripts are installed from the adi1090x repo:
bindsym $mod+f exec --no-startup-id rofi -modi filebrowser -show filebrowser -theme ~/.config/rofi/config.rasi
Reload i3 ($mod+Shift+R
) to apply these bindings.
3οΈβ£ Tips & Tricks for Using Rofi
π‘ Switch Between Modes Dynamically
- While in any mode (e.g.,
drun
), typeCtrl+Tab
to cycle through modes like:-
drun
β App Launcher -
run
β Command Runner -
window
β Window Switcher -
filebrowser
β File Manager
-
π‘ Search Smarter in "drun" Mode
-
Search for apps by typing their name (e.g.,
fir
for Firefox). - Use arrow keys to navigate and hit
Enter
to launch.
π‘ Use "run" Mode Like a Pro
- Type commands directly:
-
htop
β Launch system monitor. -
shutdown now
β Turn off your system.
-
- Rofi remembers past commands, making it quicker to access frequent ones.
π‘ Master the "window" Mode
- Quickly switch between open windows:
- Type part of the window name.
- Example: Type "term" to jump to an open terminal.
π‘ Browse Files with Rofi (Filebrowser Mode)
- Launch the file browser mode and navigate files using:
-
Arrow keys
β Navigate. -
Tab
β Auto-complete. -
Enter
β Open the file or directory.
-
4οΈβ£ Rofi Keyboard Shortcuts
Key | Function |
---|---|
Ctrl+Tab | Switch between modes (drun, run, etc.) |
Enter | Select an option |
Esc | Exit Rofi |
Arrow Keys | Navigate the menu |
Alt+Enter | Launch in a terminal (requires setup) |
5οΈβ£ Customize Themes for a Futuristic Look
πΉ Edit a Theme:
Rofi themes are located in ~/.config/rofi
. Open and tweak a theme:
nano ~/.config/rofi/config.rasi
πΉ Change Colors for Abstract Vibes:
- Background: Neon with transparency:
background: rgba(0, 0, 0, 0.8);
- Highlight Selected Items:
selected-background: #00FFAB; /* Neon green */
selected-foreground: #FFFFFF;
πΉ Rounded Corners:
- Add modern rounded corners for a clean UI:
border-radius: 10px;
6οΈβ£ Fun Rofi Ideas
-
Game Launcher:
- Bind
$mod+g
to launch Rofi with a custom list of games.
- Bind
-
Spotify Control:
- Use Rofi to search and play songs with Rofi Spotify.
-
SSH Connection Manager:
- Add a mode to manage SSH connections for servers.
-
Calculator Mode:
- Add a script for quick calculations using Rofi.
Now you're all set to make Rofi your supertool in i3! π Feel free to experiment and share your favorite Rofi setups!
Articles
12 articles in total
π Mastering Rofi in i3: A Cool & Fun Guide
currently reading
π Ready to transform your desktop into a superpower? Let's get started! π
read article
π¨ Customize Void Linux with Polybar, PulseAudio, pavucontrol, nm-applet, NetworkManager, i3, and feh
read article
π Void Linux Base Installation: A Fun Adventure
read article
ππ Fun and Comprehensive Guide to Installing and Setting Up Anaconda, AIMA Python, and Jupyter Notebook! ππ
read article
The Dotfiles Quest: Becoming a Configuration Wizard π§ββοΈ
read article
π The Fun Beginnerβs Guide to Bluetooth on Void Linux π
read article
Ultimate LazyVim Terminal Troubleshooting Tutorial (for the Brave Souls π οΈ)
read article
π LazyVim Adventure Part 2: Managing Projects Like a Boss! π
read article
π Welcome to the LazyVim Adventure! π Part1
read article
RΓ©soudre le Puzzle Coulissant en Python : ImplΓ©mentation de Problem et Node π§©π
read article
Applications Pratiques de l'IA : Quand les Algorithmes Sortent du Laboratoire ππ€
read article
Featured ones: