]> git.madduck.net Git - etc/awesome.git/blobdiff - scripts/dfs

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

use awful.tag.gettags in order to keep compatibility with custom configs such as...
[etc/awesome.git] / scripts / dfs
index 1730b6e5e5344d79355673b5ab6fc92beb5f073a..d78d2bbc21f5ad7a1339986e87bb4662e6980bbc 100755 (executable)
@@ -6,6 +6,8 @@
 #   Integrated into Lain in september 2013
 #   https://github.com/copycat-killer/lain
 
+#   Requires gawk
+
 # -------------------------------------------------------------------------
 #   Decoding options
 # -------------------------------------------------------------------------
@@ -183,7 +185,7 @@ echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v DEBUG=$DEBUG -v PATTERN=$PATT
                                         current_date = strftime ("%d-%m-%Y @ %H:%M:%S", localtime (systime ()));
                                         free_threshold = 10; # %
 
-                                                printf ("<!-- DEBUT CONTENU -->\n");
+                                printf ("<!-- DEBUT CONTENU -->\n");
 
                                         printf ( \
                                                         "<A NAME=\"top\"></A>\n" \
@@ -197,9 +199,9 @@ echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v DEBUG=$DEBUG -v PATTERN=$PATT
                                                         "<TD ALIGN=LEFT><STRONG>Mount point</STRONG></TD>\n" \
                                                         "<TD ALIGN=CENTER><STRONG>%% Usato&nbsp;(<SPAN CLASS=\"titleblue\">*</SPAN>)" \
                                                         "&nbsp;-&nbsp;%% Free&nbsp;(<SPAN CLASS=\"titlegreen\">*</SPAN>)</STRONG></TD>\n" \
-                                                        "<TD ALIGN=CENTER><STRONG>%% Usato</STRONG></TD>\n" \
-                                                        "<TD ALIGN=CENTER><STRONG>Spazio libero</STRONG></TD>\n" \
-                                                        "<TD ALIGN=CENTER><STRONG>Spazio totale</STRONG></TD>\n" \
+                                                        "<TD ALIGN=CENTER><STRONG>%% Used</STRONG></TD>\n" \
+                                                        "<TD ALIGN=CENTER><STRONG>Free</STRONG></TD>\n" \
+                                                        "<TD ALIGN=CENTER><STRONG>Total</STRONG></TD>\n" \
                                                         "</TR>\n" );
                                 }
                                 else