Add prompts to rofi scripts
This commit is contained in:
parent
8baf41bb2c
commit
9df0425c4c
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue