トレイのアプリケーション起動ボタン
Posted: 09/06/30(火) 06:51
4.1.2あたりからうまく動いてなかった。
コード: 全て選択
total=`wc -l /root/.jwmrc-tray | sed -e 's/ *//' | sed -e 's/ .*//g'` ### get total number of lines
low=`grep '<!-- Additional TrayButton attribute: label -->' -n /root/.jwmrc-tray | sed -e 's/\:.*>//g'` ### get line number with the Menu button
high=`grep '<!-- Additional Pager attributes; width, height -->' -n /root/.jwmrc-tray | sed -e 's/\:.*>//g'` ### get line number with Additional Pager
last=`echo "(("$total" - "$high" + 1))" | bc -l`
begin=`echo "(("$low" + 1))" | bc -l` ### first line with panel buttons
#end=`echo "(("$high" - 1))" | bc -l` ### last line with panel buttons