Merge branch 'master' of https://github.com/streetturtle/awesome-wm-widgets
This commit is contained in:
commit
d12e29a102
|
@ -1,4 +1,4 @@
|
||||||
# AwesomeWM
|
# Awesome WM widgets
|
||||||
|
|
||||||
Set of super simple widgets compatible with Awesome Window Manager v.4+.
|
Set of super simple widgets compatible with Awesome Window Manager v.4+.
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ From left to right:
|
||||||
- [batteryarc-widget](https://github.com/streetturtle/AwesomeWM/tree/master/batteryarc-widget)
|
- [batteryarc-widget](https://github.com/streetturtle/AwesomeWM/tree/master/batteryarc-widget)
|
||||||
- [battery-widget](https://github.com/streetturtle/AwesomeWM/tree/master/battery-widget)
|
- [battery-widget](https://github.com/streetturtle/AwesomeWM/tree/master/battery-widget)
|
||||||
|
|
||||||
These widgets use [Arc icon theme](https://github.com/horst3180/arc-icon-theme) by default but it could be easily
|
Some of these widgets use [Arc icon theme](https://github.com/horst3180/arc-icon-theme) by default but it could be easily
|
||||||
changed to any other icon theme. If you want to have separators between widgets like on the screenshot create text widget with ` : ` and place it between widgets:
|
changed to any other icon theme or custom icons. If you want to have separators between widgets like on the screenshot create text widget with ` : ` and place it between widgets:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
...
|
...
|
||||||
|
@ -39,7 +39,7 @@ sprtr,
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
Clone repo under **~/.config/awesome/**, then in **rc.lua** add the import of the widget you'd like to use in "require" section on the top of the file:
|
Clone the repo under **~/.config/awesome/**, then in **rc.lua** add the import of the widget you'd like to use in "require" section on the top of the file:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
require("awesome-wm-widgets.battery-widget.battery")
|
require("awesome-wm-widgets.battery-widget.battery")
|
||||||
|
|
|
@ -26,17 +26,4 @@ $ acpi
|
||||||
Battery 0: Discharging, 66%, 02:34:06 remaining
|
Battery 0: Discharging, 66%, 02:34:06 remaining
|
||||||
```
|
```
|
||||||
|
|
||||||
- clone/copy **battery.lua** file to **~/.config/awesome/** folder;
|
Then refer to the [installation](https://github.com/streetturtle/awesome-wm-widgets#installation) section of the repo.
|
||||||
|
|
||||||
- include **battery.lua** and add battery widget to your wibox in **rc.lua**:
|
|
||||||
|
|
||||||
```lua
|
|
||||||
require("battery")
|
|
||||||
...
|
|
||||||
s.mytasklist, -- Middle widget
|
|
||||||
{ -- Right widgets
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
|
||||||
...
|
|
||||||
battery_widget,
|
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
|
@ -45,6 +45,8 @@ s.mywibox:setup {
|
||||||
brightness_widget
|
brightness_widget
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Controls
|
||||||
|
|
||||||
In order to change brightness by shortcuts you can add them to the `globalkeys` table in the **rc.lua**:
|
In order to change brightness by shortcuts you can add them to the `globalkeys` table in the **rc.lua**:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
|
|
|
@ -23,3 +23,7 @@ s.mytasklist, -- Middle widget
|
||||||
volumebar_widget,
|
volumebar_widget,
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
If the bar is not showing up, try to decrease top or bottom margin - widget uses hardcoded margins for vertical alignment, so if your wibox is too small then bar is simply hidden by the margins.
|
||||||
|
|
Loading…
Reference in New Issue