From fa430134310cb6b3c98f445e423fa6095d800743 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 1 Feb 2017 21:45:15 -0500 Subject: readme update --- battery-widget/README.md | 2 ++ battery-widget/battery.lua | 6 +++--- brightness-widget/brightness.lua | 2 +- email-widget/email.lua | 2 +- rhythmbox-widget/rhythmbox.lua | 2 +- spotify-widget/spotify.lua | 2 +- test.txt | 1 - volume-widget/README.md | 2 ++ volume-widget/volume.lua | 2 +- 9 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 test.txt diff --git a/battery-widget/README.md b/battery-widget/README.md index b2c04ff..74298cd 100644 --- a/battery-widget/README.md +++ b/battery-widget/README.md @@ -7,6 +7,8 @@ This widget consists of - a pop-up window, which shows up when you hover over an icon: ![Battery Widget](./bat-wid-2.png) - a pop-up warning message which appears on bottom right corner when battery level is less that 15%: ![Battery Widget](./bat-wid-3.png) +Note that widget uses the Arc icon theme, so it should be [installed](https://github.com/horst3180/arc-icon-theme#installation) first under **/usr/share/icons/Arc/** folder. + ## Installation This widget reads the output of acpi tool. diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index c34c235..b2c78e7 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -9,7 +9,7 @@ battery_widget = wibox.widget { widget = wibox.widget.imagebox } -- Battery 0: Discharging, 75%, 01:51:38 remaining -- Battery 0: Charging, 53%, 00:57:43 until charged -local path_to_icons = "/usr/share/icons/Arc-Icons/panel/22/" +local path_to_icons = "/usr/share/icons/Arc/panel/22/" watch( "acpi", 10, @@ -17,10 +17,10 @@ watch( local batteryType local _, status, charge, time = string.match(stdout, '(.+): (%a+), (%d%d)%%, (.+)') charge = tonumber(charge) - if (charge >= 0 and charge < 20) then + if (charge >= 0 and charge < 15) then batteryType="battery-empty" show_battery_warning() - elseif (charge >= 20 and charge < 40) then batteryType="battery-caution" + elseif (charge >= 15 and charge < 40) then batteryType="battery-caution" elseif (charge >= 40 and charge < 60) then batteryType="battery-low" elseif (charge >= 60 and charge < 80) then batteryType="battery-good" elseif (charge >= 80 and charge <= 100) then batteryType="battery-full" diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua index 78e4916..59977d7 100644 --- a/brightness-widget/brightness.lua +++ b/brightness-widget/brightness.lua @@ -6,7 +6,7 @@ brightness_widget = wibox.widget.textbox() brightness_widget:set_font('Play 9') brightness_icon = wibox.widget.imagebox() -brightness_icon:set_image("/usr/share/icons/Arc-Icons/actions/22/object-inverse.png") +brightness_icon:set_image("/usr/share/icons/Arc/actions/22/object-inverse.png") watch( "xbacklight -get", 1, diff --git a/email-widget/email.lua b/email-widget/email.lua index 22a7b6d..cee74e8 100644 --- a/email-widget/email.lua +++ b/email-widget/email.lua @@ -3,7 +3,7 @@ local awful = require("awful") local naughty = require("naughty") local watch = require("awful.widget.watch") -local path_to_icons = "/usr/share/icons/Arc-Icons/actions/22/" +local path_to_icons = "/usr/share/icons/Arc/actions/22/" email_widget = wibox.widget.textbox() email_widget:set_font('Play 9') diff --git a/rhythmbox-widget/rhythmbox.lua b/rhythmbox-widget/rhythmbox.lua index 4a54d4b..1287587 100644 --- a/rhythmbox-widget/rhythmbox.lua +++ b/rhythmbox-widget/rhythmbox.lua @@ -6,7 +6,7 @@ rhythmbox_widget = wibox.widget.textbox() rhythmbox_widget:set_font('Play 9') rhythmbox_icon = wibox.widget.imagebox() -rhythmbox_icon:set_image("/usr/share/icons/Arc-Icons/devices/22/audio-speakers.png") +rhythmbox_icon:set_image("/usr/share/icons/Arc/devices/22/audio-speakers.png") watch( "rhythmbox-client --no-start --print-playing", 1, diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua index c9b3789..dcca1c0 100644 --- a/spotify-widget/spotify.lua +++ b/spotify-widget/spotify.lua @@ -7,7 +7,7 @@ spotify_widget:set_font('Play 9') -- optional icon, could be replaced by spotfiy logo (https://developer.spotify.com/design/) spotify_icon = wibox.widget.imagebox() -spotify_icon:set_image("/usr/share/icons/Arc-Icons/devices/22/audio-headphones.png") +spotify_icon:set_image("/usr/share/icons/Arc/devices/22/audio-headphones.png") watch( "sp current-oneline", 1, diff --git a/test.txt b/test.txt deleted file mode 100644 index 6e6cf9a..0000000 --- a/test.txt +++ /dev/null @@ -1 +0,0 @@ -Error: Spotify is not running. diff --git a/volume-widget/README.md b/volume-widget/README.md index 99d3ad8..ca33a16 100644 --- a/volume-widget/README.md +++ b/volume-widget/README.md @@ -4,6 +4,8 @@ Simple and easy-to-install widget for Awesome Window Manager. This widget represents the sound level: ![Volume Wiget](./vol-wid-1.png) +Note that widget uses the Arc icon theme, so it should be [installed](https://github.com/horst3180/arc-icon-theme#installation) first under **/usr/share/icons/Arc/** folder. + ## Installation - clone/copy **volume.lua** file; diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua index 3a4793a..90251a6 100644 --- a/volume-widget/volume.lua +++ b/volume-widget/volume.lua @@ -14,7 +14,7 @@ function update_volume() elseif (volume >= 60 and volume < 80) then volume_icon_name="audio-volume-medium-panel" elseif (volume >= 80 and volume <= 100) then volume_icon_name="audio-volume-high-panel" end - volume_icon:set_image("/usr/share/icons/Arc-Icons/panel/22/" .. volume_icon_name .. ".svg") + volume_icon:set_image("/usr/share/icons/Arc/panel/22/" .. volume_icon_name .. ".svg") end) end -- cgit v1.2.3