readme update
This commit is contained in:
parent
e214e416d3
commit
fa43013431
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue