Add prompts to rofi scripts

This commit is contained in:
Jake Howard 2021-09-19 16:40:50 +01:00
parent 8baf41bb2c
commit 9df0425c4c
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 2 deletions

View file

@ -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())

View file

@ -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)