diff --git a/.gitignore b/.gitignore index 28be66d..204da06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ rc.lua -perceptive/ diff --git a/README.rst b/README.rst index 70b0d20..0271e95 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ ===== Awesome WM Copycats ===== -A collection of heavy modded themes +A collection of heavy modded themes for Awesome WM 3.5+ --------- Beware! They're more awesome than they appear, it's just they're shy. @@ -10,14 +10,14 @@ Notable features: - Autohide widgets (*tell me only when you have to*) - Autostart functionality -- Fast mpd and volume shortcuts (first time you see this trick on Awesome) +- Fast mpd and volume shortcuts (first time you see this trick in Awesome) - Other fancy shortcuts for copying to the clipboard (goodbye clipboard managers!), toggle wiboxes, widgets popups, screenshots capture, moving clients - Quake style dropdown terminal -- Calendar with current day hightlighted plus the possibility to switch months back and forward with just a click +- Calendar with current day hightlighted and previous/next month switch with just a click - Elegant notifications for new mails, current song, hdd critical state, low battery - Yahoo Wheather integration -- A net carrier checker, when you're offline it warns you and lets you start wifi-menu -- Full localization potential (just easily edit about 20 lines) +- A net carrier status notifier +- Full localization potential (just easily edit about 5 lines - look for 'stub' keywords) - Colorful autoupdating icons They're scattered all over the set, but you can get them all *only* in Blackburn. diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 588f05a..b1bd498 100755 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -71,7 +71,7 @@ end home = os.getenv("HOME") confdir = home .. "/.config/awesome" -scriptdir = confdir .. "/script/" +scriptdir = confdir .. "/scripts/" themes = confdir .. "/themes" active_theme = themes .. "/blackburn" diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 1348499..c3c6d60 100755 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -73,7 +73,7 @@ end -- Useful Paths home = os.getenv("HOME") confdir = home .. "/.config/awesome" -scriptdir = confdir .. "/script/" +scriptdir = confdir .. "/scripts/" themes = confdir .. "/themes" active_theme = themes .. "/multicolor" diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 6e8c1ed..473226e 100755 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -74,6 +74,7 @@ end -- Useful Paths home = os.getenv("HOME") confdir = home .. "/.config/awesome" +scriptdir = confdir .. "/scripts/" themes = confdir .. "/themes" active_theme = themes .. "/powerarrow-darker" @@ -418,7 +419,7 @@ function add_info() mouse = mouse, screen = screen } - local cal = awful.util.pread("dfs") + local cal = awful.util.pread(scriptdir .. "dfs") cal = string.gsub(cal, " ^%s*(.-)%s*$", "%1") infos = naughty.notify({ text = string.format('%s', "Terminus", cal), diff --git a/script/dfs b/script/dfs deleted file mode 100755 index ef4404e..0000000 --- a/script/dfs +++ /dev/null @@ -1,390 +0,0 @@ -#!/bin/bash -# -# Adapted from Eridan's "fs" (cleanup, enhancements and switch to bash/Linux) -# JM, 10/12/2004 -# -# Localized in Italian by a maniac, 02/03/2013 -# -# ------------------------------------------------------------------------- -# Decoding options -# ------------------------------------------------------------------------- -USAGE="--> Usage: $0 [-h(elp)] | [-n(arrow mode)] | [-w(eb output)]" - -NARROW_MODE=0 -WEB_OUTPUT=0 - -while [ $# -gt 0 ]; do -case "$1" in -"-h" ) -echo $USAGE -exit -;; -"-d" ) -DEBUG=1 -;; -"-n" ) -NARROW_MODE=1 -;; -"-w" ) -WEB_OUTPUT=1 -;; -* ) -echo $USAGE -exit -;; -esac -shift -done - -# ------------------------------------------------------------------------- -# Preparations -# ------------------------------------------------------------------------- -SYSTEM=`uname -s` -PATTERN="/" - -case "$SYSTEM" in -"Linux" ) -DF_COMMAND="/bin/df -k" -SORT_COMMAND="/usr/bin/sort -k6" -AWK_COMMAND="/bin/awk" -;; -* ) -DF_COMMAND="/bin/df -k" -SORT_COMMAND="/usr/bin/sort -k6" -AWK_COMMAND="/opt/local/bin/gawk" -;; -esac - -if [ ! -x ${AWK_COMMAND} ]; then -echo "### ${AWK_COMMAND} not present; install it! ###" -echo " On Mac OS X: install MacPorts and perform:" -echo " sudo port install gawk" -fi - -# ------------------------------------------------------------------------- -# Grabbing "df" result -# ------------------------------------------------------------------------- -DF_RESULT=`$DF_COMMAND` -if [ ! -z $DEBUG ]; then -echo "--> DF_RESULT:" -echo "$DF_RESULT" -echo "" -fi - -# ------------------------------------------------------------------------- -# Preprocessing "df" result, to join split logical lines -# ------------------------------------------------------------------------- -PREPROCESSING_RESULT=` \ - echo "$DF_RESULT" | $AWK_COMMAND -v PATTERN=$PATTERN \ - ' - NF == 1 { - printf ("%s", $0) - } - -NF == 5 { - printf ("%s\n", $0) -} - -NF > 6 { -} - -NF == 6 { - printf ("%s\n", $0) -}' -` -if [ ! -z $DEBUG ]; then -echo "--> PREPROCESSING_RESULT:" -echo "$PREPROCESSING_RESULT" -echo "" -fi - -SORTED_FILE_SYSTEMS_INFO=`echo "$PREPROCESSING_RESULT" | $SORT_COMMAND` - -if [ ! -z $DEBUG ]; then -echo "--> SORTED_FILE_SYSTEMS_INFO:" -echo "$SORTED_FILE_SYSTEMS_INFO" -echo "" -fi - -# ------------------------------------------------------------------------- -# Computing mount point max length -# ------------------------------------------------------------------------- -MOUNT_POINT_MAX_LENGTH=` \ - echo $SORTED_FILE_SYSTEMS_INFO | $AWK_COMMAND -v PATTERN=$PATTERN \ - ' - BEGIN { - mount_point_length_max = 15; - } - -END { - printf ("%d", mount_point_length_max); -} - -$0 ~ PATTERN { -# printf ("$6 = %s\n", $6); - - mount_point = $6; -# printf ("mount_point = %s\n", mount_point); - - mount_point_length = length (mount_point); -# printf ("mount_point_length = %d\n", mount_point_length); - - if (mount_point_length > mount_point_length_max) - mount_point_length_max = mount_point_length; -}' -` -if [ ! -z $DEBUG ]; then -echo "MOUNT_POINT_MAX_LENGTH: $MOUNT_POINT_MAX_LENGTH" -fi - -# ------------------------------------------------------------------------- -# Computing mount point data max size -# ------------------------------------------------------------------------- -MOUNT_POINT_MAX_SIZE=` \ - echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v PATTERN=$PATTERN \ - ' - BEGIN { - mount_point_size_max = 0; - } - -END { - printf ("%d", mount_point_size_max); -} - -$0 ~ PATTERN { -# df -k shows k_bytes! -# printf ("$2 = %s\n", $2); - - mount_point_size = $2 * 1024; -# printf ("mount_point_size = %d\n", mount_point_size); - - if (mount_point_size > mount_point_size_max) - mount_point_size_max = mount_point_size; -}' -` -if [ ! -z $DEBUG ]; then -echo "MOUNT_POINT_MAX_SIZE: $MOUNT_POINT_MAX_SIZE" -fi - -# ------------------------------------------------------------------------- -# Let's go! -# ------------------------------------------------------------------------- -echo "$SORTED_FILE_SYSTEMS_INFO" | $AWK_COMMAND -v DEBUG=$DEBUG -v PATTERN=$PATTERN -v NARROW_MODE=$NARROW_MODE -v LEFT_COLUMN=$MOUNT_POINT_MAX_LENGTH -v MAX_SIZE=$MOUNT_POINT_MAX_SIZE -v SCALE=$SCALE -v WEB_OUTPUT=$WEB_OUTPUT \ - ' -# {printf ("$0 = %s\n", $0);} -# {printf ("$1 = %s\n", $1);} -# {printf ("PATTERN = %s\n", PATTERN);} -# {printf ("LEFT_COLUMN = %s\n", LEFT_COLUMN);} - - BEGIN { - k_bytes = 1024.0; - m_bytes = 1024.0 * k_bytes; - g_bytes = 1024.0 * m_bytes; - t_bytes = 1024.0 * g_bytes; - - if (WEB_OUTPUT) - { - all_stars = "**************************************************"; - current_date = strftime ("%d-%m-%Y @ %H:%M:%S", localtime (systime ())); - free_threshold = 10; # % - - printf ("\n"); - - printf ( \ - "\n" \ - "
%s -- STATUS OF ALCOR FILE SYSTEMS
Mount point | \n" \ - "%% Usato (*)" \ - " - %% Free (*) | \n" \ - "%% Usato | \n" \ - "Spazio libero | \n" \ - "Spazio totale | \n" \ - "