2019-11-15 04:23:43 +01:00
|
|
|
# Stackoverflow widget
|
|
|
|
|
|
|
|
When clicked, widget shows latest questions from stackoverflow.com with a given tag(s).
|
|
|
|
|
|
|
|
![screenshot](./screenshot.png)
|
|
|
|
|
|
|
|
## Customization
|
|
|
|
|
|
|
|
It is possible to customize widget by providing a table with all or some of the following config parameters:
|
|
|
|
|
|
|
|
| Name | Default | Description |
|
|
|
|
|---|---|---|
|
2019-12-15 21:55:38 +01:00
|
|
|
| `icon`| `/.config/awesome/awesome-wm-widgets/stackoverflow-widget/so-icon.svg` | Path to the icon |
|
|
|
|
| `limit` | 5 | Number of items to show in the widget |
|
2023-09-21 00:01:55 +02:00
|
|
|
| `tagged` | `awesome-wm` | Tag, or comma-separated tags |
|
2020-09-19 10:22:27 +02:00
|
|
|
| `timeout` | 300 | How often in seconds the widget refreshes |
|
2019-11-15 04:23:43 +01:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Clone this repo (if not cloned yet) under **~/.config/awesome/**:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Require widget at the top of the **rc.lua**:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
local stackoverflow_widget = require("awesome-wm-widgets.stackoverflow-widget.stackoverflow")
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Add widget to the tasklist:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
s.mytasklist, -- Middle widget
|
|
|
|
{ -- Right widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
...
|
|
|
|
--default
|
|
|
|
stackoverflow_widget(),
|
|
|
|
--customized
|
|
|
|
stackoverflow_widget({
|
|
|
|
limit = 10
|
|
|
|
})
|
|
|
|
...
|
|
|
|
```
|
|
|
|
|