Pygments style + notmuch + fix some issues in fish theme

This commit is contained in:
Kujiu 2023-09-27 03:29:50 +02:00
parent 2e9fc5f476
commit 45b99b6b82
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
30 changed files with 1859 additions and 85 deletions

View file

@ -10,7 +10,7 @@ Some tools have their upstream licenses.
Some configurations for these tools: Some configurations for these tools:
- Passwords in KeePassXC (access by keyring) - Passwords in KeePassXC (access by keyring)
- Neomutt + Aerc (mail) - Neomutt + Aerc + notmuch + afew (mail)
- vdirsyncer + khal + khard (calendar and contacts) - vdirsyncer + khal + khard (calendar and contacts)
- fish - fish
- poezio (XMPP) - poezio (XMPP)
@ -24,10 +24,12 @@ Some configurations for these tools:
- pms - pms
- lazygit and tig (git) - lazygit and tig (git)
- lazydocker - lazydocker
- asciinema
You need to install: You need to install:
- aerc - aerc
- asciinema
- browsh - browsh
- colordiff - colordiff
- colormake - colormake
@ -36,6 +38,7 @@ You need to install:
- elinks - elinks
- fish - fish
- grammalecte-cli - grammalecte-cli
- isync
- KeePassXC - KeePassXC
- khal - khal
- khard - khard
@ -48,11 +51,11 @@ You need to install:
- newsboat - newsboat
- notmuch - notmuch
- nvm - nvm
- offlineimap3
- pandoc (>= v3.0) - pandoc (>= v3.0)
- pms - pms
- poezio - poezio
- pyinotify - pyinotify
- pylint
- python3-pygments - python3-pygments
- rbenv - rbenv
- scdoc (debian only) - scdoc (debian only)
@ -71,4 +74,5 @@ You need to install:
- pms - recent version in go (but installed by script on debian) - pms - recent version in go (but installed by script on debian)
- poezio-omemo (but installed by script on debian) - poezio-omemo (but installed by script on debian)
- poezio-plugins (but installed by script on debian) - poezio-plugins (but installed by script on debian)
- pyright (but installed by script on debian)
- virtualfish (but installed by script on debian) - virtualfish (but installed by script on debian)

View file

@ -13,6 +13,7 @@ set -x EDITOR "lvim"
set -x PAGER "nvimpager" set -x PAGER "nvimpager"
set -x BROWSER "firefox" set -x BROWSER "firefox"
set -x PATH ~/.local/bin ~/.cargo/bin ~/go/bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /usr/bin /bin /usr/games set -x PATH ~/.local/bin ~/.cargo/bin ~/go/bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /usr/bin /bin /usr/games
set -x NOTMUCH_CONFIG ~/.config/notmuch/notmuch-config
set -x KEYRING_PROPERTY_SCHEME KeePassXC set -x KEYRING_PROPERTY_SCHEME KeePassXC

View file

@ -2,7 +2,7 @@
# VERSION: 3.0 # VERSION: 3.0
SETUVAR VIRTUAL_ENV_DISABLE_PROMPT:true SETUVAR VIRTUAL_ENV_DISABLE_PROMPT:true
SETUVAR __fish_initialized:3400 SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:738091 SETUVAR fish_color_autosuggestion:81b29a
SETUVAR fish_color_cancel:9d79d6 SETUVAR fish_color_cancel:9d79d6
SETUVAR fish_color_command:63cdcf SETUVAR fish_color_command:63cdcf
SETUVAR fish_color_comment:738091 SETUVAR fish_color_comment:738091
@ -26,7 +26,7 @@ SETUVAR fish_color_host_remote:f4a261
SETUVAR fish_color_keyword:9d79d6 SETUVAR fish_color_keyword:9d79d6
SETUVAR fish_color_match:dbc074 SETUVAR fish_color_match:dbc074
SETUVAR fish_color_normal:cdcecf SETUVAR fish_color_normal:cdcecf
SETUVAR fish_color_operator:81b29a SETUVAR fish_color_operator:aeafb0
SETUVAR fish_color_option:dfdfe0 SETUVAR fish_color_option:dfdfe0
SETUVAR fish_color_param:71839b SETUVAR fish_color_param:71839b
SETUVAR fish_color_quote:dbc074 SETUVAR fish_color_quote:dbc074

View file

@ -2,5 +2,5 @@
# #
function newsboat -d "Newsboat RSS Reader" function newsboat -d "Newsboat RSS Reader"
TERM=xterm-256color command newsboat $argv TERM=tmux-256color command newsboat $argv
end end

View file

@ -2,5 +2,5 @@
# #
function poezio -d "Poezio XMPP client" function poezio -d "Poezio XMPP client"
TERM=xterm-256color command poezio $argv TERM=tmux-256color command poezio $argv
end end

View file

@ -2,5 +2,5 @@
# #
function tig -d "Tig git client" function tig -d "Tig git client"
TERM=xterm-256color command tig $argv TERM=tmux-256color command tig $argv
end end

View file

@ -95,6 +95,12 @@ function update-homes -d "Update homes configuration"
echo (set_color 719cd6)"*** Install virtualfish ***"(set_color normal) echo (set_color 719cd6)"*** Install virtualfish ***"(set_color normal)
echo echo
pip install --user --upgrade --break-system-packages virtualfish pip install --user --upgrade --break-system-packages virtualfish
echo
echo
echo (set_color 719cd6)"*** Install pyright ***"(set_color normal)
echo
pip install --user --upgrade --break-system-packages -U pyright
end end
if set -q _flag_desktop && set -q _flag_fix_debian if set -q _flag_desktop && set -q _flag_fix_debian
@ -154,6 +160,12 @@ function update-homes -d "Update homes configuration"
echo echo
fundle install fundle install
fundle update fundle update
echo
echo
echo (set_color 719cd6)"*** Install pygments style ***"(set_color normal)
echo
pip install "git+https://procrastinator.nerv-project.eu/kujiu/pygments_nightfox_style" --user --break-system-packages
end end
if set -q _flag_remove if set -q _flag_remove
@ -179,6 +191,9 @@ function update-homes -d "Update homes configuration"
rm -rf ~/.config/tmuxinator rm -rf ~/.config/tmuxinator
rm -rf ~/.config/toot rm -rf ~/.config/toot
rm -rf ~/.config/vdirsyncer rm -rf ~/.config/vdirsyncer
rm -rf ~/.local/share/json-fortune
rm ~/.fortunes.json
rm ~/.wikiquote-sources.json
end end
if set -q _flag_git if set -q _flag_git
@ -216,6 +231,17 @@ function update-homes -d "Update homes configuration"
popd popd
end end
if set -q _flag_install
echo
echo
echo (set_color 719cd6)"*** Install json-fortune deps ***"(set_color normal)
echo
pip install --user --upgrade --break-system-packages wikiquote
if not test -f ~/.local/share/json-fortune/fortunes.json
update-quotes
end
end
if set -q _flag_root if set -q _flag_root
echo echo
echo echo

View file

@ -18,12 +18,12 @@ fish_color_match dbc074
fish_color_selection --bold --background=2b3b51 fish_color_selection --bold --background=2b3b51
fish_color_search_match --background=2b3b51 fish_color_search_match --background=2b3b51
fish_color_history_current --bold fish_color_history_current --bold
fish_color_operator 81b29a fish_color_operator aeafb0
fish_color_escape d67ad2 fish_color_escape d67ad2
fish_color_cwd 81b29a fish_color_cwd 81b29a
fish_color_cwd_root c94f6d fish_color_cwd_root c94f6d
fish_color_valid_path 719cd6 --underline fish_color_valid_path 719cd6 --underline
fish_color_autosuggestion 738091 fish_color_autosuggestion 81b29a
fish_color_user 63cdcf fish_color_user 63cdcf
fish_color_host 719cd6 fish_color_host 719cd6
fish_color_cancel 9d79d6 fish_color_cancel 9d79d6

View file

@ -4,7 +4,7 @@
"J. K. Rowling", "J. K. Rowling",
"Harry Potter", "Harry Potter",
"Harry Potter (films)", "Harry Potter (films)",
"Harry Potter et le Prince de sang-mêlé" "Harry Potter et le Prince de sang-mêlé (film)"
], ],
"star_trek": [ "star_trek": [
"Star Trek", "Star Trek",
@ -24,18 +24,20 @@
], ],
"starwars": [ "starwars": [
"Star Wars", "Star Wars",
"Star Wars : The Clone Wars (série, 2008)", "Star Wars : The Clone Wars (série, 2008-2020)",
"Star Wars, épisode I : La Menace fantôme (film)", "Star Wars, épisode I : La Menace fantôme",
"Star Wars, épisode II : L'Attaque des clones (film)", "Star Wars, épisode II : L'Attaque des clones",
"Star Wars, épisode III : La Revanche des Sith (film)", "Star Wars, épisode III : La Revanche des Sith",
"Star Wars, épisode IV : Un nouvel espoir (film)", "Star Wars, épisode IV : Un nouvel espoir",
"Star Wars, épisode V : L'Empire contre-attaque (film)", "Star Wars, épisode V : L'Empire contre-attaque",
"Star Wars, épisode VI : Le Retour du Jedi (film)", "Star Wars, épisode VI : Le Retour du Jedi",
"Star Wars, épisode VI : Le Retour du Jedi (livre)" "Star Wars, épisode VI : Le Retour du Jedi (livre)",
"Star Wars, épisode VII : Le Réveil de la Force"
], ],
"kaamelott": [ "kaamelott": [
"Kaamelott", "Kaamelott",
"Kaamelott/Bandes dessinées", "Kaamelott/Bandes dessinées",
"Kaamelott : Premier Volet",
"Kaamelott/Dialogues", "Kaamelott/Dialogues",
"Kaamelott/Dialogues/Absurdités de la vie quotidienne", "Kaamelott/Dialogues/Absurdités de la vie quotidienne",
"Kaamelott/Arthur", "Kaamelott/Arthur",
@ -78,7 +80,10 @@
"Hero Corp", "Hero Corp",
"Reflets d'Acide", "Reflets d'Acide",
"Terry Pratchett", "Terry Pratchett",
"H. P. Lovecraft" "H. P. Lovecraft",
"Ursula K. Le Guin",
"Lanfeust de Troy",
"Le Donjon de Naheulbeuk"
], ],
"science-fiction": [ "science-fiction": [
"Short Circuit", "Short Circuit",
@ -88,17 +93,18 @@
"L'Échiquier du mal", "L'Échiquier du mal",
"Robert Silverberg", "Robert Silverberg",
"Starship Troopers (film)", "Starship Troopers (film)",
"Ghost in the Shell",
"Hypérion", "Hypérion",
"La Chute d'Hypérion", "La Chute d'Hypérion",
"Jules Verne", "Jules Verne",
"1984", "1984",
"Retour vers le futur", "Retour vers le futur",
"Douglas Adams" "Douglas Adams",
"Hunger Games"
], ],
"dune": [ "dune": [
"Frank Herbert", "Frank Herbert",
"Dune (film)", "Dune (film, 1984)",
"Dune (film, 2021)",
"Dune", "Dune",
"Le Messie de Dune", "Le Messie de Dune",
"Les Enfants de Dune", "Les Enfants de Dune",
@ -132,7 +138,6 @@
"Les Robots de l'aube", "Les Robots de l'aube",
"Les Robots et l'Empire", "Les Robots et l'Empire",
"Tyrann", "Tyrann",
"Poussière d'étoiles",
"Les Courants de l'espace", "Les Courants de l'espace",
"Cailloux dans le ciel", "Cailloux dans le ciel",
"Fondation (livre)", "Fondation (livre)",
@ -153,7 +158,6 @@
"La Tour sombre" "La Tour sombre"
], ],
"detective": [ "detective": [
"Détective Conan",
"La Cité de la peur", "La Cité de la peur",
"Le Pacte des loups", "Le Pacte des loups",
"Gaston Leroux", "Gaston Leroux",
@ -164,13 +168,37 @@
"Fred Vargas", "Fred Vargas",
"Agatha Christie" "Agatha Christie"
], ],
"manga": [
"Détective Conan",
"Saiyuki - Chronique de l'Extrême Voyage",
"Death Note",
"Ghost in the Shell",
"Gunnm",
"Ranma ½"
],
"ghibli": [ "ghibli": [
"Le Voyage de Chihiro", "Le Voyage de Chihiro",
"Princesse Mononoké", "Princesse Mononoké",
"Porco Rosso" "Porco Rosso",
"Le Royaume des chats",
"Souvenirs de Marnie",
"Les Contes de Terremer",
"Le Château dans le ciel",
"Si tu tends l'oreille",
"La Tortue rouge",
"Kiki la petite sorcière",
"Nausicaä de la Vallée du Vent (film d'animation)",
"Mes voisins les Yamada (film)",
"Mon voisin Totoro",
"Pompoko",
"La Colline aux coquelicots (film)",
"Le Château ambulant",
"Le Tombeau des lucioles",
"Arrietty : Le Petit Monde des Chapardeurs",
"Le Conte de la princesse Kaguya",
"Le vent se lève (film, 2013)"
], ],
"adventure": [ "adventure": [
"Saiyuki - Chronique de l'Extrême Voyage",
"Prince of Persia : Les Sables du temps", "Prince of Persia : Les Sables du temps",
"Astérix", "Astérix",
"Les Aventures de Tintin", "Les Aventures de Tintin",
@ -190,13 +218,14 @@
"Grand Corps Malade", "Grand Corps Malade",
"Émile Zola", "Émile Zola",
"Amélie Nothomb", "Amélie Nothomb",
"Coluche" "Coluche",
"Le Chat"
] ]
}, },
"en": { "en": {
"harry_potter": [ "harry_potter": [
"Harry Potter and the Chamber of Secrets", "Harry Potter and the Chamber of Secrets",
"Harry Potter and the Sorcerer's Stone", "Harry Potter and the Philosopher's Stone",
"Harry Potter and the Prisoner of Azkaban", "Harry Potter and the Prisoner of Azkaban",
"Harry Potter and the Goblet of Fire", "Harry Potter and the Goblet of Fire",
"Harry Potter and the Order of the Phoenix", "Harry Potter and the Order of the Phoenix",
@ -214,7 +243,6 @@
"J. K. Rowling" "J. K. Rowling"
], ],
"starwars": [ "starwars": [
"Star Wars",
"The Empire Strikes Back", "The Empire Strikes Back",
"Return of the Jedi", "Return of the Jedi",
"Rogue One", "Rogue One",
@ -226,10 +254,10 @@
"Star Wars: The Clone Wars (film)", "Star Wars: The Clone Wars (film)",
"Star Wars: The Force Awakens", "Star Wars: The Force Awakens",
"Star Wars: The Last Jedi", "Star Wars: The Last Jedi",
"Star Wars Rebels" "Star Wars Rebels",
"Star Wars: The Rise of Skywalker"
], ],
"star_trek": [ "star_trek": [
"Star Trek",
"Star Trek: Discovery", "Star Trek: Discovery",
"Jean-Luc Picard", "Jean-Luc Picard",
"Klingon proverbs", "Klingon proverbs",
@ -278,7 +306,9 @@
"Terry Pratchett", "Terry Pratchett",
"Discworld", "Discworld",
"Good Omens", "Good Omens",
"Terry Pratchett's Hogfather" "Ursula K. Le Guin",
"Terry Pratchett's Hogfather",
"Your Name"
], ],
"science-fiction":[ "science-fiction":[
"Back to the Future", "Back to the Future",
@ -310,6 +340,8 @@
"Stephen King" "Stephen King"
], ],
"disney": [ "disney": [
"An American Tail: Fievel Goes West",
"An American Tail",
"The Lion King", "The Lion King",
"The Fox and the Hound", "The Fox and the Hound",
"Fantasia (1940 film)", "Fantasia (1940 film)",
@ -321,7 +353,9 @@
"Wreck-It Ralph", "Wreck-It Ralph",
"One Hundred and One Dalmatians", "One Hundred and One Dalmatians",
"The Black Cauldron (film)", "The Black Cauldron (film)",
"The Land Before Time", "The Land Before Time (film)",
"The Land Before Time II: The Great Valley Adventure",
"The Land Before Time III: The Time of the Great Giving",
"Dumbo", "Dumbo",
"Cinderella (1950 film)", "Cinderella (1950 film)",
"Aladdin (1992 Disney film)", "Aladdin (1992 Disney film)",
@ -380,7 +414,7 @@
"Black Butler", "Black Butler",
"Buso Renkin", "Buso Renkin",
"Berserk (anime)", "Berserk (anime)",
"Akira (film)", "Akira (1988 film)",
"Wolf's Rain", "Wolf's Rain",
"Megatokyo", "Megatokyo",
"InuYasha", "InuYasha",
@ -403,15 +437,13 @@
"Mobile Suit Gundam: Char's Counterattack", "Mobile Suit Gundam: Char's Counterattack",
"Gundam Wing", "Gundam Wing",
"Mobile Fighter G Gundam", "Mobile Fighter G Gundam",
"Gundam Seed", "Gundam Seed"
"Gundam 00"
], ],
"final_fantasy": [ "final_fantasy": [
"Auron", "Auron",
"Final Fantasy VII: Crisis Core", "Final Fantasy VII: Crisis Core",
"Dissidia: Final Fantasy", "Dissidia: Final Fantasy",
"Final Fantasy (video game)", "Final Fantasy (video game)",
"Final Fantasy",
"Final Fantasy II", "Final Fantasy II",
"Final Fantasy III", "Final Fantasy III",
"Final Fantasy IV", "Final Fantasy IV",
@ -438,22 +470,13 @@
], ],
"kingdom_hearts": [ "kingdom_hearts": [
"Kingdom Hearts", "Kingdom Hearts",
"Kingdom Hearts (series)",
"Kingdom Hearts 3D: Dream Drop Distance", "Kingdom Hearts 3D: Dream Drop Distance",
"Kingdom Hearts Birth by Sleep", "Kingdom Hearts Birth by Sleep",
"Kingdom Hearts coded", "Kingdom Hearts coded",
"Kingdom Hearts II", "Kingdom Hearts II",
"Kingdom Hearts: 358/2 Days", "Kingdom Hearts: 358/2 Days",
"Kingdom Hearts: Chain of Memories" "Kingdom Hearts: Chain of Memories",
], "Kingdom Hearts III"
"ghibli": [
"Your Name",
"Porco Rosso",
"Spirited Away",
"Howl's Moving Castle",
"Nausicaä of the Valley of the Wind",
"Kiki's Delivery Service",
"Princess Mononoke"
], ],
"detective": [ "detective": [
"Who Framed Roger Rabbit", "Who Framed Roger Rabbit",
@ -477,7 +500,7 @@
"Pirates of the Caribbean: On Stranger Tides", "Pirates of the Caribbean: On Stranger Tides",
"Pirates of the Caribbean: Dead Men Tell No Tales", "Pirates of the Caribbean: Dead Men Tell No Tales",
"Willow (film)", "Willow (film)",
"Stardust (novel)", "Stardust (Gaiman novel)",
"Stardust (2007 film)", "Stardust (2007 film)",
"Prince of Persia", "Prince of Persia",
"Reservoir Dogs", "Reservoir Dogs",
@ -509,7 +532,7 @@
"Indiana Jones and the Fate of Atlantis", "Indiana Jones and the Fate of Atlantis",
"Return to Zork", "Return to Zork",
"Zork", "Zork",
"Zork Grand Inquisitor", "Zork: Grand Inquisitor",
"The Legend of Spyro: A New Beginning", "The Legend of Spyro: A New Beginning",
"The Elder Scrolls V: Skyrim", "The Elder Scrolls V: Skyrim",
"Rayman", "Rayman",

View file

@ -50,8 +50,17 @@ vim.g.languagetool_jar = '~/.bin/languagetool-commandline.jar'
opts = {noremap=true, silent=true} opts = {noremap=true, silent=true}
vim.keymap.set('n', '<tab>', "gt", opts) vim.keymap.set('n', '<tab>', "gt", opts)
vim.keymap.set('n', '<S-tab>', "gT", opts) vim.keymap.set('n', '<S-tab>', "gT", opts)
vim.keymap.set('v', 'gl', ":'<,'>!lou_translate en-us-brf.dis,fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts) vim.keymap.set('v', 'gle', ":'<,'>!lou_translate en-us-brf.dis,braille-patterns.cti<CR>", opts)
vim.keymap.set('v', 'gL', ":'<,'>!lou_translate --backward en-us-brf.dis,fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts) vim.keymap.set('v', 'gLe', ":'<,'>!lou_translate --backward en-us-brf.dis,braille-patterns.cti<CR>", opts)
vim.keymap.set('v', 'glf', ":'<,'>!lou_translate fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts)
vim.keymap.set('v', 'gLf', ":'<,'>!lou_translate --backward fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts)
lvim.colorscheme="nightfox" lvim.colorscheme="nightfox"
lvim.transparent_window = true lvim.transparent_window = true
vim.diagnostic.config({
virtual_text = false
})
vim.o.updatetime = 2500
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]

View file

@ -58,10 +58,19 @@ vim.g.languagetool_jar = '~/.bin/languagetool-commandline.jar'
opts = {noremap=true, silent=true} opts = {noremap=true, silent=true}
vim.keymap.set('n', '<tab>', "gt", opts) vim.keymap.set('n', '<tab>', "gt", opts)
vim.keymap.set('n', '<S-tab>', "gT", opts) vim.keymap.set('n', '<S-tab>', "gT", opts)
vim.keymap.set('v', 'gl', ":'<,'>!lou_translate en-us-brf.dis,fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts) vim.keymap.set('v', 'gle', ":'<,'>!lou_translate en-us-brf.dis,braille-patterns.cti<CR>", opts)
vim.keymap.set('v', 'gL', ":'<,'>!lou_translate --backward en-us-brf.dis,fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts) vim.keymap.set('v', 'gLe', ":'<,'>!lou_translate --backward en-us-brf.dis,braille-patterns.cti<CR>", opts)
vim.keymap.set('v', 'glf', ":'<,'>!lou_translate fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts)
vim.keymap.set('v', 'gLf', ":'<,'>!lou_translate --backward fr-bfu-comp6.utb,braille-patterns.cti<CR>", opts)
vim.cmd 'colorscheme nightfox' vim.cmd 'colorscheme nightfox'
vim.transparent_window = true vim.transparent_window = true
vim.cmd 'highlight Normal ctermbg=none guibg=none' vim.cmd 'highlight Normal ctermbg=none guibg=none'
vim.diagnostic.config({
virtual_text = false
})
vim.o.updatetime = 2500
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]

File diff suppressed because it is too large Load diff

View file

@ -61,6 +61,8 @@ class JsonFortune:
""" """
by_category = getattr(options, 'by_category', False) by_category = getattr(options, 'by_category', False)
quote = "" quote = ""
author = ""
lang = ""
count = 0 count = 0
while not quote and count < 50: while not quote and count < 50:
count += 1 count += 1
@ -140,7 +142,7 @@ class JsonFortune:
if __name__ == '__main__': if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Print/say a quote from JSON file.") parser = argparse.ArgumentParser(description="Print/say a quote from JSON file.")
parser.add_argument( parser.add_argument(
'-s', '--source', default='~/.fortunes.json', '-s', '--source', default='~/.local/share/json-fortune/fortunes.json',
help='JSON file with quotes') help='JSON file with quotes')
parser.add_argument( parser.add_argument(
'-b', '--by_category', default=False, action='store_true', '-b', '--by_category', default=False, action='store_true',

View file

@ -12,6 +12,7 @@ import json
import argparse import argparse
import logging import logging
import pathlib
import sys import sys
import os.path import os.path
import wikiquote import wikiquote
@ -35,6 +36,7 @@ def generate_quotes(srcfile):
for category in sources_dict[lang]: for category in sources_dict[lang]:
quotes[lang].setdefault(category, {}) quotes[lang].setdefault(category, {})
for author in sources_dict[lang][category]: for author in sources_dict[lang][category]:
print(f"\n***** Retrieving {author} from {lang}/{category} *****")
try: try:
quotes[lang][category][author] = wikiquote.quotes( quotes[lang][category][author] = wikiquote.quotes(
author, lang=lang author, lang=lang
@ -69,10 +71,10 @@ Source file must be a JSON in this format:\n
}\n }\n
""") """)
parser.add_argument( parser.add_argument(
'--source', default='~/.wikiquote-sources.json', '--source', default='~/.config/json-fortune/wikiquote-sources.json',
help='JSON file with sources') help='JSON file with sources')
parser.add_argument( parser.add_argument(
'--dest', default='~/.fortunes.json', '--dest', default='~/.local/share/json-fortune/fortunes.json',
help='Destination file') help='Destination file')
parser.add_argument( parser.add_argument(
'-d', '--debug', action='store_true', help="Debug mode") '-d', '--debug', action='store_true', help="Debug mode")
@ -108,5 +110,7 @@ Source file must be a JSON in this format:\n
os.path.expandvars(options.dest) os.path.expandvars(options.dest)
) )
pathlib.Path(dest).parent.mkdir(parents=True, exist_ok=True)
with open(dest, 'w') as fout: with open(dest, 'w') as fout:
json.dump(generate_quotes(source), fout, indent=4) json.dump(generate_quotes(source), fout, indent=4)

View file

@ -445,7 +445,7 @@ address-book-cmd=khard email --parsable --remove-first-line %s
# accepted. The commands are invoked with sh -c and are expected to output # accepted. The commands are invoked with sh -c and are expected to output
# valid UTF-8 text. # valid UTF-8 text.
# #
text/html=pandoc -f html -t rst --list-tables=true | pygmentize -l rst | colorize text/html=elinks -dump 1 | pygmentize -l rst -O style=nightfox_transparent | colorize
[filters] [filters]
# #
@ -479,7 +479,7 @@ text/plain=colorize
text/calendar=calendar text/calendar=calendar
message/delivery-status=colorize message/delivery-status=colorize
message/rfc822=colorize message/rfc822=colorize
text/html=pandoc -f html -t rst --list-tables=true | pygmentize -l rst | colorize text/html=elinks -dump 1 | colorize
#text/html=html | colorize #text/html=html | colorize
#text/*=bat -fP --file-name="$AERC_FILENAME" #text/*=bat -fP --file-name="$AERC_FILENAME"
#application/x-sh=bat -fP -l sh #application/x-sh=bat -fP -l sh

View file

@ -0,0 +1,45 @@
[global]
[FolderNameFilter]
folder_transforms = Junk:spam Drafts:draft Sent:sent INBOX:inbox Trash:deleted
maildir_separator = /
[SpamFilter]
[KillThreadsFilter]
[ListMailsFilter]
[SentMailsFilter]
[ArchiveSentMailsFilter]
sent_tag = sent
[DMARCReportInspectionFilter]
[DKIMValidityFilter]
[HeaderMatchingFilter.0]
header = List-Id
pattern = <(?P<list_id>.*)>
tags = +lists;+{list_id}
[HeaderMatchingFilter.1]
header = To
pattern = .*[-+](?P<autotag>\w*)@.*
tags = -nodelimiter;+dtr:{autotag}
[HeaderMatchingFilter.2]
header = Cc
pattern = .*[-+](?P<autotag>\w*)@.*
tags = -nodelimiter;+dtr:{autotag}
[HeaderMatchingFilter.3]
header = Bcc
pattern = .*[-+](?P<autotag>\w*)@.*
tags = -nodelimiter;+dtr:{autotag}
[HeaderMatchingFilter.4]
header = X-Mailer
pattern = (?P<mailer>.*)
tags = +mailer:{mailer}
[HeaderMatchingFilter.5]
header = X-Operating-System
pattern = (?P<os>.*)
tags = +os:{os}

View file

@ -0,0 +1,6 @@
#!/usr/bin/env fish
#
function mbsync -d "mbsync with config file in ~/.config/mbsync"
command mbsync -c ~/.config/mbsync/mbsyncrc $argv
end

View file

@ -0,0 +1,30 @@
[calendars]
[[calendars]]
path = ~/.local/share/calendars/*/*
type = discover
timedelta = 7d
[locale]
timeformat = %H:%M
dateformat = %d/%m
longdateformat = %d/%m/%y
datetimeformat = %d/%m %H:%M
longdatetimeformat = %d/%m/%y %H:%M
local_timezone = Europe/Brussels
default_timezone = Europe/Brussels
firstweekday = 0
weeknumbers = left
[default]
default_calendar = IRL
highlight_event_days = true
[highlight_days]
method = fg
[view]
event_format = "{calendar-color}{cancelled}{start}-{end} {repeat-symbol}{alarm-symbol}{title}{description-separator}{description}{reset}"
agenda_day_format = "{bold}{name}, {date-long}{reset}"
agenda_event_format = "{calendar-color}{cancelled}{start-end-time-style}{repeat-symbol}{alarm-symbol} {title}{description-separator}{description}{reset}"
bold_for_light_color = False

View file

@ -0,0 +1,3 @@
#!/usr/bin/env fish
afew --tag --new

View file

@ -0,0 +1,3 @@
#!/usr/bin/env fish
mbsync -a

View file

@ -0,0 +1,26 @@
NFOX_BLACK = 59
NFOX_RED = 167
NFOX_GREEN = 108
NFOX_YELLOW = 180
NFOX_BLUE = 39
NFOX_MAGENTA = 140
NFOX_CYAN = 80
NFOX_WHITE = 188
NFOX_ORANGE = 215
NFOX_PINK = 176
NFOX_COMMENT = 102
NFOX_BG0 = 16
NFOX_BG1 = 17
NFOX_BG2 = 17
NFOX_BG3 = 237
NFOX_BG4 = 59
NFOX_FG0 = 188
NFOX_FG1 = 188
NFOX_FG2 = 145
NFOX_FG3 = 67
NFOX_SEL0 = 23
NFOX_SEL1 = 59

53
nightfox_palette/ANSI.py Normal file
View file

@ -0,0 +1,53 @@
NFOX_BLACK_FG = "\033[38;2;57;59;68m"
NFOX_BLACK_BG = "\033[48;2;57;59;68m"
NFOX_RED_FG = "\033[38;2;201;79;109m"
NFOX_RED_BG = "\033[48;2;201;79;109m"
NFOX_GREEN_FG = "\033[38;2;129;178;154m"
NFOX_GREEN_BG = "\033[48;2;129;178;154m"
NFOX_YELLOW_FG = "\033[38;2;219;192;116m"
NFOX_YELLOW_BG = "\033[48;2;219;192;116m"
NFOX_BLUE_FG = "\033[38;2;113;156;214m"
NFOX_BLUE_BG = "\033[48;2;113;156;214m"
NFOX_MAGENTA_FG = "\033[38;2;157;121;214m"
NFOX_MAGENTA_BG = "\033[48;2;157;121;214m"
NFOX_CYAN_FG = "\033[38;2;99;205;207m"
NFOX_CYAN_BG = "\033[48;2;99;205;207m"
NFOX_WHITE_FG = "\033[38;2;223;223;224m"
NFOX_WHITE_BG = "\033[48;2;223;223;224m"
NFOX_ORANGE_FG = "\033[38;2;244;162;97m"
NFOX_ORANGE_BG = "\033[48;2;244;162;97m"
NFOX_PINK_FG = "\033[38;2;214;122;210m"
NFOX_PINK_BG = "\033[48;2;214;122;210m"
NFOX_COMMENT_FG = "\033[38;2;115;128;145m"
NFOX_COMMENT_BG = "\033[48;2;115;128;145m"
NFOX_BG0_FG = "\033[38;2;19;26;36m"
NFOX_BG0_BG = "\033[48;2;19;26;36m"
NFOX_BG1_FG = "\033[38;2;25;35;48m"
NFOX_BG1_BG = "\033[48;2;25;35;48m"
NFOX_BG2_FG = "\033[38;2;33;46;63m"
NFOX_BG2_BG = "\033[48;2;33;46;63m"
NFOX_BG3_FG = "\033[38;2;41;57;79m"
NFOX_BG3_BG = "\033[48;2;41;57;79m"
NFOX_BG4_FG = "\033[38;2;57;80;109m"
NFOX_BG4_BG = "\033[48;2;57;80;109m"
NFOX_FG0_FG = "\033[38;2;214;214;215m"
NFOX_FG0_BG = "\033[48;2;214;214;215m"
NFOX_FG1_FG = "\033[38;2;205;206;207m"
NFOX_FG1_BG = "\033[48;2;205;206;207m"
NFOX_FG2_FG = "\033[38;2;174;175;176m"
NFOX_FG2_BG = "\033[48;2;174;175;176m"
NFOX_FG3_FG = "\033[38;2;113;131;155m"
NFOX_FG3_BG = "\033[48;2;113;131;155m"
NFOX_SEL0_FG = "\033[38;2;43;59;81m"
NFOX_SEL0_BG = "\033[48;2;43;59;81m"
NFOX_SEL1_FG = "\033[38;2;60;83;114m"
NFOX_SEL1_BG = "\033[48;2;60;83;114m"
NO_COLOR = "\033[39m\033[49m\033[00m"
NO_BG = "\033[49m"
NO_FG = "\033[49m"
BOLD = "\033[01m"
ITALIC = "\033[03m"
UNDERLINE = "\033[04m"
REVERSE = "\033[07m"
OVERLINED = "\033[53m"

View file

@ -0,0 +1,6 @@
Palette from EdenEast
=====================
MIT license
See https://github.com/EdenEast/nightfox.nvim

51
nightfox_palette/html.py Normal file
View file

@ -0,0 +1,51 @@
# Normal
NFOX_BLACK = "#393b44"
NFOX_RED = "#c94f6d"
NFOX_GREEN = "#81b29a"
NFOX_YELLOW = "#dbc074"
NFOX_BLUE = "#719cd6"
NFOX_MAGENTA = "#9d79d6"
NFOX_CYAN = "#63cdcf"
NFOX_WHITE = "#dfdfe0"
NFOX_ORANGE = "#f4a261"
NFOX_PINK = "#d67ad2"
NFOX_COMMENT = "#738091"
NFOX_BG0 = "#131a24"
NFOX_BG1 = "#192330"
NFOX_BG2 = "#212e3f"
NFOX_BG3 = "#29394f"
NFOX_BG4 = "#39506d"
NFOX_FG0 = "#d6d6d7"
NFOX_FG1 = "#cdcecf"
NFOX_FG2 = "#aeafb0"
NFOX_FG3 = "#71839b"
NFOX_SEL0 = "#2b3b51"
NFOX_SEL1 = "#3c5372"
# Darker
NFOX_BLACK_D = "#13151e"
NFOX_RED_D = "#a32947"
NFOX_GREEN_D = "#5b8c74"
NFOX_YELLOW_D = "#b59a4e"
NFOX_BLUE_D = "#4b76b0"
NFOX_MAGENTA_D = "#7753b0"
NFOX_CYAN_D = "#3da7a9"
NFOX_WHITE_D = "#b9b9ba"
NFOX_ORANGE_D = "#ce7c3b"
NFOX_PINK_D = "#b054ac"
#Lighter
NFOX_BLACK_L = "#5F616A"
NFOX_RED_L = "#ef7593"
NFOX_GREEN_L = "#9bccb4"
NFOX_YELLOW_L = "#ffe69a"
NFOX_BLUE_L = "#97c2fc"
NFOX_MAGENTA_L = "#eac6ff"
NFOX_CYAN_L = "#89f3f5"
NFOX_WHITE_L = "#ffffff"
NFOX_ORANGE_L = "#ffc887"
NFOX_PINK_L = "#fca0f8"

View file

@ -6,6 +6,6 @@ from = Template Example <template@example.com>
copy-to = Sent copy-to = Sent
source-cred-cmd = keyring get "mail:template@example.com" "template@example.com" source-cred-cmd = keyring get "mail:template@example.com" "template@example.com"
outgoing-cred-cmd = keyring get "mail:template@example.com" "template@example.com" outgoing-cred-cmd = keyring get "mail:template@example.com" "template@example.com"
signature-file = "~/.config/aerc/accounts/template@example.com/signature.txt" signature-file = "~/.config/aerc/accounts/acc:template@example.com/signature.txt"
pgp-auto-sign = true pgp-auto-sign = true
pgp-opportunistic-encrypt = true pgp-opportunistic-encrypt = true

View file

@ -1,24 +0,0 @@
[calendars]
[[example_calendar_local]]
path = ~/.local/share/calendars/Example/*
type = discover
priority = 10
[[example_contacts_local]]
path = ~/.local/share/contacts/Example/*
type = discover
priority = 5
[locale]
timeformat = %H:%M
dateformat = %d/%m/%Y
longdateformat = %d/%m/%Y
datetimeformat = %d/%m/%Y %H:%M
longdatetimeformat = %d/%m/%Y %H:%M
local_timezone = Europe/Brussels
default_timezone = Europe/Brussels
[default]
default_calendar = ExampleCalendar
highlight_event_days = true

View file

@ -47,7 +47,7 @@ preferred_email_address_type = pref, work, home
# example: # example:
# private_objects = Jabber, Skype, Twitter # private_objects = Jabber, Skype, Twitter
# default: , (the empty list) # default: , (the empty list)
private_objects = Jabber, Skype, XMPP, Mastodon, Matrix, Peertube private_objects = XMPP, Mastodon, Matrix, Peertube, Diaspora, PixelFed, Gemini, Youtube, Skype
# preferred vcard version: 3.0 / 4.0 # preferred vcard version: 3.0 / 4.0
preferred_version = 4.0 preferred_version = 4.0
# Look into source vcf files to speed up search queries: yes / no # Look into source vcf files to speed up search queries: yes / no

View file

@ -0,0 +1,38 @@
# Global configuration section
# Values here are used as defaults for any following Channel section that
# doesn't specify them.
Expunge Both
Create Both
SyncState *
MaildirStore local
Path ~/.local/share/mail/local/
Subfolders Verbatim
Trash Trash
#############################
#
IMAPStore test1@example.com
Host imap.example.com
User test1@example.com
PassCmd "keyring get 'cas:test1@example.com' 'test1@example.com'"
SSLType STARTTLS
Channel test1@example.com
Far :test1@example.com:
Near :local:test1@example.com/
#############################
#
IMAPStore test2@example.com
Host imap.example.com
User test2@example.com
PassCmd "keyring get 'cas:test2@example.com' 'test2@example.com'"
SSLType STARTTLS
Channel test2@example.com
Far :test2@example.com:
Near :local:test2@example.com/

View file

@ -0,0 +1,82 @@
# .notmuch-config - Configuration file for the notmuch mail system
#
# For more information about notmuch, see https://notmuchmail.org
# Database configuration
#
# The only value supported here is 'path' which should be the top-level
# directory where your mail currently exists and to where mail will be
# delivered in the future. Files should be individual email messages.
# Notmuch will store its database within a sub-directory of the path
# configured here named ".notmuch".
#
[database]
path=/home/kujiu/~/.local/share/mail
# User configuration
#
# Here is where you can let notmuch know how you would like to be
# addressed. Valid settings are
#
# name Your full name.
# primary_email Your primary email address.
# other_email A list (separated by ';') of other email addresses
# at which you receive email.
#
# Notmuch will use the various email addresses configured here when
# formatting replies. It will avoid including your own addresses in the
# recipient list of replies, and will set the From address based on the
# address to which the original email was addressed.
#
[user]
name=Test Example
primary_email=test1@example.com
other_email=test2@example.com;test3@example.com
# Configuration for "notmuch new"
#
# The following options are supported here:
#
# tags A list (separated by ';') of the tags that will be
# added to all messages incorporated by "notmuch new".
#
# ignore A list (separated by ';') of file and directory names
# that will not be searched for messages by "notmuch new".
#
# NOTE: *Every* file/directory that goes by one of those
# names will be ignored, independent of its depth/location
# in the mail store.
#
[new]
tags=new
# Search configuration
#
# The following option is supported here:
#
# exclude_tags
# A ;-separated list of tags that will be excluded from
# search results by default. Using an excluded tag in a
# query will override that exclusion.
#
[search]
exclude_tags=deleted;spam;
# Maildir compatibility configuration
#
# The following option is supported here:
#
# synchronize_flags Valid values are true and false.
#
# If true, then the following maildir flags (in message filenames)
# will be synchronized with the corresponding notmuch tags:
#
# Flag Tag
# ---- -------
# D draft
# F flagged
# P passed
# R replied
# S unread (added when 'S' flag is not present)
#
# The "notmuch new" command will notice flag changes in filenames
# and update tags, while the "notmuch tag" and "notmuch restore"
# commands will notice tag changes and update flags in filenames
#
[maildir]
synchronize_flags=true