setup-cockpit/dotfiles/i3/scripts/arch_linux_news
2021-03-06 13:44:41 +01:00
..
arch_linux_news Too many requests was causing Arch Linux news to break 2021-03-06 13:44:41 +01:00
arch_linux_news_1.png Remove requirements, add previews and README 2020-05-19 11:04:01 +02:00
arch_linux_news_2.png Remove requirements, add previews and README 2020-05-19 11:04:01 +02:00
LICENSE
README.md Remove requirements, add previews and README 2020-05-19 11:04:01 +02:00

arch_linux_news

Reads the RSS feed of archlinux.org news and warns when a new entry has been added. When keeping an Arch system up to date, it is important to regularly check Arch Linux News in order to know when manual intervention might be necessary.

This script keeps a file containing the date of the last news that was read (i.e. clicked on) in the ~/.cache folder.

Clicking on the bar will open the latest archlinux news page in the default browser.

Previews

Dependencies

  • feedparser

Installation

$ pip install feedparser
  • Give the script execution permission (chmod 755 arch_linux_news)
  • Copy or symlink (symlink will give you latest changes to the repository) the script into your scripts directory (~/.config/i3blocks/scripts for example)
  • Add to your i3blocks conf (~/.config/i3blocks/config):
[arch_linux_news]
command=$SCRIPT_DIR/arch_linux_news
interval=30