Recent files rofi script
Posted: Sat Feb 01, 2025 3:44 pm
Hi, I made a script some time ago to open recent files with rofi. It's in two files, the main script and another script that finds the icons paths (they are cached in ~/.local/share/rofi-recent-icons-cache)

The scripts are in the archive, they go into ~/.fluxbox/scripts
It's recommended to use this keybinding in ~/.fluxbox/keys
That is, Alt-space shows recent files, hit Alt-space again to show recent directories.

The scripts are in the archive, they go into ~/.fluxbox/scripts
Code: Select all
Usage: env ROFI_RECENT_MODE=files ROFI_ICONS_THEME=Papirus-Dark \
rofi -show recent -modi recent:path/to/rofi-recent-files \
-kb-custom-1 "Alt-space" -kb-custom-2 "Alt-Delete" \
-kb-custom-3 "Alt-r"
Alt-space is used to toggle between recent files and directories.
Alt-delete is used to remove an entry from the recent files.
Alt-r is used to refresh the icons cache (necessary when changing theme)
Code: Select all
Mod1 space :Exec env ROFI_RECENT_MODE=files ROFI_ICONS_THEME=Papirus-Dark rofi -show recent -modi recent:~/.fluxbox/scripts/rofi-recent-files -kb-custom-1 "Alt-space" -kb-custom-2 "Alt-Delete" -kb-custom-3 "Alt-r"