From f5eac3a48ed6de9b1fd6d58f97465a6a31654566 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Sun, 13 Apr 2014 12:19:02 +0200 Subject: [PATCH 1/4] net: optional notifications --- widgets/net.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/net.lua b/widgets/net.lua index af97201..08c7366 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -44,6 +44,7 @@ local function worker(args) local timeout = args.timeout or 2 local iface = args.iface or net.get_device() local units = args.units or 1024 --kb + local notify = args.notify or "on" local settings = args.settings or function() end net.widget = wibox.widget.textbox('') @@ -76,7 +77,7 @@ local function worker(args) net.last_t = now_t net.last_r = now_r - if net_now.carrier ~= "1" + if net_now.carrier ~= "1" and notify == "on" then if helpers.get_map(iface) then From 74bbbc4e4d12c3c8efb2c92763f30e7d65fb885c Mon Sep 17 00:00:00 2001 From: Thomas Etcheverria Date: Sun, 20 Apr 2014 16:04:39 +0200 Subject: [PATCH 2/4] add yawn localization fr_FR --- widgets/yawn/localizations/fr_FR | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 widgets/yawn/localizations/fr_FR diff --git a/widgets/yawn/localizations/fr_FR b/widgets/yawn/localizations/fr_FR new file mode 100644 index 0000000..b88f51d --- /dev/null +++ b/widgets/yawn/localizations/fr_FR @@ -0,0 +1,60 @@ +Now:|Auj: +Sun:|Dim: +Mon:|Lun: +Tue:|Mar: +Wed:|Mer: +Thu:|Jeu: +Fri:|Ven: +Sat:|Sam: +Mostly Sunny| +Sunny|Ensoleillé +Sun|Soleil +Rain/Thunder|Pluie/Orage +Isolated Thunderstorms|Orages localisés +Scattered Thunderstorms|Orages épars +Thundershowers| +Thunderstorms|Orages +Thunder in the Vicinity|Orage aux alentours +Thunder|Orages +AM|Matinée +PM|Après-midi +Early|Tôt +Late|Tard +Few|Quelques +Severe|Sévère +Clear|Clair +Fair|Clair +Partly|Partiellement +Mostly|Très +Cloudy|Nuageux +Clouds|Nuages +Scattered Showers|Nuages épars +Light Snow Showers|Légères averses de neige +Snow Showers|Averses de neige +Heavy Snow|Neige +Scattered Snow Showers|Averses de neige localisées +Mixed Rain And Snow|Alternance de neige et de pluie +Mixed Rain And Sleet|Alternance de pluie et de neige fondue +Mixed Snow And Sleet|Alternance de neige et de neige fondue +Mixed Rain And Hail|Alternance de pluie et de grêle +Snow Flurries|Averses de neige +Blowing Snow|Neige +Blowing Rain|Pluie +Heavy Rain|Pluie forte +Freezing Rain|Pluie verglaçante +Showers|Averses +Light Rain|Pluie légère +Heavy|Forte +Rain|Pluie +Windy|Venteux +Wind|Vent +Snow|Neige +Sleet|Neige fondue +Freezing Drizzle|Bruine verglaçante +Light Drizzle|Légère bruine +Drizzle|Bruine +Hail|Grêle +Fog|Brouillard +Foggy|Brumeux +Haze|Brume +Light|Clair \ No newline at end of file From d64e059ffb546edf4ac90ca05b0788382863bc30 Mon Sep 17 00:00:00 2001 From: Thomas Etcheverria Date: Mon, 21 Apr 2014 22:28:47 +0200 Subject: [PATCH 3/4] fix missing --- widgets/yawn/localizations/fr_FR | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/yawn/localizations/fr_FR b/widgets/yawn/localizations/fr_FR index b88f51d..444b02c 100644 --- a/widgets/yawn/localizations/fr_FR +++ b/widgets/yawn/localizations/fr_FR @@ -6,13 +6,13 @@ Wed:|Mer: Thu:|Jeu: Fri:|Ven: Sat:|Sam: -Mostly Sunny| +Mostly Sunny|Partiellement ensoleillé Sunny|Ensoleillé Sun|Soleil Rain/Thunder|Pluie/Orage Isolated Thunderstorms|Orages localisés Scattered Thunderstorms|Orages épars -Thundershowers| +Thundershowers|Tempête Thunderstorms|Orages Thunder in the Vicinity|Orage aux alentours Thunder|Orages From 1152e7e8a6c3c66a4a1631e3df8958a220f060a1 Mon Sep 17 00:00:00 2001 From: Zoltan Tombol Date: Sat, 26 Apr 2014 16:41:14 +0200 Subject: [PATCH 4/4] fix cpu load calculation --- widgets/cpu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/cpu.lua b/widgets/cpu.lua index 0b21edc..7c1ecb0 100644 --- a/widgets/cpu.lua +++ b/widgets/cpu.lua @@ -43,9 +43,9 @@ local function worker(args) local total = 0 for field in string.gmatch(times, "[%s]+([^%s]+)") do - -- 3 = idle, 4 = ioWait. Essentially, the CPUs have done + -- 4 = idle, 5 = ioWait. Essentially, the CPUs have done -- nothing during these times. - if at == 3 or at == 4 + if at == 4 or at == 5 then idle = idle + field end