Skip to content

Commit

Permalink
ADD kb/newsboat: add basic kb + ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamut3D committed Nov 18, 2022
1 parent 3e1e785 commit 6ac38e8
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/playbooks/personal_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
# Python
- { role: python, tags: [python,py-conf], python_action: conf }
- { role: python, tags: [python,pypackages], python_action: packages }
# Newsboat
- { role: newsboat, tags: [newsboat,newsboat-conf], newsboat_action: conf }
6 changes: 6 additions & 0 deletions ansible/roles/newsboat/tasks/conf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: "newsboat action: '{{ newsboat_action }}'"
ansible.builtin.template:
src: 'config.j2'
dest: "$HOME/.newsboat/config"
mode: '0600'
2 changes: 2 additions & 0 deletions ansible/roles/newsboat/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
- include_tasks: "{{ newsboat_action }}.yml"
27 changes: 27 additions & 0 deletions ansible/roles/newsboat/templates/config.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Quality of life stuff
refresh-on-startup yes
show-read-feeds no
show-read-articles no

# Open browser articles in browser called from termux
browser "termux-open-url %u"

# unbind keys
unbind-key j
unbind-key k
unbind-key J
unbind-key K

# bind keys - vim style
bind-key j down
bind-key k up
bind-key l open
bind-key h quit
bind-key H prev-feed
bind-key L next-feed

# bind keys - show read feeds with keybind
bind-key r toggle-show-read-feeds

# List article name only due to screen size
articlelist-format "%t"
42 changes: 42 additions & 0 deletions docs/content/kb/newsboat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
+++
title = "RSS"
+++

> Note: Configuration from this KB can be applied through [this](https://github.com/Mamut3D/mamut3d.github.io/blob/main/ansible/playbooks/personal_config.yml) Ansible playbook.
## Newsboat

[Newsboat](https://newsboat.org) is a cli RSS reader usable also with Termux. There is only one thing that sucks on small screens, and that is that Newsboat does not wrap article tittle names.

TLDR here is the config:

```conscole
$ cat .newsboat/config
# Quality of life stuff
refresh-on-startup yes
show-read-feeds no
show-read-articles no
# Open browser articles in browser called from termux
browser "termux-open-url %u"
# unbind keys
unbind-key j
unbind-key k
unbind-key J
unbind-key K
# bind keys - vim style
bind-key j down
bind-key k up
bind-key l open
bind-key h quit
bind-key H prev-feed
bind-key L next-feed
# bind keys - show read feeds with keybind
bind-key r toggle-show-read-feeds
# List article name only due to screen size
articlelist-format "%t"
```

0 comments on commit 6ac38e8

Please sign in to comment.