scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 696d3da4c8a32367e673052ff21f25294180adeb
parent c8a584d1efdaa927bb17613cbc35030f15fccf6e
Author: z3bra <willy@mailoo.org>
Date:   Mon Mar 30 23:06:02 +0200

changed menu-like application (look and content)

Diffstat:
link-open | 21++++++++++++++-------
menu | 2+-
2 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/link-open b/link-open @@ -2,10 +2,17 @@ URI="$*" -thingmenu -g 140x180 \ - "picture" "img '$URI'" \ - "video" "mplayer '$URI'" \ - "kinda vid" "uplay '$URI'" \ - "text file" "urxvt -e sh -c 'curl -s $URI | less'" \ - "donlad" "urxvt -cd $HOME/tmp -e curl -sO '$URI'" \ - "web shit" "dwb '$URI'" 2>/dev/null +case $URI in + *.jpg|*.png) img "$URI";; + *.webm|*.mp4|*.ogv) mplayer -geometry 1280x720 "$URI";; + *youtube.com/*) uplay "$URI";; + *.html) dwb "$URI";; + *) thingmenu -g 140x182 \ + "picture" "img '$URI'" \ + "video" "mplayer -cache 512 '$URI'" \ + "kinda vid" "uplay '$URI'" \ + "text file" "urxvt -e sh -c 'curl -s $URI | less -r'" \ + "donlad" "~/bin/download $URI" \ + "web shit" "dwb '$URI'" 2>/dev/null + ;; +esac diff --git a/menu b/menu @@ -1,5 +1,5 @@ #!/bin/bash -thingmenu -g 140x220 \ +thingmenu -g 140x224 \ "pop a term" "urxvt" \ "chat on irc" "urxvt -e sh -c 'dm irc ssh blink'" \ "play a game" "steam" \