i3 menus
This commit is contained in:
7
.config/rofi/scripts/traefik.sh
Executable file
7
.config/rofi/scripts/traefik.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
TRAEFIK="http://traefik.docker.localhost"
|
||||
DOMAIN="docker.localhost"
|
||||
SERVICES=$(curl ${TRAEFIK}/api/http/routers |jq ".[].rule" |grep "${DOMAIN}" |awk -F\` '{print $2}')
|
||||
SELECTION=$(echo -e "$SERVICES" | uniq -u | rofi -dmenu -p "Select traefik service: " -theme ~/.config/rofi/themes/app-launcher)
|
||||
[ ! -z "$SELECTION" ] && xdg-open "http://${SELECTION}"
|
Reference in New Issue
Block a user