power menu, redshift, polybar
This commit is contained in:
18
.config/polybar/scripts/news-archlinux/README.md
Normal file
18
.config/polybar/scripts/news-archlinux/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Script: news-archlinux
|
||||
|
||||
A Python script that shows Arch Linux RSS news.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* [python-feedparser](https://github.com/kurtmckee/feedparser//)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/news-archlinux]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/news-archlinux.py
|
||||
interval = 600
|
||||
```
|
||||
7
.config/polybar/scripts/news-archlinux/news-archlinux.py
Normal file
7
.config/polybar/scripts/news-archlinux/news-archlinux.py
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
from feedparser import parse
|
||||
|
||||
URL = 'https://www.archlinux.org/feeds/news/'
|
||||
ENTRIES = 1
|
||||
|
||||
[print(x.title) for x in parse(URL).entries[:ENTRIES]]
|
||||
Reference in New Issue
Block a user