-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD kb/newsboat: add basic kb + ansible
- Loading branch information
Showing
5 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
- include_tasks: "{{ newsboat_action }}.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |