You are not logged in.
I am using Xfce and would love to have a line in my conky that shows if there are files
in my trash or not. somethings like this:
Trash: 0 files
or
Trash: 3 files
Is there a way to do this???
Last edited by orphius1970 (2010-06-17 11:12:31)
AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64
Offline
Sure. An example:
Trash: ${color1}${exec ls -a /home/user/.local/trash | wc -l} Files${color}
no place like /home
github
Offline
That would only get you the amount of files AND directories, for just the amount of files I would do:
Trash: ${color1}${exec find /home/user/.local/trash -type f | wc -l} Files${color}
Offline
neither one shows any results.
Got it working. This is what I used:
Trash: ${exec find /home/user/.local/share/Trash -type f | wc -l}
Thank you!
Is it possible to make that command check two locations and output as one result.
I have second drive and the trash gets stored in folder .Trash-1000
Last edited by orphius1970 (2010-06-17 08:42:16)
AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64
Offline
You can just add those
Trash: ${color1}${exec find /home/user/.local/trash /second/location/trash/.Trash-1000 /third/location/trash -type f | wc -l} Files${color}
Offline
vintendo, thank you.
I had just figured that out. You beat me to it!
Man pages again......
AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64
Offline