diff --git a/icons/github.png b/icons/github.png new file mode 100644 index 0000000..f13a10c Binary files /dev/null and b/icons/github.png differ diff --git a/icons/mc.png b/icons/mc.png new file mode 100644 index 0000000..30ecc77 Binary files /dev/null and b/icons/mc.png differ diff --git a/icons/music_note.png b/icons/music_note.png new file mode 100644 index 0000000..f474be7 Binary files /dev/null and b/icons/music_note.png differ diff --git a/menu.sh b/menu.sh index bc23631..4d59203 100755 --- a/menu.sh +++ b/menu.sh @@ -2,6 +2,8 @@ . "/home/istvan/progs/utils/utils.sh" +ICONS="$UTILS_DIR/icons" + opt="-fn -adobe-helvetica-bold-r-normal-*-25-180-100-100-p-138-iso8859-1" alias mymenu="dmenu $opt" @@ -67,13 +69,22 @@ playlists() { } +notify() { + if [ -n "$3" ]; then + notify-send -i "$ICONS/$3" "$1" "$2" + else + notify-send "$1" "$2" + fi +} + + commander() { local select=$(printf "%s\n" $repo_names | \ mymenu -p "Select progs directory:") if [ -n "$select" ]; then local path=$(get_pair $select) - notify-send "Started mc in directory:" "$path" + notify "Started Midnight Commander." "$path" "mc.png" $temu -e "mc $path" fi }