Skip to content

Instantly share code, notes, and snippets.

@crysterbater
Created November 19, 2017 11:14
Show Gist options
  • Select an option

  • Save crysterbater/83504667674e87bbade80943b3d3e95a to your computer and use it in GitHub Desktop.

Select an option

Save crysterbater/83504667674e87bbade80943b3d3e95a to your computer and use it in GitHub Desktop.
erc
res=$(echo "scrotshot|clerk|themes|files|bookmarks|google|randr|move|mpd|network|outputs|" | rofi -sep "|" -dmenu -i -p 'rofi shit: ' "" -auto-select)
function sure {
local res=$(echo "no|yes" | rofi -sep "|" -dmenu -i -p "$1: sure?" -auto-select)
[[ $res = "yes" ]] && exec $2
}
[[ $res = "scrotshot" ]] && teiler
[[ $res = "clerk" ]] && clerk
[[ $res = "themes" ]] && rofi-theme-selector
[[ $res = "file browser" ]] && rofi -modi "fb:/home/pringle/bin/rofi_modules/rofi-scripts-master/rofi-file-browser.sh" -show fb
[[ $res = "bookmarks" ]] && buku_run
[[ $res = "google" ]] && google.py
[[ $res = "randr" ]] && rofi-randr
[[ $res = "window" ]] && move_window_to_current
[[ $res = "mpd" ]] && rofi-mpd
[[ $res = "network" ]] && network.sh
[[ $res = "outputs" ]] && monitor_layout.sh
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment