Skip to content

Commit

Permalink
Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
bozso committed Jun 4, 2019
1 parent 794a8d5 commit c2e11ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Binary file added icons/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/mc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/music_note.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit c2e11ba

Please sign in to comment.