diff --git a/fake_home/.rofi-history-search.sh b/fake_home/.rofi-history-search.sh index 76d625f..b83d511 100755 --- a/fake_home/.rofi-history-search.sh +++ b/fake_home/.rofi-history-search.sh @@ -1,4 +1,6 @@ -FIREFOX_PROFILE="$HOME/.mozilla/firefox/qzw6ae3r.default-beta" +#!/bin/bash + +FIREFOX_PROFILE="$HOME/.mozilla/firefox/7sxxu758.dev-edition-default" PLACES_FILE="$FIREFOX_PROFILE/places.sqlite" WORKING_PLACES="$FIREFOX_PROFILE/places2.sqlite" CACHE_FILE="$HOME/.rofi-history-cache" diff --git a/fake_home/.rofi-list-git-repos.py b/fake_home/.rofi-list-git-repos.py index bb8a7cb..8a39f05 100755 --- a/fake_home/.rofi-list-git-repos.py +++ b/fake_home/.rofi-list-git-repos.py @@ -6,9 +6,9 @@ import sys home = os.environ['HOME'] git_dirs = [ - home + "/work", home + "/projects", home + "/git", + home + "/git/worktrees", home + "/WebStormProjects", home + "/RiderProjects" ] @@ -58,6 +58,7 @@ def get_icon(project: str) -> str | None: def open_project(project: str) -> (): + project = project.replace("~", home) (project_type, file) = get_project_type(project) if project_type is None: return @@ -73,7 +74,8 @@ def print_project_message(project: str) -> (): if icon is None: return - print(f'{project}\0icon\x1f{icon}') + project = project.replace(home, "~") + print(f'git {project}') if __name__ == '__main__': @@ -86,4 +88,4 @@ if __name__ == '__main__': if os.path.isdir(project): print_project_message(project) else: - open_project(sys.argv[1]) + open_project(sys.argv[1][4:])