From 9df0425c4ca49475cf120032f82883d202d89415 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 19 Sep 2021 16:40:50 +0100 Subject: [PATCH] Add prompts to rofi scripts --- files/bin/vscode-project-list | 2 +- files/bin/website-link | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/bin/vscode-project-list b/files/bin/vscode-project-list index 292fa70..947b0fc 100755 --- a/files/bin/vscode-project-list +++ b/files/bin/vscode-project-list @@ -46,7 +46,7 @@ def main(): home_dir = str(HOME) + "/" project_paths_display = [str(project).replace(home_dir, "") for project in project_paths] - selected_project = subprocess.run(["rofi", "-dmenu", "-no-case-sensitive", "-format", "i"], input="\n".join(project_paths_display).encode(), stdout=subprocess.PIPE) + selected_project = subprocess.run(["rofi", "-dmenu", "-no-case-sensitive", "-format", "i", "-p", "Project"], input="\n".join(project_paths_display).encode(), stdout=subprocess.PIPE) selected_project.check_returncode() selected_index = int(selected_project.stdout.strip()) diff --git a/files/bin/website-link b/files/bin/website-link index f602bae..655827f 100755 --- a/files/bin/website-link +++ b/files/bin/website-link @@ -15,7 +15,7 @@ def main(): for d in data } - selected_page = subprocess.check_output(["rofi", "-dmenu", "-i", "-format", "s"], input="\n".join(url_mapping.keys()), universal_newlines=True) + selected_page = subprocess.check_output(["rofi", "-dmenu", "-i", "-format", "s", "-p", "Post"], input="\n".join(url_mapping.keys()), universal_newlines=True) selected_page = selected_page.strip() subprocess.check_output(['xsel', '-bi'], input=url_mapping[selected_page], universal_newlines=True)