Creator: ax - ax@slackware.eu
IRC: SLK-UmbrellaNet — irc1.slackware.eu #lug
A complete Rofi-Wayland configuration for a Gentoo GNU/Linux desktop using OpenRC + Wayland, based on the working configuration and source patch developed and tested with Rofi-Wayland 1.7.8_p1::guru.
drun,ssh, andfilebrowsermodes- Papirus-Dark icons
footclientterminal integration- Vim-style navigation
- Tokyonight dark theme
- Filebrowser directories-first sorting
- Persistent filebrowser location when navigating with
..and pressingEsc - Gentoo Portage user patch, without modifying the GURU ebuild
- Automatic build/install through
.install
Gentoo GNU/Linux
OpenRC
Wayland
Rofi-Wayland 1.7.8_p1::guru
No systemd or journalctl is required.
Rofi stores its filebrowser location in:
~/.cache/rofi3.filebrowsercache
The reference version updates this cache when entering a directory, but the normal .. navigation path did not update it.
This project patches both relevant parent-navigation paths. The resulting behavior is:
B -> .. -> A -> Esc
and the cache becomes:
A
The next rofi -show filebrowser starts in A.
rofi-tokyonight-gentoo-openrc/
├── README.md
├── .install
├── config/
│ ├── config.rasi
│ └── tokyonight.rasi
├── patches/
│ └── gui-apps/
│ └── rofi-wayland-1.7.8_p1/
│ └── 0001-filebrowser-save-parent-directory.patch
└── scripts/
├── bootstrap.sh
├── verify.sh
└── uninstall.sh
Once the repository is published:
git clone https://github.com/USER/REPOSITORY.git
cd REPOSITORY
chmod +x .install scripts/*.sh
./.installThe only value that needs replacing is the GitHub repository URL.
You can also use the included bootstrap helper:
./scripts/bootstrap.sh https://github.com/USER/REPOSITORY.gitRun as the normal desktop user:
./.installThe installer:
- verifies that
equeryresolvesgui-apps/rofi-waylandto1.7.8_p1; - installs
config.rasito~/.config/rofi/config.rasi; - installs
tokyonight.rasito~/.config/rofi/tokyonight.rasi; - installs the Portage patch under
/etc/portage/patches/; - runs Portage
clean unpack prepare; - verifies the patch in the prepared source;
- compiles and installs
=gui-apps/rofi-wayland-1.7.8_p1::guru.
The GURU ebuild itself is never modified.
./scripts/verify.shCheck the cache:
cat ~/.cache/rofi3.filebrowsercachemkdir -p /tmp/rofi-test/A/B
rofi -show filebrowserNavigate to /tmp/rofi-test/A/B, select .., then press Esc.
Verify:
cat ~/.cache/rofi3.filebrowsercacheExpected:
/tmp/rofi-test/A
Run Rofi again:
rofi -show filebrowserIt should start in /tmp/rofi-test/A.
~/.config/rofi/config.rasi
~/.config/rofi/tokyonight.rasi
/etc/portage/patches/gui-apps/rofi-wayland-1.7.8_p1/0001-filebrowser-save-parent-directory.patch
~/.cache/rofi3.filebrowsercache
./scripts/uninstall.shThis removes only the configuration/theme and Portage patch. It does not uninstall Rofi.
The patch is intentionally tied to 1.7.8_p1. If the GURU package changes version, review source/modes/filebrowser.c and update the patch before using it with a newer release.
Project creator:
ax - ax@slackware.eu
IRC: SLK-UmbrellaNet — irc1.slackware.eu #lug
The supplied Tokyonight theme retains the original attribution to w8ste.
Rofi and its upstream source remain under their respective upstream licenses; this repository contains configuration and a small Gentoo user patch, not a redistribution of the Rofi source tree.