Skip to content

Instantly share code, notes, and snippets.

@ckhung
Last active Dec 3, 2021
Embed
What would you like to do?
pdmenu example
# https://newtoypia.blogspot.com/2021/09/pdmenu.html
# pdmenu 幫麻瓜製作常用功能文字選單
title:貴哥的 pdmenu 教學範例
color:desktop:yellow:black
color:menu:yellow:blue
color:menuhot:cyan:blue
color:unselmenu:green:black
color:selbar:black:yellow
menu:main:Main Menu
exec:硬碟用量 1:pause: df
exec:硬碟用量 2:display: df
exec:_Google 搜尋:edit: w3m http://www.google.com/search?q=~搜尋關鍵詞:玩具烏托邦~
show:_Download persistence image (預先寫好的)..::download_static
show:_Download persistence image (動態產生的)..::download_dynamic
exec:_Build download menu:pause: \
( echo 'menu:download_dynamic:下載映象檔 (動態產生的)' ; \
wget -O - --quiet https://v.im.cyut.edu.tw/ftp/19/ | perl -ne ' print "exec:$2:pause:wget https://v.im.cyut.edu.tw/ftp/19/$1\n" if /(persistence-(.*?)\.img\.gz)/' ) > wget.pdmenu
exec:Reload _menu::exec pdmenu -c example.pdmenu
menu:download_static:下載映象檔 (預先寫好的)
exec:1G:pause:wget https://v.im.cyut.edu.tw/ftp/19/persistence-1G.img.gz
exec:2G:pause:wget https://v.im.cyut.edu.tw/ftp/19/persistence-2G.img.gz
exec:3G:pause:wget https://v.im.cyut.edu.tw/ftp/19/persistence-3G.img.gz
read:wget.pdmenu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment