Repository navigation
Add folder color command and Nautilus menu - #14408
Christopher-Moreira wants to merge 1 commit into
Conversation
|
c52d1f9 to
067ba45
Compare
|
Thanks for the review — all three findings are addressed in the latest push. P1 (security) — P1 (race) — concurrent registry writes: P2 (tabs/newlines in paths):
|
b38fc9f to
ccb47fc
Compare
|
The latest push (
I also revalidated the earlier follow-ups: icon and registry updates remain serialized under the same lock, concurrent set/clear operations finish consistently, atime/mtime are preserved, and replacing a saved folder with a symlink does not alter the target's permissions.
|
|
Nice feature, and good use of the Yaru variants already installed. BLOCKING: migration filename collision. Smaller things:
|
ccb47fc to
ca40076
Compare
|
@jandrusk Addressed all three points in
Added focused regressions for |
ca40076 to
c2bc790
Compare
|
@greptile-apps Addressed all four current findings in
|
Color individual folders with the installed Yaru color variants via `omarchy folder color` or a Nautilus "Folder color" right-click submenu. Special folders like Downloads keep their glyph, colors persist through gio metadata, and the icon updates live without a manual refresh. A migration installs the Nautilus extension for existing users.
c2bc790 to
6f225cd
Compare
|
@greptile-apps Fixed the permission refresh race in
The focused test now fails if refresh accesses All nine focused regressions, |
|
The new refresh implementation addresses the race: it no longer reads or writes Tip: You can customize Greptile's behavior for this repo with |
|
Thanks, re-checked at 6f225cd. The migration is now |
|
Hey @omacom, just following up on this PR. All review feedback has been addressed, the latest changes have been validated, and CI is passing. @jandrusk also confirmed LGTM after the final fixes. The implementation is ready for another look whenever you have a chance. Happy to make any additional adjustments if needed. Thanks! |
|
Hey @omacom, checking back on this. Is folder coloring something you’d like to include in Omarchy? All review threads are resolved and checks are passing. If there’s any remaining concern about the feature or its scope, I’d appreciate your feedback so I can address it. |
What
Adds a way to give individual folders their own icon color from the CLI or a Nautilus right-click menu.
omarchy folder color set <folder> <color>plusclear,list,reapply, andcolorsHow it works
Colors reuse the Yaru accent variants Omarchy already ships through
yaru-icon-theme, so there is no new dependency and folder shapes remain consistent with the active theme. The command pointsmetadata::custom-iconat the matching icon from the selectedYaru-<color>variant.ATTRIBUTE_CHANGED, so concurrent downloads, builds, file copies, and permission restrictions keep their real directory state.flock, so overlappingset,clear, andreapplyoperations cannot independently win the visible and saved state.~/.local/state/omarchy/folder-colors.json. GIO normally persists the icon metadata itself;reapplyis an explicitly manual recovery command for restoring all saved choices if that metadata is lost.Files
bin/omarchy-folder-color— theomarchy folder color ...commanddefault/nautilus-python/extensions/omarchy_folder_color.py— the right-click menu, following the existing extension patternbin/omarchy— the newfoldercommand group descriptionmigrations/1791380131.sh— installs the extension for existing userstest/shell.d/folder-color-test.sh— regressions for exact paths, metadata and registry failures, restore failures, temporary-file cleanup, saved-state consistency, and safe refresh behaviorScope / caveat
The color appears in Nautilus and on the desktop. It does not appear in the GTK Open/Save portal file chooser, which ignores per-folder custom-icon metadata.
Verification
./test/clibash test/shell.d/folder-color-test.shATTRIBUTE_CHANGEDcheck with atime/mtime preserved755to700remains700across refresh)jqfailure/empty-input and failed-restore cleanup checks