tchanged menu-like application (look and content) - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 696d3da4c8a32367e673052ff21f25294180adeb
(DIR) parent c8a584d1efdaa927bb17613cbc35030f15fccf6e
(HTM) Author: z3bra <willy@mailoo.org>
Date: Mon, 30 Mar 2015 23:06:02 +0200
changed menu-like application (look and content)
Diffstat:
M link-open | 21 ++++++++++++++-------
M menu | 2 +-
2 files changed, 15 insertions(+), 8 deletions(-)
---
(DIR) diff --git a/link-open b/link-open
t@@ -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
(DIR) diff --git a/menu b/menu
t@@ -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" \