#!/bin/bash # Simple dmenu launcher # NOTE: this uses a personal fork of dmenu patched to add an option to # disable the input field. BROWSER="\uf269" NEXTCLOUD="\uf307" CALENDAR="\uf073" CGIT="\uf1d3" SYNCTHING="\uf311" RIOT="\uf313" APPS="$BROWSER\n$NEXTCLOUD\n$CALENDAR\n$CGIT\n$SYNCTHING\n$RIOT\n$YOUTUBE" SELECTED=`echo -e "$APPS" | dmenu -I -b -x 20 -y 20 -w 599 -h 80 -bw 3 -fn ForkAwesome:pixelsize=42` [ -z "$SELECTED" ] && exit 0 case "$SELECTED" in ) firefox-bin & ;; ) surf "https://cloud.dyamon.me/apps/files" & ;; ) surf "https://cloud.dyamon.me/apps/calendar" & ;; ) surf "https://git.dyamon.me" & ;; ) surf "http://127.0.0.1:8384" & ;; ) riot-desktop & ;; *) exit 1 ;; esac