aboutsummaryrefslogtreecommitdiff
path: root/misc/.local/bin/dmenu_launcher
blob: ccd565931ad11a6673b2148c12abf8d2e70aa432 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/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