Menu

xdf

Anonymous Victor Ananjevsky

Notes

Graphical frontend for df(1) command. This example demonstrate how to use multi-progress dialog

Required yad version - 0.17.90 or later

Details

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#! /bin/bash
# -*- mode: sh -*-
#
# Graphicat frontend for df(1) command
# Author: Victor Ananjevsky <ananasik@gmail.com>, 2012
#

eval exec yad --image=drive-harddisk --text="Disk\ usage" --buttons-layout=end \
     --multi-progress $(df -h $1 | tail -n +2 |\
     awk '{printf "--bar=\"<b>%s</b> (%s) [%s/%s]\" %s ", $6, $1, $3, $2, $5}')

Discussion

  • Anonymous

    Anonymous - 2012-03-10

    Originally posted by: antix1917@gmail.com

    The bold doesn't woek using yad .17.1.1

     
  • Anonymous

    Anonymous - 2012-03-10

    Originally posted by: ananasik

    yes, i know. this is already fixed in svn

     

Log in to post a comment.