You are not logged in.

#1 2011-08-11 08:41:41

Oxpoto
Member
Registered: 2011-07-20
Posts: 18

Thunar recursive file sizes?

The files sizes shown by thunar at bottom bar are not recursive, all of the folders appears to be 4kb. Is there any way of seeing the folder size without leftclick->properties ?

Offline

#2 2011-08-11 12:08:16

bocke
Member
Registered: 2011-07-15
Posts: 40

Re: Thunar recursive file sizes?

From Thunar no. But you could use du:

du -s

Or write a simple wrapper script using some gtk dialog utility and then assign it to Thunar custom action. That would still require a right click.

For example:

#!/bin/sh
DIR_USAGE=$(du -s -h "$1" | cut -f 1)

zenity --info --title "Directory Info" --text "Selected directory: $1\nDirectory size: $DIR_USAGE"

Screenshot%252520-%25252008112011%252520-%25252001%25253A55%25253A01%252520PM.png

Offline

#3 2011-08-11 21:34:11

Oxpoto
Member
Registered: 2011-07-20
Posts: 18

Re: Thunar recursive file sizes?

I'm finding it quite unbelieveble that something as great as Thunar, lacks something as basic as this.

Thanks alot for the script

Offline

#4 2011-08-11 21:48:36

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Thunar recursive file sizes?

I can't think of any FM that displays recursive folder size without a little work.  Probably because a little work on the user's part makes more sense than the loads of work (disk reads) that would be required to do so for every folder displayed, or even just selected...

Last edited by alphaniner (2011-08-11 21:51:01)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2011-08-11 22:48:46

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Thunar recursive file sizes?

Um, what's wrong with simply right-clicking on the directory and selecting Properties?
Says something like:  Size: xxxx items, totalling xxx.x MB
wink

Offline

#6 2011-08-11 22:52:23

bocke
Member
Registered: 2011-07-15
Posts: 40

Re: Thunar recursive file sizes?

So my script is recursive. Blah... sad

Yep, I checked it now. Directory size is in the first tab. I think Nautilus has it in the third tab, though. smile

Last edited by bocke (2011-08-11 22:54:36)

Offline

#7 2011-08-12 07:22:36

Oxpoto
Member
Registered: 2011-07-20
Posts: 18

Re: Thunar recursive file sizes?

OK, new question, is there way to assign hotkeys for custom actions?

Offline

#8 2012-07-31 06:08:49

mandalic
Member
Registered: 2009-11-13
Posts: 43

Re: Thunar recursive file sizes?

No, but you can place underscore in front of a letter, and then you can jump to that item when you open the right-click menu.

Offline

#9 2012-07-31 14:31:14

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Thunar recursive file sizes?

mandalic, I am sure Oxpoto wasn't waiting a year to figure that out. Please refrain from necrobumping threads.


Closing....


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB