From fe8c612eda2ac26cbb1700914a5b8400234e33eb Mon Sep 17 00:00:00 2001 From: "kujiu (@uberwald)" Date: Wed, 18 Oct 2023 00:45:39 +0200 Subject: [PATCH] Fish/Xonsh/ls/lsd/starship config --- README.rst | 12 +- common/.config/broot/conf.hjson | 6 + common/.config/broot/skins/nightfox.toml | 74 ++ .../broot/skins/nightfox_transparent.toml | 74 ++ common/.config/fish/config.fish | 4 + .../.config/fish/functions/update-homes.fish | 30 + common/.config/git/config | 110 ++ common/.config/git/gitignore_global | 22 + common/.config/lsd/colors.yaml | 56 + common/.config/lsd/config.yaml | 136 ++ common/.config/mailcap | 6 + common/.config/starship.toml | 672 ++++++++++ common/.config/tmux/tmux.conf | 5 +- common/.config/xonsh/rc.xsh | 2 +- common/.fonts/readme.md | 8 + desktop/.config/aerc/aerc.conf | 13 +- desktop/.config/neomutt/accounts.fish | 4 + desktop/.config/neomutt/colors.conf | 51 + desktop/.config/neomutt/neomuttrc | 66 +- desktop/.config/newsboat/config | 3 + desktop/.config/notnow/notnow.json | 140 +++ desktop/.elinks/elinks.conf | 8 +- .../.local/share/konsole/Profile 1.profile | 2 +- .../.local/share/systemd/user/notmuch.service | 10 + .../.local/share/systemd/user/notmuch.timer | 10 + nightfox_palette/256color.py | 24 + nightfox_palette/ANSI.py | 44 + nightfox_palette/lscolors.py | 1104 +++++++++++++++++ templates/.config/neomutt/accounts.conf | 4 - .../accounts/template1@example.com/conf | 18 +- update-homes-secrets-example.fish | 15 + 31 files changed, 2691 insertions(+), 42 deletions(-) create mode 100644 common/.config/broot/conf.hjson create mode 100644 common/.config/broot/skins/nightfox.toml create mode 100644 common/.config/broot/skins/nightfox_transparent.toml create mode 100644 common/.config/git/config create mode 100644 common/.config/git/gitignore_global create mode 100644 common/.config/lsd/colors.yaml create mode 100644 common/.config/lsd/config.yaml create mode 100644 common/.config/mailcap create mode 100644 common/.config/starship.toml create mode 100644 common/.fonts/readme.md create mode 100644 desktop/.config/neomutt/accounts.fish create mode 100644 desktop/.config/notnow/notnow.json create mode 100644 desktop/.local/share/systemd/user/notmuch.service create mode 100644 desktop/.local/share/systemd/user/notmuch.timer create mode 100644 nightfox_palette/lscolors.py delete mode 100644 templates/.config/neomutt/accounts.conf diff --git a/README.rst b/README.rst index b270445..dd6c77d 100644 --- a/README.rst +++ b/README.rst @@ -12,7 +12,7 @@ Some configurations for these tools: - Passwords in KeePassXC (access by keyring) - Neomutt + Aerc + notmuch + afew (mail) - vdirsyncer + khal + khard (calendar and contacts) -- fish +- fish & xonsh - poezio (XMPP) - newsboat (RSS with FreshRSS) - toot (Mastodon client) @@ -24,8 +24,10 @@ Some configurations for these tools: - pms - lazygit and tig (git) - lazydocker +- lsd - asciinema - broot +- hgrep You need to install: @@ -44,6 +46,7 @@ You need to install: - khal - khard - konsole +- lsd - liblouis-bin - lunarvim - mpv @@ -59,6 +62,7 @@ You need to install: - pylint - python3-pygments - rbenv +- rustup - scdoc (debian only) - tig - tmux @@ -69,13 +73,19 @@ You need to install: - vlock - bluetuith (but installed by script on debian) - broot (but installed by script on debian) +- cargo-espflash (but installed by script on debian) - epr (but installed by script on debian) +- espflash (but installed by script on debian) +- espup (but installed by script on debian) - lazydocker (but installed by script on debian) - lazygit (but installed by script on debian) +- notnow (but installed by script on debian) - nvimpager (but installed by script on debian) - onefetch (but installed by script on debian) +- pastel (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-plugins (but installed by script on debian) - pyright (but installed by script on debian) +- starship (but installed by script on debian) - virtualfish (but installed by script on debian) diff --git a/common/.config/broot/conf.hjson b/common/.config/broot/conf.hjson new file mode 100644 index 0000000..deef049 --- /dev/null +++ b/common/.config/broot/conf.hjson @@ -0,0 +1,6 @@ +show_selection_mark: true +default_flags: gh +syntax_theme: SolarizedDark +imports: [ + ~/.config/broot/skins/nightfox_transparent.toml +] diff --git a/common/.config/broot/skins/nightfox.toml b/common/.config/broot/skins/nightfox.toml new file mode 100644 index 0000000..8890334 --- /dev/null +++ b/common/.config/broot/skins/nightfox.toml @@ -0,0 +1,74 @@ +[skin] +default = "#cdcecf #192330 / #71839b #192330" +tree = "#39506d #192330 / #212e3f #192330" +file = "#cdcecf #192330 / #71839b #192330" +directory = "#719cd6 #192330 Bold / #4b76b0 #192330 bold" +exe = "#63cdcf #192330" +link = "#dbc074 #192330" +pruning = "#738091 #192330 Italic" +perm__ = "#738091 #192330" +perm_r = "#719cd6 #192330" +perm_w = "#dbc074 #192330" +perm_x = "#81b29a #192330" +owner = "#63cdcf #192330" +group = "#719cd6 #192330" +count = "#f4a261 #192330" +dates = "#81b29a #192330" +sparse = "#d67ad2 #192330" +content_extract = "#cdcecf #192330" +content_match = "None #2b3b51" +git_branch = "#f4a261 #192330" +git_insertions = "#81b29a #192330" +git_deletions = "#c94f6d #192330" +git_status_current = "#cdcecf #192330" +git_status_modified = "#719cd6 #192330" +git_status_new = "#81b29a #192330" +git_status_ignored = "#738091 #192330" +git_status_conflicted = "#c94f6d #192330" +git_status_other = "#aeafb0 #192330" +selected_line = "None #2b3b51" +char_match = "#dbc074 #2b3b51" +file_error = "#c94f6d #192330" +flag_label = "#f4a261 #192330" +flag_value = "#719cd6 #192330" +input = "#dbc074 #131a24 / #738091 #131a24" +status_error = "#131a24 #c94f6d" +status_job = "#dbc074 #131a24" +status_normal = "#cdcecf #131a24 / #71839b #131a24" +status_italic = "#cdcecf #131a24 Italic / #71839b #131a24 Italic" +status_bold = "#cdcecf #131a24 Bold / #71839b #131a24" +status_code = "#81b29a #131a24 / #81b29a #131a24" +status_ellipsis = "#738091 #131a24 / #738091 #131a24" +purpose_normal = "#cdcecf #192330" +purpose_italic = "#cdcecf #192330 Italic" +purpose_bold = "#cdcecf #192330 Bold" +purpose_ellipsis = "#738091 #192330" +scrollbar_track = "#39506d / #29394f" +scrollbar_thumb = "#71839b / #71839b" +help_paragraph = "#cdcecf #212e3f " +help_bold = "#cdcecf #212e3f Bold" +help_italic = "#cdcecf #212e3f Italic" +help_code = "#f4a261 #212e3f" +help_headers = "#719cd6 #212e3f Bold" +help_table_border = "#71839b #212e3f" +preview_title = "#f4a261 #131a24 Bold / #719cd6 #131a24 Bold" +preview = "#cdcecf #192330 / #738091 #192330" +preview_line_number = "#aeafb0 #212e3f" +preview_match = "#dbc074 #192330" +hex_null = "#9d79d6 #192330" +hex_ascii_graphic = "#81b29a #192330" +hex_ascii_whitespace = "#738091 #192330" +hex_ascii_other = "#cdcecf #192330" +hex_non_ascii = "#d67ad2 #192330" +staging_area_title = "#f4a261 #131a24 Bold / #719cd6 #131a24 Bold" +mode_command_mark = "#81b29a #192330 Bold" +good_to_bad_0 = "#81b29a" +good_to_bad_1 = "#719cd6" +good_to_bad_2 = "#63cdcf" +good_to_bad_3 = "#dfdfe0" +good_to_bad_4 = "#dbc074" +good_to_bad_5 = "#f4a261" +good_to_bad_6 = "#d67ad2" +good_to_bad_7 = "#9d79d6" +good_to_bad_8 = "#c94f6d" +good_to_bad_9 = "#a32947" diff --git a/common/.config/broot/skins/nightfox_transparent.toml b/common/.config/broot/skins/nightfox_transparent.toml new file mode 100644 index 0000000..37c9e63 --- /dev/null +++ b/common/.config/broot/skins/nightfox_transparent.toml @@ -0,0 +1,74 @@ +[skin] +default = "#cdcecf None / #71839b None" +tree = "#39506d None / #212e3f None" +file = "#cdcecf None / #71839b None" +directory = "#719cd6 None Bold / #4b76b0 None bold" +exe = "#63cdcf None" +link = "#dbc074 None" +pruning = "#738091 None Italic" +perm__ = "#738091 None" +perm_r = "#719cd6 None" +perm_w = "#dbc074 None" +perm_x = "#81b29a None" +owner = "#63cdcf None" +group = "#719cd6 None" +count = "#f4a261 None" +dates = "#81b29a None" +sparse = "#d67ad2 None" +content_extract = "#cdcecf None" +content_match = "None #2b3b51" +git_branch = "#f4a261 None" +git_insertions = "#81b29a None" +git_deletions = "#c94f6d None" +git_status_current = "#cdcecf None" +git_status_modified = "#719cd6 None" +git_status_new = "#81b29a None" +git_status_ignored = "#738091 None" +git_status_conflicted = "#c94f6d None" +git_status_other = "#aeafb0 None" +selected_line = "None #2b3b51" +char_match = "#dbc074 #2b3b51" +file_error = "#c94f6d None" +flag_label = "#f4a261 None" +flag_value = "#719cd6 None" +input = "#dbc074 #131a24 / #738091 #131a24" +status_error = "#131a24 #c94f6d" +status_job = "#dbc074 #131a24" +status_normal = "#cdcecf #131a24 / #71839b #131a24" +status_italic = "#cdcecf #131a24 Italic / #71839b #131a24 Italic" +status_bold = "#cdcecf #131a24 Bold / #71839b #131a24" +status_code = "#81b29a #131a24 / #81b29a #131a24" +status_ellipsis = "#738091 #131a24 / #738091 #131a24" +purpose_normal = "#cdcecf None" +purpose_italic = "#cdcecf None Italic" +purpose_bold = "#cdcecf None Bold" +purpose_ellipsis = "#738091 None" +scrollbar_track = "#39506d / #29394f" +scrollbar_thumb = "#71839b / #71839b" +help_paragraph = "#cdcecf #212e3f " +help_bold = "#cdcecf #212e3f Bold" +help_italic = "#cdcecf #212e3f Italic" +help_code = "#f4a261 #212e3f" +help_headers = "#719cd6 #212e3f Bold" +help_table_border = "#71839b #212e3f" +preview_title = "#f4a261 #131a24 Bold / #719cd6 #131a24 Bold" +preview = "#cdcecf None / #738091 None" +preview_line_number = "#aeafb0 #212e3f" +preview_match = "#dbc074 None" +hex_null = "#9d79d6 None" +hex_ascii_graphic = "#81b29a None" +hex_ascii_whitespace = "#738091 None" +hex_ascii_other = "#cdcecf None" +hex_non_ascii = "#d67ad2 None" +staging_area_title = "#f4a261 #131a24 Bold / #719cd6 #131a24 Bold" +mode_command_mark = "#81b29a None Bold" +good_to_bad_0 = "#81b29a" +good_to_bad_1 = "#719cd6" +good_to_bad_2 = "#63cdcf" +good_to_bad_3 = "#dfdfe0" +good_to_bad_4 = "#dbc074" +good_to_bad_5 = "#f4a261" +good_to_bad_6 = "#d67ad2" +good_to_bad_7 = "#9d79d6" +good_to_bad_8 = "#c94f6d" +good_to_bad_9 = "#a32947" diff --git a/common/.config/fish/config.fish b/common/.config/fish/config.fish index 6458af8..00ce136 100644 --- a/common/.config/fish/config.fish +++ b/common/.config/fish/config.fish @@ -17,6 +17,8 @@ set -x NOTMUCH_CONFIG ~/.config/notmuch/notmuch-config set -x KEYRING_PROPERTY_SCHEME KeePassXC +set -x LS_COLORS "lc=:rc=:ec=:cl=:rs=:mh=:ca=:bd=🖴 :cd= :di= :do=󰠚 :ex= :fi=󰡯 :ln=󰌹 :mi= :no=:or=󰌺 :ow=󱇧 :pi=󰟥 :sg= :so=󱄈 :st= 󱍥 :su= :tw= 󱍬 :*.7z= :*.CramFS= :*.Z= :*.ace= :*.alz= :*.apfs= :*.ar= :*.arc= :*.arj= :*.bz= :*.bz2= :*.bzip2= :*.cab= :*.chm= :*.cpio= :*.dmg= :*.dz= :*.ear= :*.ext= :*.fat= :*.gpt= :*.gta= :*.gtar= :*.gtz= :*.gz= :*.gzip= :*.hfs= :*.ihex= :*.iso= :*.jar= :*.lha= :*.lrz= :*.lz= :*.lz4= :*.lzh= :*.lzma= :*.lzo= :*.lzx= :*.mbr= :*.msi= :*.nsis= :*.ntfs= :*.qcow2= :*.rar= :*.rz= :*.sar= :*.squashfs= :*.swm= :*.t7z= :*.tar= :*.taz= :*.tbz= :*.tbz2= :*.tlz= :*.txz= :*.tz= :*.tzo= :*.tzst= :*.udf= :*.uefi= :*.vdi= :*.vhd= :*.vhdx= :*.vmdk= :*.war= :*.wim= :*.xar= :*.xpi= :*.xz= :*.z= :*.zip= :*.zoo= :*.zst= :*.726=󰝚 :*.AMR=󰝚 :*.AWB=󰝚 :*.QCP=󰝚 :*.aa3=󰝚 :*.aac=󰝚 :*.aal=󰝚 :*.ac3=󰝚 :*.acn=󰝚 :*.adts=󰝚 :*.aif=󰝚 :*.aifc=󰝚 :*.aiff=󰝚 :*.amr=󰝚 :*.ass=󰝚 :*.at3=󰝚 :*.atx=󰝚 :*.au=󰝚 :*.awb=󰝚 :*.axa=󰝚 :*.csd=󰝚 :*.dls=󰝚 :*.dts=󰝚 :*.dtshd=󰝚 :*.ecelp4800=󰝚 :*.ecelp7470=󰝚 :*.ecelp9600=󰝚 :*.enw=󰝚 :*.eol=󰝚 :*.evb=󰝚 :*.evc=󰝚 :*.evw=󰝚 :*.flac=󰝚 :*.gsm=󰝚 :*.hmf=󰝚 :*.hvd=󰝚 :*.hvp=󰝚 :*.hvs=󰝚 :*.kar=󰝚 :*.koz=󰝚 :*.l16=󰝚 :*.lbc=󰝚 :*.loas=󰝚 :*.lvp=󰝚 :*.ly=󰝚 :*.m3u=󰝚 :*.m4a=󰝚 :*.mhas=󰝚 :*.mid=󰝚 :*.midi=󰝚 :*.mka=󰝚 :*.mlp=󰝚 :*.mp1=󰝚 :*.mp2=󰝚 :*.mp3=󰝚 :*.mpega=󰝚 :*.mpga=󰝚 :*.mscx=󰝚 :*.mscz=󰝚 :*.multitrack=󰝚 :*.mus=󰝚 :*.musd=󰝚 :*.musicxml=󰝚 :*.mxl=󰝚 :*.mxmf=󰝚 :*.oga=󰝚 :*.ogg=󰝚 :*.omg=󰝚 :*.opus=󰝚 :*.orc=󰝚 :*.osf=󰝚 :*.plj=󰝚 :*.pls=󰝚 :*.psid=󰝚 :*.pya=󰝚 :*.qcp=󰝚 :*.ra=󰝚 :*.ram=󰝚 :*.rip=󰝚 :*.rm=󰝚 :*.s1m=󰝚 :*.sco=󰝚 :*.sd2=󰝚 :*.sid=󰝚 :*.sly=󰝚 :*.smp=󰝚 :*.smp3=󰝚 :*.smv=󰝚 :*.snd=󰝚 :*.sofa=󰝚 :*.spx=󰝚 :*.uva=󰝚 :*.uvva=󰝚 :*.vbk=󰝚 :*.vpm=󰝚 :*.wav=󰝚 :*.wax=󰝚 :*.wma=󰝚 :*.xhe=󰝚 :*.xspf=󰝚 :*.alc= :*.asn= :*.asn= :*.aso= :*.b= :*.bsd= :*.c3d= :*.cac= :*.cache= :*.cascii= :*.cbin= :*.cdx= :*.cef= :*.chm= :*.cif= :*.cmdf= :*.cml= :*.cpa= :*.csf= :*.csm= :*.csml= :*.ctab= :*.ctx= :*.cub= :*.cxf= :*.dx= :*.emb= :*.embl= :*.fch= :*.fchk= :*.gal= :*.gau= :*.gcg= :*.gen= :*.gjc= :*.gjf= :*.gpt= :*.hin= :*.ist= :*.istr= :*.jdx= :*.kin= :*.mcif= :*.mcm= :*.mif= :*.mmod= :*.mol= :*.moo= :*.mop= :*.mopcrt= :*.mpc= :*.mvb= :*.pdb= :*.prt= :*.rd= :*.ros= :*.rxn= :*.sd= :*.sdf= :*.smi= :*.spc= :*.sw= :*.tgf= :*.val= :*.vmd= :*.vms= :*.xtel= :*.xyz= :*.zmt= :*.conf= :*.ini= :*.ppd= :*.toml= :*.yaml= :*.yml= :*config= :*.bdb= :*.csv= :*.csvs= :*.db= :*.geojson= :*.json= :*.json?patch= :*.jsonld= :*.jsontd= :*.jsontm= :*.mdb= :*.qgs= :*.rdf= :*.rdf?crypt= :*.rss= :*.shp= :*.shx= :*.sql= :*.sqlite= :*.sqlite3= :*.xml= :*.abw=󰉺 :*.ai=󰉺 :*.apkg=󰉺 :*.book=󰉺 :*.cbr=󰉺 :*.cbz=󰉺 :*.chrt=󰉺 :*.doc=󰉺 :*.docx=󰉺 :*.dotx=󰉺 :*.dvi=󰉺 :*.eps=󰉺 :*.eps2=󰉺 :*.eps3=󰉺 :*.epsf=󰉺 :*.epsi=󰉺 :*.epub=󰉺 :*.fb=󰉺 :*.fbdoc=󰉺 :*.flw=󰉺 :*.gan=󰉺 :*.ggb=󰉺 :*.ggs=󰉺 :*.ggt=󰉺 :*.gnumeric=󰉺 :*.karbon=󰉺 :*.kfo=󰉺 :*.kon=󰉺 :*.kpr=󰉺 :*.kpt=󰉺 :*.mm=󰉺 :*.odb=󰉺 :*.odc=󰉺 :*.odf=󰉺 :*.odg=󰉺 :*.odi=󰉺 :*.odm=󰉺 :*.odp=󰉺 :*.ods=󰉺 :*.odt=󰉺 :*.osm=󰉺 :*.otc=󰉺 :*.otg=󰉺 :*.oth=󰉺 :*.oti=󰉺 :*.otm=󰉺 :*.otp=󰉺 :*.ots=󰉺 :*.ott=󰉺 :*.oxt=󰉺 :*.pdf=󰉺 :*.potm=󰉺 :*.potx=󰉺 :*.ppam=󰉺 :*.pps=󰉺 :*.ppsm=󰉺 :*.ppsx=󰉺 :*.ppt=󰉺 :*.pptm=󰉺 :*.pptx=󰉺 :*.ps=󰉺 :*.rtf=󰉺 :*.sda=󰉺 :*.sdc=󰉺 :*.sdd=󰉺 :*.sdp=󰉺 :*.sds=󰉺 :*.sdw=󰉺 :*.sgl=󰉺 :*.sldx=󰉺 :*.sm=󰉺 :*.smf=󰉺 :*.smzip=󰉺 :*.stc=󰉺 :*.std=󰉺 :*.sti=󰉺 :*.stw=󰉺 :*.sxc=󰉺 :*.sxd=󰉺 :*.sxg=󰉺 :*.sxi=󰉺 :*.sxm=󰉺 :*.sxw=󰉺 :*.vsd=󰉺 :*.vsf=󰉺 :*.vss=󰉺 :*.vst=󰉺 :*.vsw=󰉺 :*.wpd=󰉺 :*.xhtm=󰉺 :*.xhtml=󰉺 :*.xla=󰉺 :*.xlam=󰉺 :*.xlc=󰉺 :*.xlm=󰉺 :*.xls=󰉺 :*.xlsb=󰉺 :*.xlsm=󰉺 :*.xlsx=󰉺 :*.xlt=󰉺 :*.xltm=󰉺 :*.xltx=󰉺 :*.xlw=󰉺 :*.xodp=󰉺 :*.xods=󰉺 :*.xodt=󰉺 :*.xotp=󰉺 :*.xots=󰉺 :*.xott=󰉺 :*.xsl=󰉺 :*.xslt=󰉺 :*.brd= :*.cpa= :*.csa= :*.dwm= :*.kicad_pro= :*.pro= :*.sch= :*.ac= :*.cer= :*.crl= :*.crt= :*.gpg= :*.kbx= :*.kdbx= :*.key= :*.p10= :*.p12= :*.p21= :*.p7c= :*.p7m= :*.p7r= :*.p7s= :*.p7z= :*.p8= :*.p8e= :*.pem= :*.pgp= :*.pki= :*.pkipath= :*.bash=󱓞 :*.bat=󱓞 :*.bin=󱓞 :*.com=󱓞 :*.csh=󱓞 :*.dll=󱓞 :*.exe=󱓞 :*.fish=󱓞 :*.jnlp=󱓞 :*.o=󱓞 :*.pyc=󱓞 :*.pyo=󱓞 :*.sh=󱓞 :*.so=󱓞 :*.zsh=󱓞 :*.gsf= :*.otf= :*.pfa= :*.pfb= :*.ttc= :*.ttf= :*.woff= :*.woff2= :*.32x= :*.3ds= :*.3dz= :*.Z1= :*.Z2= :*.Z3= :*.Z4= :*.Z5= :*.Z6= :*.Z7= :*.Z8= :*.a26= :*.a52= :*.a78= :*.amgp= :*.atr= :*.atx= :*.bas= :*.cas= :*.ccd= :*.cdi= :*.chd= :*.cso= :*.cso= :*.cue= :*.esc= :*.fam= :*.fds= :*.gam= :*.gamin= :*.gb= :*.gba= :*.gbc= :*.gd= :*.gdi= :*.gdnlib= :*.gdns= :*.gdscript= :*.gen= :*.gg= :*.godot= :*.inp= :*.jcd= :*.lnx= :*.mdf= :*.mds= :*.n64= :*.ndd= :*.nds= :*.nds= :*.nes= :*.nez= :*.nrg= :*.obg= :*.obgx= :*.pdn= :*.pgn= :*.pgn= :*.ptrom= :*.rom= :*.sbi= :*.sc= :*.sf7= :*.sfc= :*.sg= :*.sgf= :*.smc= :*.smd= :*.smk= :*.sms= :*.srm= :*.sub= :*.swc= :*.tres= :*.tscn= :*.v64= :*.vpk= :*.wad= :*.wbfs= :*.z1= :*.z2= :*.z3= :*.z4= :*.z5= :*.z6= :*.z7= :*.z8= :*.J2C= :*.J2K= :*.PGB= :*.apng= :*.art= :*.avci= :*.avcs= :*.avif= :*.azv= :*.b16= :*.bmp= :*.btf= :*.btif= :*.cdr= :*.cdt= :*.cgm= :*.cpt= :*.cr2= :*.crw= :*.djv= :*.djvu= :*.dpx= :*.drle= :*.dwg= :*.dxf= :*.emf= :*.erf= :*.exr= :*.fbs= :*.fig= :*.fit= :*.fits= :*.fpx= :*.fst= :*.fts= :*.gif= :*.hdr= :*.heic= :*.heics= :*.heif= :*.heifs= :*.hej2= :*.hif= :*.hsj2= :*.ico= :*.ief= :*.j2c= :*.j2k= :*.jfif= :*.jhc= :*.jls= :*.jng= :*.jp2= :*.jpe= :*.jpeg= :*.jpf= :*.jpg= :*.jpg2= :*.jpgm= :*.jph= :*.jphc= :*.jpm= :*.jpx= :*.jxl= :*.jxr= :*.jxra= :*.jxrs= :*.jxs= :*.jxsc= :*.jxsi= :*.jxss= :*.kra= :*.ktx= :*.ktx2= :*.mdi= :*.mmr= :*.nef= :*.ora= :*.orf= :*.pat= :*.pbm= :*.pcx= :*.pgb= :*.pgm= :*.png= :*.pnm= :*.ppm= :*.psd= :*.pti= :*.ras= :*.rgb= :*.rgbe= :*.rlc= :*.s1g= :*.s1j= :*.s1n= :*.sgi= :*.sgif= :*.sjp= :*.sjpg= :*.smil= :*.sml= :*.spn= :*.spng= :*.svg= :*.svgz= :*.tap= :*.tfx= :*.tif= :*.tiff= :*.uvg= :*.uvi= :*.uvvg= :*.uvvi= :*.vtf= :*.wbmp= :*.webp= :*.wmf= :*.xbm= :*.xcf= :*.xif= :*.xpm= :*.xwd= :*.xyze= :*.art= :*.eml= :*.mail= :*.mbox= :*.oeb= :*.sieve= :*.u8dsn= :*.u8hdr= :*.u8mdn= :*.u8msg= :*.3ds=󰹜 :*.3mf=󰹜 :*.FCMacro=󰹜 :*.FCMat=󰹜 :*.FCParam=󰹜 :*.FCScript=󰹜 :*.FCStd=󰹜 :*.amf=󰹜 :*.bary=󰹜 :*.blend=󰹜 :*.brep=󰹜 :*.brp=󰹜 :*.bsp=󰹜 :*.cam=󰹜 :*.cld=󰹜 :*.cnc=󰹜 :*.csg=󰹜 :*.dae=󰹜 :*.dib=󰹜 :*.dor=󰹜 :*.dwf=󰹜 :*.gcode=󰹜 :*.gdl=󰹜 :*.glb=󰹜 :*.gltf=󰹜 :*.gsm=󰹜 :*.gtw=󰹜 :*.ifc=󰹜 :*.ifcJSON=󰹜 :*.iges=󰹜 :*.igs=󰹜 :*.ism=󰹜 :*.jt=󰹜 :*.lmp=󰹜 :*.mesh=󰹜 :*.moml=󰹜 :*.msh=󰹜 :*.msm=󰹜 :*.mtl=󰹜 :*.mts=󰹜 :*.nc=󰹜 :*.ncc=󰹜 :*.ngc=󰹜 :*.obj=󰹜 :*.ogex=󰹜 :*.poly=󰹜 :*.pov=󰹜 :*.prc=󰹜 :*.pyox=󰹜 :*.rsm=󰹜 :*.scad=󰹜 :*.silo=󰹜 :*.step=󰹜 :*.stl=󰹜 :*.stp=󰹜 :*.stpx=󰹜 :*.stpxz=󰹜 :*.stpz=󰹜 :*.tooltable=󰹜 :*.u3d=󰹜 :*.usda=󰹜 :*.usdz=󰹜 :*.vds=󰹜 :*.vrm=󰹜 :*.vrml=󰹜 :*.vtu=󰹜 :*.win=󰹜 :*.wrl=󰹜 :*.x3d=󰹜 :*.x3db=󰹜 :*.x3dv=󰹜 :*.x3dvz=󰹜 :*.x3dz=󰹜 :*.x_b=󰹜 :*.x_t=󰹜 :*.xmt_bin=󰹜 :*.xmt_txt=󰹜 :*.apk=󰏖 :*.cpkg=󰏖 :*.ddeb=󰏖 :*.deb=󰏖 :*.dpkg=󰏖 :*.ebuild=󰏖 :*.eclass=󰏖 :*.gpkg=󰏖 :*.mpkg=󰏖 :*.onepkg=󰏖 :*.pkg=󰏖 :*.portpkg=󰏖 :*.ppkg=󰏖 :*.rpm=󰏖 :*.xpak=󰏖 :*.2bit= :*.dna= :*.fa= :*.mseq= :*.sce= :*.scf= :*.sci= :*#=󰃢 :*.%=󰃢 :*.bak=󰃢 :*.bk=󰃢 :*.dl=󰃢 :*.dpkg-dist=󰃢 :*.dpkg-old=󰃢 :*.old=󰃢 :*.orig=󰃢 :*.part=󰃢 :*.rej=󰃢 :*.rpmnew=󰃢 :*.rpmorig=󰃢 :*.rpmsave=󰃢 :*.swp=󰃢 :*.tmp=󰃢 :*tmp=󰃢 :*~=󰃢 :*.3dm= :*.3dml= :*.CQL= :*.VFK= :*.a= :*.abc= :*.appcache= :*.ascii= :*.bib= :*.boo= :*.brf= :*.brl= :*.c= :*.c++= :*.cc= :*.ccc= :*.cls= :*.cnd= :*.coffee= :*.copyright= :*.cpp= :*.css= :*.curl= :*.cxx= :*.d= :*.dart= :*.diff= :*.dms= :*.dot= :*.dsc= :*.dxg= :*.es= :*.etx= :*.flt= :*.flx= :*.fly= :*.gcd= :*.ged= :*.gff3= :*.gv= :*.h= :*.h++= :*.hans= :*.hgl= :*.hh= :*.hpp= :*.hs= :*.htc= :*.htm= :*.html= :*.hxx= :*.ics= :*.ifb= :*.jad= :*.java= :*.js= :*.jtd= :*.latex= :*.lhs= :*.ltx= :*.ly= :*.lyx= :*.manifest= :*.markdown= :*.mc2= :*.md= :*.miz= :*.mjs= :*.moc= :*.mpf= :*.n3= :*.p= :*.pas= :*.patch= :*.php= :*.pl= :*.pm= :*.pot= :*.provn= :*.py= :*.rb= :*.roff= :*.rs= :*.rst= :*.scala= :*.sfv= :*.sgm= :*.sgml= :*.shaclc= :*.shc= :*.shex= :*.shtml= :*.si= :*.sl= :*.soa= :*.sos= :*.spdx= :*.spo= :*.spot= :*.srt= :*.sty= :*.t= :*.tag= :*.tcl= :*.tex= :*.text= :*.tk= :*.tm= :*.tr= :*.ts= :*.tsv= :*.ttl= :*.txt= :*.uri= :*.uris= :*.vcard= :*.vcf= :*.vcs= :*.vtt= :*.wgsl= :*.wml= :*.wmls= :*.zone= :*README= :*.asf= :*.avi= :*.axv= :*.dif= :*.dv= :*.dvb= :*.flc= :*.fli= :*.flv= :*.fvt= :*.gl= :*.lsf= :*.lsx= :*.m1v= :*.m2v= :*.m4s= :*.m4u= :*.m4v= :*.mj2= :*.mjp2= :*.mjpeg= :*.mjpg= :*.mkv= :*.mng= :*.mov= :*.movie= :*.mp4= :*.mp4v= :*.mpe= :*.mpeg= :*.mpg= :*.mpg4= :*.mpv= :*.mxu= :*.nim= :*.nuv= :*.ogm= :*.ogv= :*.ogx= :*.pyv= :*.qt= :*.rmvb= :*.s11= :*.s14= :*.s1q= :*.scs= :*.smo= :*.smov= :*.smpg= :*.ssw= :*.sswf= :*.ucf= :*.ucf-dist= :*.ucf-new= :*.ucf-old= :*.uvh= :*.uvm= :*.uvp= :*.uvs= :*.uvu= :*.uvv= :*.uvvh= :*.uvvm= :*.uvvp= :*.uvvs= :*.uvvu= :*.uvvv= :*.viv= :*.vob= :*.webm= :*.wm= :*.wmv= :*.wmx= :*.wvx= :*.yt= :*.yuv= " + fish_vi_key_bindings set fish_cursor_default block @@ -26,6 +28,8 @@ set fish_cursor_visual block set fish_term24bit 1 +starship init fish | source + if test -e ~/.config/fish/config-private.fish source ~/.config/fish/config-private.fish end diff --git a/common/.config/fish/functions/update-homes.fish b/common/.config/fish/functions/update-homes.fish index 0329e0e..e3a6aee 100755 --- a/common/.config/fish/functions/update-homes.fish +++ b/common/.config/fish/functions/update-homes.fish @@ -108,6 +108,12 @@ function update-homes -d "Update homes configuration" echo cargo install broot + echo + echo + echo (set_color 719cd6)"*** Install starship ***"(set_color normal) + echo + cargo install starship + echo echo echo (set_color 719cd6)"*** Install onefetch ***"(set_color normal) @@ -137,6 +143,24 @@ function update-homes -d "Update homes configuration" echo go install github.com/ambientsound/pms@latest + echo + echo + echo (set_color 719cd6)"*** Install pastel ***"(set_color normal) + echo + cargo install pastel + + echo + echo + echo (set_color 719cd6)"*** Install notnow ***"(set_color normal) + echo + cargo install notnow + + echo + echo + echo (set_color 719cd6)"*** Install cargo-espflash, espflash and espup ***"(set_color normal) + echo + cargo install espflash espup cargo-espflash + echo echo echo (set_color 719cd6)"*** Install poezio-omemo and epr ***"(set_color normal) @@ -188,6 +212,12 @@ function update-homes -d "Update homes configuration" xontrib-vox xontrib-abbrevs xontrib-argcomplete xontrib-django \ xonsh-docker-tabcomplete xontrib-fish-completer xontrib-jedi\ xontrib-makefile-complete --break-system-packages; exit(1)" | xonsh + + echo + echo + echo (set_color 719cd6)"*** Install hgrep ***"(set_color normal) + echo + cargo install hgrep end if set -q _flag_remove diff --git a/common/.config/git/config b/common/.config/git/config new file mode 100644 index 0000000..468d2bb --- /dev/null +++ b/common/.config/git/config @@ -0,0 +1,110 @@ +[push] + default = simple +[user] + name = REPLACEUSER + email = REPLACEMAIL + signingkey = REPLACEKEY +[http] + postBuffer = 424288000 + sslverify = false + verifyssl = false +[commit] + gpgsign = true +[core] + excludesfile = ~/.config/git/gitignore_global + pager = nvimpager +[grep] + lineNumber = true +[init] + defaultBranch = main +[log] + graphColors = "#9d79d6,#719cd6,#81b29a,#dbc074,#f4a261,#c94f6d,#dfdfe0" +[web] + browser = elinks +[color] + ui = always + advice = always + branch = always + diff = always + grep = always + interactive = always + push = always + remote = always + showBranch = always + status = always + transport = always +[color.advice] + hint = "#71839b" +[color.blame] + highlightRecent = "#738091,24 month ago,#719cd6,12 month ago,#81b29a,6 month ago,#cdcecf,1 month ago,#dbc074,7 day ago,#f4a261" + repeatedLines = "#63cdcf" +[color.branch] + current = "#f4a261" + remote = "#dbc074" + local = "#719cd6" + upstream = "#dbc074" + plain = "#f4a261" +[color.diff] + context = "#cdcecf" + meta = "#738091" + frag = "#f4a261" + func = "#719cd6" + old = "#c94f6d" + new = "#81b29a" + commit = "#3da7a9" + whitespace = "#dbc074" + oldMoved = "#c94f6d" + newMoved = "#81b29a" + oldMovedDimmed = "#ef7593" + oldMovedAlternative = "#c94f6d italic" + oldMovedAlternativeDimmed = "#ef7593 italic" + newMovedDimmed = "#9bccb4 italic" + newMovedAlternative = "#81b29a italic" + newMovedAlternativeDimmed = "#9bccb4 italic" + contextDimmed = "#cdcecf italic" + oldDimmed = "#c94f6d italic" + newDimmed = "#81b29a italic" + contextBold = "#cdcecf bold" + oldBold = "#c94f6d bold" + newBold = "#81b29a bold" +[color.decorate] + branch = "#f4a261" + remoteBranch = "#dbc074" + tag = "#719cd6" + stash = "#9d79d6" + HEAD = "#63cdcf" + grafted = "#d67ad2" +[color.grep] + context = "#cdcecf" + filename = "#81b29a" + function = "#719cd6" + lineNumber = "#aeafb0 #212e3f" + column = "normal #29394f" + match = "#89f3f5 #2b3b51" + selected = "normal #2b3b51" + separator = "#9d79d6" +[color.interactive] + prompt = "#131a24 #81b29a" + header = "#f4a261 bold" + help = "#71839b" + error = "#131a24 #c94f6d" +[color.push] + error = "#131a24 #c94f6d" +[color.remote] + hint = "#71839b" + warning = "#dbc074" + success = "#81b29a" + error = "#131a24 #c94f6d" +[color.status] + header = "#f4a261 bold" + added = "#81b29a" + updated = "#719cd6" + changed = "#719cd6" + untracked = "#9d79d6" + branch = "#f4a261" + nobranch = "#c94f6d" + localBranch = "#719cd6" + remoteBranch = "#dbc074" + unmerged = "#9d79d6" +[color.transport] + rejected = "#c94f6d" diff --git a/common/.config/git/gitignore_global b/common/.config/git/gitignore_global new file mode 100644 index 0000000..e440e06 --- /dev/null +++ b/common/.config/git/gitignore_global @@ -0,0 +1,22 @@ +*~ +*.kdev4 + +# ---> Vim +# Swap +[._]*.s[a-v][a-z] +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ diff --git a/common/.config/lsd/colors.yaml b/common/.config/lsd/colors.yaml new file mode 100644 index 0000000..effeeaf --- /dev/null +++ b/common/.config/lsd/colors.yaml @@ -0,0 +1,56 @@ +user: 80 +group: 39 +permission: + read: 39 + write: 180 + exec: 108 + exec-sticky: 204 + no-access: 167 + octal: 102 + acl: 102 + context: 215 +file-type: + file: + exec_uid: 222 + uid_no_exec: 145 + exec_no_uid: 215 + no_exec_no_uid: 67 + dir: + uid: 111 + no_uid: 123 + pipe: 180 + symlink: + default: 80 + broken: 167 + missing_target: 167 + block_device: 183 + char_device: 140 + socket: 176 + special: 133 +date: + hour-old: 115 + day-old: 108 + older: 65 +size: + none: 188 + small: 222 + medium: 180 + large: 215 +inode: + valid: 183 + invalid: 204 +links: + valid: 111 + invalid: 204 +tree-edge: 67 +git-status: + default: 188 + unmodified: 188 + ignored: 102 + new-in-index: 108 + new-in-workdir: 67 + typechange: 180 + deleted: 204 + renamed: 111 + modified: 39 + conflicted: 204 diff --git a/common/.config/lsd/config.yaml b/common/.config/lsd/config.yaml new file mode 100644 index 0000000..74b482b --- /dev/null +++ b/common/.config/lsd/config.yaml @@ -0,0 +1,136 @@ +# == Classic == +# This is a shorthand to override some of the options to be backwards compatible +# with `ls`. It affects the "color"->"when", "sorting"->"dir-grouping", "date" +# and "icons"->"when" options. +# Possible values: false, true +classic: false + +# == Blocks == +# This specifies the columns and their order when using the long and the tree +# layout. +# Possible values: permission, user, group, context, size, date, name, inode, links, git +blocks: + - permission + - user + - group + - size + - date + - context + - git + - name + +# == Color == +# This has various color options. (Will be expanded in the future.) +color: + # When to colorize the output. + # When "classic" is set, this is set to "never". + # Possible values: never, auto, always + when: always + # How to colorize the output. + # When "classic" is set, this is set to "no-color". + # Possible values: default, custom + # When "custom" is set, lsd will look in the config directory for `colors.yaml`. + theme: custom + +# == Date == +# This specifies the date format for the date column. The freeform format +# accepts a strftime like string. +# When "classic" is set, this is set to "date". +# Possible values: date, relative, '+' +# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55 +date: date + +# == Dereference == +# Whether to dereference symbolic links. +# Possible values: false, true +dereference: false + +# == Display == +# What items to display. Do not specify this for the default behavior. +# Possible values: all, almost-all, directory-only +# display: all + +# == Icons == +icons: + # When to use icons. + # When "classic" is set, this is set to "never". + # Possible values: always, auto, never + when: always + # Which icon theme to use. + # Possible values: fancy, unicode + theme: fancy + # Separator between icon and the name + # Default to 1 space + separator: " " + +# == Ignore Globs == +# A list of globs to ignore when listing. +# ignore-globs: +# - .git + +# == Indicators == +# Whether to add indicator characters to certain listed files. +# Possible values: false, true +indicators: true + +# == Layout == +# Which layout to use. "oneline" might be a bit confusing here and should be +# called "one-per-line". It might be changed in the future. +# Possible values: grid, tree, oneline +layout: grid + +# == Recursion == +recursion: + # Whether to enable recursion. + # Possible values: false, true + enabled: false + # How deep the recursion should go. This has to be a positive integer. Leave + # it unspecified for (virtually) infinite. + # depth: 3 + +# == Size == +# Specifies the format of the size column. +# Possible values: default, short, bytes +size: short + +# == Permission == +# Specify the format of the permission column +# Possible value: rwx, octal +permission: octal + +# == Sorting == +sorting: + # Specify what to sort by. + # Possible values: extension, name, time, size, version + column: name + # Whether to reverse the sorting. + # Possible values: false, true + reverse: false + # Whether to group directories together and where. + # When "classic" is set, this is set to "none". + # Possible values: first, last, none + dir-grouping: last + +# == No Symlink == +# Whether to omit showing symlink targets +# Possible values: false, true +no-symlink: false + +# == Total size == +# Whether to display the total size of directories. +# Possible values: false, true +total-size: false + +# == Hyperlink == +# Attach hyperlink to filenames +# Possible values: always, auto, never +hyperlink: never + +# == Symlink arrow == +# Specifies how the symlink arrow display, chars in both ascii and utf8 +symlink-arrow: ⇒ + +# == Header == +# Whether to display block headers. +# Possible values: false, true +header: false diff --git a/common/.config/mailcap b/common/.config/mailcap new file mode 100644 index 0000000..d4d9d5a --- /dev/null +++ b/common/.config/mailcap @@ -0,0 +1,6 @@ +text/html; TERM=tmux-direct elinks %s -dump -config-dir ~/.elinks; nametemplate=%s.html; copiousoutput +text/gemini; amfora %s; needsterminal +image/*; TERM=tmux-direct timg -pk %s; needsterminal +application/x-gunzip; gzcat; copiousoutput +application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput +application/postscript; ps2ascii %s; copiousoutput diff --git a/common/.config/starship.toml b/common/.config/starship.toml new file mode 100644 index 0000000..c8fe9b6 --- /dev/null +++ b/common/.config/starship.toml @@ -0,0 +1,672 @@ +"$schema" = 'https://starship.rs/config-schema.json' +add_newline = true +palette = 'nightfox' +continuation_prompt = '[█](fg:cyan)[█](fg:blue)[█](fg:dark_blue) ' + +format = """ +[█](fg:cyan)[█](fg:blue)[█](fg:dark_blue bg:light_blue)\ +$os\ +[](fg:light_blue bg:dark_blue)\ +$shell\ +$sudo\ +$username\ +$hostname\ +$battery\ +$time\ +[](fg:green bg:none)\ +\n[█](fg:cyan)[█](fg:blue)[█](fg:dark_blue bg:fg3)\ +$container\ +$docker_context\ +$kubernetes\ +$gcloud\ +$openstack\ +$singularity\ +$vcsh\ +[](fg:fg3 bg:bg1)\ +$fossil_branch\ +$git_branch\ +$git_commit\ +$git_state\ +$git_metrics\ +$git_status\ +$hg_branch\ +$pijul_channel\ +[](bg:bg3 fg:bg1)\ +$status\ +[](bg:blue fg:bg3)\ +$cmd_duration\ +[](bg:none fg:blue)\ +\n[█](fg:cyan)[█](fg:blue)[█](fg:dark_blue bg:sel0)\ +[$all](bg:sel0)\ +[](bg:none fg:sel0)\ +\n[█](fg:cyan)[█](fg:blue)[█](fg:dark_blue bg:green)\ +$directory\ +[](bg:none fg:green)\ +$line_break$character\ +[](fg:bg2 bg:blue)\ +$jobs\ +[](bg:none fg:blue)\ +$shlvl \ +""" + +[battery] +full_symbol = '󱐋F' +charging_symbol = 'C' +discharging_symbol = '🔋D' +empty_symbol = 'E' +unknown_symbol = '?' +format = '[$symbol$percentage ]($style)' + +[[battery.display]] +format = '[$symbol$common_meaning$signal_name$maybe_int]($style)' +threshold = 20 +style = 'bg:bg1 fg:red' + +[[battery.display]] +format = '[$symbol$common_meaning$signal_name$maybe_int]($style)' +threshold = 50 +style = 'bg:bg1 fg:yellow' + +[[battery.display]] +format = '[$symbol$common_meaning$signal_name$maybe_int]($style)' +threshold = 80 +style = 'bg:bg1 fg:green' + +[[battery.display]] +format = '[$symbol$common_meaning$signal_name$maybe_int]($style)' +threshold = 100 +style = 'bg:bg1 fg:light_green' + + +[character] +success_symbol = '[I](bold fg:green bg:bg2)' +error_symbol = '[✗](bold fg:red bg:bg2)' +vimcmd_symbol = '[V](bold fg:magenta bg:bg2)' +vimcmd_replace_one_symbol = '[r](bold fg:cyan bg:bg2)' +vimcmd_replace_symbol = '[R](bold fg:blue bg:bg2)' +vimcmd_visual_symbol = '[V](bold fg:magenta bg:bg2)' +format = '[$symbol]($style)' + +[buf] +symbol = 'buf' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[bun] +symbol = '󰉚bun' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:red bg:sel0' + +[c] +symbol = '󰙱C' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:green bg:sel0' + +[cmake] +symbol = '△cmake' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[cobol] +symbol = '⚙️cobol' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[cmd_duration] +min_time = 0 +format = '[󰑮$duration]($style)' +style = 'bg:blue fg:bg0' + +[conda] +symbol = '🅒conda' +format = '[$symbol:$environment]($style)' +version_format = '${raw}' +style = 'fg:green bg:sel0' + +[container] +format = '[$symbol:$name]($style)' +symbol = 'cont' +style = 'fg:bg0 bg:fg3' + +[crystal] +symbol = '󰬯crystal' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:red bg:sel0' + +[daml] +symbol = 'Λdaml' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:cyan bg:sel0' + +[dart] +symbol = 'dart' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[deno] +symbol = '⚙️deno' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:green bg:sel0' + +[directory] +read_only = 'RO' +read_only_style = 'bg:green fg:bg4 bold' +style = 'bg:green fg:bg0' +truncation_symbol = '…/' +format = '[$path]($style)[$read_only]($read_only_style)' + + +[docker_context] +symbol = 'docker' +format = '[$symbol:$context]($style)' +style = 'fg:bg0 bg:fg3' + +[dotnet] +symbol = 'dotnet' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[elixir] +symbol = 'elixir' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:magenta bg:sel0' + +[elm] +symbol = 'elm' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:cyan bg:sel0' + +[erlang] +symbol = 'erlang' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:red bg:sel0' + +[fennel] +symbol = '⚙️fennel' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:green bg:sel0' + +[fossil_branch] +symbol = 'fossil' +format = '[$symbol:$branch]($style)' +style = 'fg:orange bg:bg1' + +[gcloud] +symbol = '󱇶gcloud' +format = '[$symbol$account(@$domain)(\($region\))]($style)' +style = 'fg:bg0 bg:fg3' + +[git_branch] +symbol = 'git' +style = 'bg:bg1 fg:orange' +format = '[$symbol:$branch(:$remote_branch)]($style)' + +[git_commit] +commit_hash_length = 4 +tag_symbol = '' +tag_disabled = false +style = 'bg:bg1 fg:orange' +format = '[\($hash$tag\)]($style)' + +[git_state] +format = '[$state(\($progress_current/$progress_total\))]($style)' +style = 'bg:bg1 fg:yellow' +rebase = '󰡓rebase' +merge = 'merge' +revert = '󰕍revert' +cherry_pick = 'cherry' +bisect = 'bisect' +am = 'am' +am_or_rebase = '󰡓am_or_rebase' + +[git_metrics] +added_style = 'green' +deleted_style = 'red' +format = '[+$added]($added_style)[/](bg:bg1 fg:yellow)[-$deleted]($deleted_style)' + +[git_status] +style = 'bg:bg1 fg:yellow' +conflicted = '#' +ahead = '↑A' +behind = '↓B' +diverged = '↑A${ahead_count}↓B${behind_count}' +up_to_date = '' +untracked = '?' +stashed = '\$' +modified = 'M' +staged = '$count' +renamed = 'R' +deleted = 'D' +format = '([\[$all_status$ahead_behind\]]($style))' + +[golang] +symbol = '󰟓golang' +format = '[$symbol:$version/$mod_version]($style)' +version_format = '${raw}' +style = 'fg:cyan bg:sel0' + +[guix_shell] +symbol = 'guix' +format = '[ $symbol]($style)' +style = 'fg:yellow bg:sel0' + +[haskell] +symbol = 'haskell' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:magenta bg:sel0' + +[haxe] +symbol = 'haxe' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:dark_orange bg:sel0' + +[helm] +symbol = '󰠳helm' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:fg1 bg:sel0' + +[hostname] +style = "fg:bg0 bg:blue bold" +ssh_only = false +ssh_symbol = '[󰣀ssh:]($style blink)' +format = '[@$ssh_symbol$hostname ]($style)' +disabled = false + +[java] +symbol = 'java' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:light_red bg:sel0' + +[jobs] +symbol = '' +number_threshold = 0 +symbol_threshold = 0 +style = 'bg:blue fg:bg0' +format = '[$symbol$number]($style)' + +[julia] +symbol = 'julia' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:magenta bg:sel0' + +[kotlin] +symbol = 'kotlin' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[kubernetes] +format = '[$symbol:$context(\($namespace\))]($style)' +symbol = '󱃾kubernetes' +style = 'fg:bg0 bg:fg3' + +[lua] +symbol = 'lua' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[meson] +format = '[$symbol:$project]($style)' +symbol = 'meson' +style = 'fg:blue bg:sel0' + +[hg_branch] +symbol = 'hg' +format = '[$symbol:$branch]($style)' +style = 'fg:orange bg:bg1' + +[nim] +symbol = 'nim' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:light_yellow bg:sel0' + +[nix_shell] +symbol = '󱄅nix' +impure_msg = '[impure shell](bold red)' +pure_msg = '[pure shell](bold green)' +unknown_msg = '[unknown shell](bold yellow)' +format = '[$symbol:$state(\($name\))]($style)' +style = 'fg:blue bg:sel0' + +[nodejs] +symbol = '󰎙node' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:green bg:sel0' + +[ocaml] +symbol = 'ocaml' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:light_yellow bg:sel0' + +[opa] +symbol = '󱅧opa' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[openstack] +format = '[$symbol:$cloud(\($project\))]($style)' +symbol = 'openstack' +style = 'fg:bg0 bg:fg3' + +[os] +format = "[$symbol]($style)" +style = "bold fg:bg0 bg:light_blue" +disabled = false + +[os.symbols] +#Alma = " alma" +Alpaquita = "alpaquita" +Alpine = "alpine" +Amazon = "amazon" +Android = "android" +Arch = "arch" +Artix = "artix" +#Budgie = "budgie" +CentOS = "centos" +#CoreOS = "CoreOS" +Debian = "debian" +#Deepin = "deepin" +#Devuan = "devuan" +DragonFly = "DragonFly" +#Elementary = "elementary" +Emscripten = "󱐋emscripten" +EndeavourOS = "endeavour" +Fedora = "fedora" +FreeBSD = "FreeBSD" +Garuda = "󱗆garuda" +Gentoo = "gentoo" +HardenedBSD = "hardened" +Illumos = "illumos" +#Kali = "kali" +Linux = "linux" +Mabox = "mabox" +Macos = "macos" +#Mageia = "mageia" +Manjaro = "manjaro" +Mariner = "mariner" +MidnightBSD = "󰄛midnight" +Mint = "󰣭mint" +NetBSD = "NetBSD" +NixOS = "󱄅NixOS" +OpenBSD = "OpenBSD" +OpenCloudOS = "opencloud" +openEuler = "openEuler" +openSUSE = "openSuSE" +OracleLinux = "oracle" +#Parrot = "parrot" +Pop = "pop" +Raspbian = "raspbian" +Redhat = "󱄛redhat" +RedHatEnterprise = "󱄛rhel" +Redox = "redox" +#Rocky = "rocky" +#Slackware = "slackware" +#Snappy = "snappy" +Solus = "solus" +SUSE = "SuSE" +Ubuntu = "ubuntu" +Unknown = "❓unknown" +#Void = "void" +Windows = "windows" +#Zorin = "zorin" + +[package] +symbol = "pkg" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:orange bg:sel0' + +[perl] +symbol = "perl" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:light_green bg:sel0' + +[php] +symbol = "php" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:light_magenta bg:sel0' + +[pijul_channel] +symbol = 'pijul' +format = '[$symbol:$channel]($style)' +style = 'fg:orange bg:bg1' + +[pulumi] +symbol = "🛥pulumi" +format = '[$symbol:$version/$stack]($style)' +version_format = '${raw}' +style = 'fg:magenta bg:sel0' + +[purescript] +symbol = "purescript" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:fg1 bg:sel0' + +[python] +format = '[ ${symbol}:${pyenv_prefix}${version}(\($virtualenv\))]($style)' +symbol = 'python' +pyenv_version_name = false +version_format = '${raw}' +style = 'fg:yellow bg:sel0' + +[rlang] +symbol = "R" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[raku] +symbol = "raku" +format = '[$symbol:($version-$vm_version)]($style)' +version_format = '${raw}' +style = 'fg:light_green bg:sel0' + +[red] +symbol = '󱥒red' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:red bg:sel0' + +[ruby] +symbol = 'ruby' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:red bg:sel0' + +[rust] +symbol = "rust" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:dark_orange bg:sel0' + +[scala] +symbol = 'scala' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:red bg:sel0' + +[shell] +bash_indicator = "󱆃bash" +zsh_indicator = "󰰶zsh" +fish_indicator = '󰈺fish' +powershell_indicator = 'powershell' +ion_indicator = "ion" +elvish_indicator = "󰘧elvish" +tcsh_indicator = "tcsh" +xonsh_indicator = "xonsh" +cmd_indicator = "cmd" +nu_indicator = "󰅬nu" +unknown_indicator = 'mystery shell' +format = '[$indicator ]($style)' +disabled = false +style = "bg:dark_blue fg:bg0" + +[shlvl] +disabled = false +format = '[$symbol]($style)' +repeat = true +symbol = '❯' +repeat_offset = 0 +threshold = 0 + +[singularity] +symbol = '󱎤singularity' +format = '[$symbol:$env]($style)' +style = 'fg:bg0 bg:fg3' + +[solidity] +symbol = "󱎤solidity" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[spack] +symbol = "spack" +format = '[$symbol:$environment]($style)' +style = 'fg:blue bg:sel0' + +[status] +symbol = "[err](bg:bg3 fg:red)" +success_symbol = "[ok](bg:bg3 fg:green)" +not_executable_symbol = "[no_exec](bg:bg3 fg:light_red)" +not_found_symbol = "[󰦀not_found](bg:bg3 fg:red)" +sigint_symbol = "[sigint](bg:bg3 fg:orange)" +signal_symbol = "[signal](bg:bg3 fg:white)" +pipestatus_separator = '[&](bg:bg3 fg:light_blue)' +pipestatus = true +pipestatus_format = '$pipestatus[=>]($style)$symbol[(:$signal_name)(|$common_meaning)(|$status)]($style)' +disabled = false +format = '[$symbol(:$signal_name)(|$common_meaning)(|$status)]($style)' +style = 'bg:bg3 fg:light_blue' + +[sudo] +symbol = '󱑷sudo' +disabled = false +style = 'fg:bg0 bg:cyan blink' +format = '[$symbol:]($style)' + +[swift] +symbol = "swift" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:dark_orange bg:sel0' + +[terraform] +format = '[$symbol:$version/$workspace]($style)' +symbol = '󱁢terraform' +style = 'fg:magenta bg:sel0' + +[time] +disabled = false +format = '[$time]($style)' +time_format = '%R' +style = 'bg:green fg:bg0' + +[username] +style_user = 'fg:bg0 bg:cyan italic' +style_root = 'fg:bg0 bg:red bold blink' +format = '[$user]($style)' +disabled = false +show_always = true + +[vagrant] +symbol = "󱂌vagrant" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:cyan bg:sel0' + +[vlang] +symbol = "V" +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:blue bg:sel0' + +[vcsh] +format = '[$symbol:$repo]($style)' +symbol = '󰬝vcsh' +style = 'fg:bg0 bg:fg3' + +[zig] +symbol = 'zig' +version_format = '${raw}' +format = '[ $symbol:$version]($style)' +style = 'fg:yellow bg:sel0' + + + +[palettes.nightfox] +black = "#393b44" +red = "#c94f6d" +green = "#81b29a" +yellow = "#dbc074" +blue = "#719cd6" +magenta = "#9d79d6" +cyan = "#63cdcf" +white = "#dfdfe0" +orange = "#f4a261" +pink = "#d67ad2" + +comment = "#738091" + +bg0 = "#131a24" +bg1 = "#192330" +bg2 = "#212e3f" +bg3 = "#29394f" +bg4 = "#39506d" + +fg0 = "#d6d6d7" +fg1 = "#cdcecf" +fg2 = "#aeafb0" +fg3 = "#71839b" + +sel0 = "#2b3b51" +sel1 = "#3c5372" + +dark_black = "#13151e" +dark_red = "#a32947" +dark_green = "#5b8c74" +dark_yellow = "#b59a4e" +dark_blue = "#4b76b0" +dark_magenta = "#7753b0" +dark_cyan = "#3da7a9" +dark_white = "#b9b9ba" +dark_orange = "#ce7c3b" +dark_pink = "#b054ac" + +light_black = "#5f616a" +light_red = "#ef7593" +light_green = "#9bccb4" +light_yellow = "#ffe69a" +light_blue = "#97c2fc" +light_magenta = "#eac6ff" +light_cyan = "#89f3f5" +light_white = "#ffffff" +light_orange = "#ffc887" +light_pink = "#fca0f8" diff --git a/common/.config/tmux/tmux.conf b/common/.config/tmux/tmux.conf index 58e0af0..9a85ae7 100644 --- a/common/.config/tmux/tmux.conf +++ b/common/.config/tmux/tmux.conf @@ -7,7 +7,7 @@ bind-key -T copy-mode-vi C-v send -X rectangle-toggle bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel set -g lock-command vlock -set -g lock-after-time 900 +set -g lock-after-time 0 bind l lock-client bind L lock-session @@ -36,4 +36,7 @@ set -g base-index 0 set -g pane-base-index 0 set -g renumber-windows on +# For Kitty protocol +set -g allow‐passthrough on + source-file ~/.config/tmux/nightfox_tmux.tmux diff --git a/common/.config/xonsh/rc.xsh b/common/.config/xonsh/rc.xsh index 90d5cae..ee368d2 100755 --- a/common/.config/xonsh/rc.xsh +++ b/common/.config/xonsh/rc.xsh @@ -284,7 +284,7 @@ $CASE_SENSITIVE_COMPLETIONS = False $MOUSE_SUPPORT = True $XONSH_AUTOPAIR = True -$LS_COLORS = "*.7z=1;0;31:*.Z=1;0;31:*.aac=0;36:*.ace=1;0;31:*.alz=1;0;31:*.arc=1;0;31:*.arj=1;0;31:*.asf=1;0;35:*.au=0;36:*.avi=1;0;35:*.bmp=1;0;35:*.bz=1;0;31:*.bz2=1;0;31:*.cab=1;0;31:*.cgm=1;0;35:*.cpio=1;0;31:*.deb=1;0;31:*.dl=1;0;35:*.dwm=1;0;31:*.dz=1;0;31:*.ear=1;0;31:*.emf=1;0;35:*.esd=1;0;31:*.flac=0;36:*.flc=1;0;35:*.fli=1;0;35:*.flv=1;0;35:*.gif=1;0;35:*.gl=1;0;35:*.gz=1;0;31:*.jar=1;0;31:*.jpeg=1;0;35:*.jpg=1;0;35:*.lha=1;0;31:*.lrz=1;0;31:*.lz=1;0;31:*.lz4=1;0;31:*.lzh=1;0;31:*.lzma=1;0;31:*.lzo=1;0;31:*.m2v=1;0;35:*.m4a=0;36:*.m4v=1;0;35:*.mid=0;36:*.midi=0;36:*.mjpeg=1;0;35:*.mjpg=1;0;35:*.mka=0;36:*.mkv=1;0;35:*.mng=1;0;35:*.mov=1;0;35:*.mp3=0;36:*.mp4=1;0;35:*.mp4v=1;0;35:*.mpc=0;36:*.mpeg=1;0;35:*.mpg=1;0;35:*.nuv=1;0;35:*.oga=0;36:*.ogg=0;36:*.ogm=1;0;35:*.ogv=1;0;35:*.ogx=1;0;35:*.opus=0;36:*.pbm=1;0;35:*.pcx=1;0;35:*.pgm=1;0;35:*.png=1;0;35:*.ppm=1;0;35:*.qt=1;0;35:*.ra=0;36:*.rar=1;0;31:*.rm=1;0;35:*.rmvb=1;0;35:*.rpm=1;0;31:*.rz=1;0;31:*.sar=1;0;31:*.spx=0;36:*.svg=1;0;35:*.svgz=1;0;35:*.swm=1;0;31:*.t7z=1;0;31:*.tar=1;0;31:*.taz=1;0;31:*.tbz=1;0;31:*.tbz2=1;0;31:*.tga=1;0;35:*.tgz=1;0;31:*.tif=1;0;35:*.tiff=1;0;35:*.tlz=1;0;31:*.txz=1;0;31:*.tz=1;0;31:*.tzo=1;0;31:*.tzst=1;0;31:*.vob=1;0;35:*.war=1;0;31:*.wav=0;36:*.webm=1;0;35:*.wim=1;0;31:*.wmv=1;0;35:*.xbm=1;0;35:*.xcf=1;0;35:*.xpm=1;0;35:*.xspf=0;36:*.xwd=1;0;35:*.xz=1;0;31:*.yuv=1;0;35:*.z=1;0;31:*.zip=1;0;31:*.zoo=1;0;31:*.zst=1;0;31:bd=40;0;33:ca=0;30;41:cd=40;0;33:di=1;0;34:do=1;0;35:ex=1;0;32:ln=1;0;36:mh=0:mi=0:or=40;0;31:ow=0;34;42:pi=40;0;33:rs=0:sg=0;30;43:so=1;0;35:st=0;37;44:su=0;37;41:tw=0;30;42" +$LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:'; pushd "~/.config/xonsh" import rc_private diff --git a/common/.fonts/readme.md b/common/.fonts/readme.md new file mode 100644 index 0000000..9f2e700 --- /dev/null +++ b/common/.fonts/readme.md @@ -0,0 +1,8 @@ + +# Nerd Fonts + +This is an archived font from a Nerd Fonts release. + +For more information see: +* https://github.com/ryanoasis/nerd-fonts/ +* https://github.com/ryanoasis/nerd-fonts/releases/latest/ diff --git a/desktop/.config/aerc/aerc.conf b/desktop/.config/aerc/aerc.conf index c68a9dc..7361ff9 100644 --- a/desktop/.config/aerc/aerc.conf +++ b/desktop/.config/aerc/aerc.conf @@ -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 # valid UTF-8 text. # -text/html=pandoc -f html -t rst --list-tables=true | pygmentize -l rst -O style=nightfox_transparent | colorize +text/html=elinks -dump 1 -config-dir ~/.elinks | colorize [filters] # @@ -480,7 +480,7 @@ text/calendar=calendar message/delivery-status=colorize message/rfc822=colorize #text/html=elinks -dump 1 | colorize -text/html=pandoc -f html -t rst --list-tables=true | pygmentize -l rst -O style=nightfox_transparent | colorize +text/html=elinks -dump 1 -config-dir ~/.elinks | colorize #text/html=html | colorize #text/*=bat -fP --file-name="$AERC_FILENAME" #application/x-sh=bat -fP -l sh @@ -488,6 +488,11 @@ text/html=pandoc -f html -t rst --list-tables=true | pygmentize -l rst -O style= #subject,~Git(hub|lab)=lolcat -f #from,thatguywhodoesnothardwraphismessages=wrap -w 100 | colorize +application/x-gunzip=gzcat - +application/x-tar-gz=gunzip -c - | tar -tf - +application/postscript=ps2ascii - +application/pdf=pdftotext -stdout - + # This special filter is only used to post-process email headers when # [viewer].show-headers=true # By default, headers are piped directly into the pager. @@ -510,11 +515,13 @@ text/html=pandoc -f html -t rst --list-tables=true | pygmentize -l rst -O style= # # Examples: # x-scheme-handler/irc=hexchat -x-scheme-handler/http*=firefox +x-scheme-handler/http*=elinks +x-scheme-handler/gemini=amfora # text/html=surf -dfgms text/plain=nvim "{}" +125 text/calendar=khal -i import "{}" # message/rfc822=thunderbird +image/*=timg -pk -g$(tput cols)x$(tput lines) - [hooks] # diff --git a/desktop/.config/neomutt/accounts.fish b/desktop/.config/neomutt/accounts.fish new file mode 100644 index 0000000..0e1f051 --- /dev/null +++ b/desktop/.config/neomutt/accounts.fish @@ -0,0 +1,4 @@ +#!/bin/fish +for i in ~/.config/neomutt/accounts/* + cat $i/conf +end diff --git a/desktop/.config/neomutt/colors.conf b/desktop/.config/neomutt/colors.conf index 76ccf8e..f47328b 100644 --- a/desktop/.config/neomutt/colors.conf +++ b/desktop/.config/neomutt/colors.conf @@ -96,3 +96,54 @@ color body bold color39 color233 "([a-z][a-z0-9+-]*://(((([a- # and a heavy handed email regex color body bold color39 color233 "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" +# Author name, %A %a %F %L %n +# Give the author column a dark grey background +color index_author default color234 '.*' +# Highlight a particular from (~f) +# color index_author brightyellow color234 '~fRay Charles' +# Message flags, %S %Z +# Highlight the flags for flagged (~F) emails +color index_flags default red '~F' +# Subject, %s +# Look for a particular subject (~s) +color index_subject brightcyan default '~s\(closes #[0-9]+\)' +# Number of messages in a collapsed thread, %M +color index_collapsed default brightblue +# Date field +color index_date green default +# Message label, %y %Y +color index_label default brightgreen +# Message number, %C +color index_number red default +# Message size, %c %cr %l +color index_size cyan default +color index_tag red white "inbox" +color index_tags green default + +color progress white red + +# attach headers + +# Color if the attachment is autoviewed +color attach_headers brightgreen default "Autoview" +# Color only the brackets around the headers +color attach_headers brightyellow default "^\\[--" +color attach_headers brightyellow default "--]$" +# Color the mime type and the size +color attach_headers green default "Type: [a-z]+/[a-z0-9\-]+" +color attach_headers green default "Size: [0-9\.]+[KM]" +# Color GPGME signature checks +color attach_headers brightgreen default "Good signature from.*" +color attach_headers brightred default "Bad signature from.*" +color attach_headers brightred default "BAD signature from.*" +color attach_headers brightred default "Note: This key has expired!" +color attach_headers brightmagenta default "Problem signature from.*" +color attach_headers brightmagenta default "WARNING: This key is not certified with a trusted signature!" +color attach_headers brightmagenta default " There is no indication that the signature belongs to the owner." +color attach_headers brightmagenta default "can't handle these multiple signatures" +color attach_headers brightmagenta default "signature verification suppressed" +color attach_headers brightmagenta default "invalid node with packet of type" + +# Statuses +# +color status brightred white '(New|Del|Flag):[0-9]+' diff --git a/desktop/.config/neomutt/neomuttrc b/desktop/.config/neomutt/neomuttrc index 881486c..a760413 100644 --- a/desktop/.config/neomutt/neomuttrc +++ b/desktop/.config/neomutt/neomuttrc @@ -16,10 +16,13 @@ unignore X-Operating-System X-Mailer User-Agent X-GPG- X-PGP- set color_directcolor = true set charset = UTF-8 set sort = reverse-date-received +set sort_aux = date-received +set sort_browser = "alpha" set edit_headers = yes set askbcc = yes set askcc = yes set reply_to = ask-yes +set reply_with_xorig = "yes" set copy = yes set include @@ -29,9 +32,11 @@ set editor = 'nvim -c "set textwrap=72" -c "set wrap" -c "?^$"' alternative_order text/html text/enriched text/plain set beep_new = yes -set include=yes +set include = yes set abort_nosubject = ask-yes set abort_unmodified = ask-yes +set abort_noattach = ask-yes +set abort_noattach_regex = "\\<(attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons|attached|attachments?|bijvoegen|bijgevoegd|bijlage|bijlagen)\\>" set header_cache = "~/.local/share/neomutt/cache/headers" set message_cachedir = "~/.local/share/neomutt/cache/bodies" @@ -42,20 +47,31 @@ source ~/.config/neomutt/colors.conf ###### General keys config # mutt sidebar settings -bind index,pager - sidebar-prev -bind index,pager + sidebar-next -bind index,pager \\ sidebar-open +bind index,pager \CP sidebar-prev +bind index,pager \CN sidebar-next +bind index,pager \CO sidebar-open bind index next-unread +bind index,pager @ compose-to-sender +bind index L limit-current-thread +bind index,pager \` modify-labels +bind index,pager X change-vfolder +bind index,pager + entire-thread +bind index,pager \eX vfolder-from-query +bind index < vfolder-window-backward +bind index > vfolder-window-forward + + macro index,pager B 'toggle sidebar_visible' macro index,pager a "khard add-email" "add sender address to khard" +macro index,pager tt "!todo\n" "Toggle the 'todo' tag" set query_command= "khard email -p %s | awk -F\" +\" '{print $1 $3}'" bind editor complete-query bind editor ^T complete -macro index,pager G imap-fetch-mail -macro index,pager c "?" "open a different folder" +# TODO macro index,pager G imap-fetch-mail +# TODO macro index,pager c "?" "open a different folder" ###### General display config @@ -63,10 +79,11 @@ set nobeep set braille_friendly set strict_threads = yes # important, do not group all "Hey" messages +set use_threads = threads set implicit_autoview -auto_view text/html application/x-pgp-message -set mailcap_path="~/.mailcap" +auto_view text/plain text/html application/x-pgp-message +set mailcap_path="~/.config/mailcap" set mailcap_sanitize=yes set allow_ansi=yes @@ -83,9 +100,14 @@ set query_format="%4c %t %-25.25a %-25.25n %?e?(%e)?" set sidebar_format="%B%* %n" set status_format="%r %-15.15f [%?M?%M/?%m%?n? N%n?%?o? O%o?%?d? D%d?%?F? F%F?%?t? T%t?%?p? P%p?%?b? I%b?%?l? %l?]%> (%-10.10s/%-5.5S) (%P)" -set sidebar_divider_char="|" -set sidebar_visible=no -set sidebar_width=20 +set pager_read_delay = 5 + +set sidebar_divider_char = "█" +set sidebar_visible = no +set sidebar_width = 20 +set sidebar_folder_indent = yes +set sidebar_short_path +set sidebar_indent_string = " " set mail_check_stats set net_inc=5 @@ -94,6 +116,14 @@ set write_inc=5 unignore organization organisation x-mailer: x-newsreader: x-mailing-list: x-original-to: unignore posted-to: +tag-transforms "inbox" "i" \ + "unread" "u" \ + "replied" "↻ " \ + "sent" "➥ " \ + "todo" "T" \ + "deleted" "DEL" \ + "invites" "CAL" + ###### General GPG config set crypt_autosign @@ -166,4 +196,16 @@ set reverse_realname = yes ###### General accounts config -source ~/.config/neomutt/accounts.conf +set virtual_spoolfile = yes +set folder = "~/.local/share/mail/" +set nm_config_file = "~/.config/notmuch/notmuch-config" +set nm_default_url = "notmuch:///home/kujiu/.local/share/mail" +set nm_query_window_or_terms="tag:unread and tag:flagged" +set spoolfile=+Inbox +set postponed=+Drafts +set record=+Sent +set trash=+Trash + +virtual-mailboxes "My INBOX" "notmuch://?query=tag:inbox" +folder-hook "My INBOX" "/usr/bin/fish ~/.config/neomutt/accounts.fish" +set mbox_type=Maildir diff --git a/desktop/.config/newsboat/config b/desktop/.config/newsboat/config index 75ada52..3ca4c38 100644 --- a/desktop/.config/newsboat/config +++ b/desktop/.config/newsboat/config @@ -1387,6 +1387,9 @@ macro g set browser "amfora %u"; open-in-browser; set browser "elinks %u"; # Default value: no # # podcast-auto-enqueue yes +# +player "mpv" +download-path "~/Audio/%h/%n" #### prepopulate-query-feeds # diff --git a/desktop/.config/notnow/notnow.json b/desktop/.config/notnow/notnow.json new file mode 100644 index 0000000..fffb7be --- /dev/null +++ b/desktop/.config/notnow/notnow.json @@ -0,0 +1,140 @@ +{ + "colors": { + "more_tasks_fg": [ + 0, + 0, + 0 + ], + "more_tasks_bg": [ + 0, + 215, + 0 + ], + "selected_tab_fg": [ + 255, + 255, + 255 + ], + "selected_tab_bg": [ + 88, + 88, + 88 + ], + "unselected_tab_fg": [ + 255, + 255, + 255 + ], + "unselected_tab_bg": [ + 38, + 38, + 38 + ], + "unselected_task_fg": [ + 0, + 0, + 0 + ], + "unselected_task_bg": "reset", + "selected_task_fg": [ + 255, + 255, + 255 + ], + "selected_task_bg": [ + 88, + 88, + 88 + ], + "task_not_started_fg": [ + 254, + 13, + 12 + ], + "task_not_started_bg": "reset", + "task_done_fg": [ + 0, + 215, + 0 + ], + "task_done_bg": "reset", + "dialog_bg": [ + 218, + 218, + 218 + ], + "dialog_fg": [ + 0, + 0, + 0 + ], + "dialog_selected_tag_fg": [ + 255, + 255, + 255 + ], + "dialog_selected_tag_bg": [ + 88, + 88, + 88 + ], + "dialog_tag_set_fg": [ + 0, + 215, + 0 + ], + "dialog_tag_set_bg": [ + 218, + 218, + 218 + ], + "dialog_tag_unset_fg": [ + 254, + 13, + 12 + ], + "dialog_tag_unset_bg": [ + 218, + 218, + 218 + ], + "in_out_success_fg": [ + 0, + 0, + 0 + ], + "in_out_success_bg": [ + 0, + 215, + 0 + ], + "in_out_status_fg": [ + 255, + 255, + 255 + ], + "in_out_status_bg": [ + 0, + 0, + 0 + ], + "in_out_error_fg": [ + 0, + 0, + 0 + ], + "in_out_error_bg": [ + 255, + 0, + 0 + ], + "in_out_string_fg": "reset", + "in_out_string_bg": "reset" + }, + "views": [ + { + "name": "all", + "lits": [] + } + ] +} diff --git a/desktop/.elinks/elinks.conf b/desktop/.elinks/elinks.conf index 233ed6e..a6eab7a 100644 --- a/desktop/.elinks/elinks.conf +++ b/desktop/.elinks/elinks.conf @@ -743,7 +743,7 @@ ## document.download.directory # Default download directory. - set document.download.directory = "~/Downloads" + set document.download.directory = "~/Téléchargements" ## document.download.set_original_time [0|1] # Set the timestamp of each downloaded file to the timestamp stored on the @@ -795,7 +795,7 @@ ## document.dump.header # Header string used in dumps. %u is substituted by URL. - set document.dump.header = "" + set document.dump.header = "%u\n" ## document.dump.numbering [0|1] # Whether to print link numbers in dump output. @@ -817,7 +817,7 @@ ## document.dump.width # Width of screen in characters when dumping documents. - set document.dump.width = 25 + set document.dump.width = 49 ## document.history @@ -1082,7 +1082,7 @@ ## mime.mailcap.path # Mailcap search path. Colon-separated list of files. Leave as "" to use # MAILCAP environment variable instead. - set mime.mailcap.path = "~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap:/usr/share/mailcap:/usr/share/misc/mailcap" + set mime.mailcap.path = "~/.config/mailcap:/etc/mailcap" ## mime.mailcap.ask [0|1] # Ask before using the handlers defined by mailcap. diff --git a/desktop/.local/share/konsole/Profile 1.profile b/desktop/.local/share/konsole/Profile 1.profile index adfc8cf..28aa3c2 100644 --- a/desktop/.local/share/konsole/Profile 1.profile +++ b/desktop/.local/share/konsole/Profile 1.profile @@ -1,6 +1,6 @@ [Appearance] ColorScheme=nightfox_konsole -Font=Hack,48,-1,5,50,0,0,0,0,0 +Font=Hack Nerd Font Mono,48,-1,5,50,0,0,0,0,0 [Cursor Options] CustomCursorColor=255,255,0 diff --git a/desktop/.local/share/systemd/user/notmuch.service b/desktop/.local/share/systemd/user/notmuch.service new file mode 100644 index 0000000..0a5e0ab --- /dev/null +++ b/desktop/.local/share/systemd/user/notmuch.service @@ -0,0 +1,10 @@ +[Unit] +Description=Mail indexer +Documentation=https://notmuch.readthedocs.io/en/latest/ +StartLimitBurst=2 + +[Service] +ExecStart=/usr/bin/notmuch --config=REPLACE_HOME_USER/.config/notmuch/notmuch-config new +RuntimeMaxSec=3m +Restart=on-failure +Environment="KEYRING_PROPERTY_SCHEME=KeePassXC" diff --git a/desktop/.local/share/systemd/user/notmuch.timer b/desktop/.local/share/systemd/user/notmuch.timer new file mode 100644 index 0000000..4b4258c --- /dev/null +++ b/desktop/.local/share/systemd/user/notmuch.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mail indexer + +[Timer] +OnBootSec=5m +OnUnitActiveSec=15m +AccuracySec=5m + +[Install] +WantedBy=timers.target diff --git a/nightfox_palette/256color.py b/nightfox_palette/256color.py index 327561c..69f9945 100644 --- a/nightfox_palette/256color.py +++ b/nightfox_palette/256color.py @@ -24,3 +24,27 @@ NFOX_FG3 = 67 NFOX_SEL0 = 23 NFOX_SEL1 = 59 + +# Darker +NFOX_BLACK_D = 232 +NFOX_RED_D = 125 +NFOX_GREEN_D = 65 +NFOX_YELLOW_D = 179 +NFOX_BLUE_D = 67 +NFOX_MAGENTA_D = 97 +NFOX_CYAN_D = 37 +NFOX_WHITE_D = 250 +NFOX_ORANGE_D = 173 +NFOX_PINK_D = 133 + +#Lighter +NFOX_BLACK_L = 59 +NFOX_RED_L = 204 +NFOX_GREEN_L = 115 +NFOX_YELLOW_L = 222 +NFOX_BLUE_L = 111 +NFOX_MAGENTA_L = 183 +NFOX_CYAN_L = 123 +NFOX_WHITE_L = 231 +NFOX_ORANGE_L = 222 +NFOX_PINK_L = 219 diff --git a/nightfox_palette/ANSI.py b/nightfox_palette/ANSI.py index fc179ef..9b30228 100644 --- a/nightfox_palette/ANSI.py +++ b/nightfox_palette/ANSI.py @@ -43,6 +43,50 @@ 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" +# Darker +NFOX_BLACK_D_FG = "\033[38;2;19;21;30m" +NFOX_BLACK_D_BG = "\033[48;2;19;21;30m" +NFOX_RED_D_FG = "\033[38;2;163;41;71m" +NFOX_RED_D_BG = "\033[48;2;163;41;71m" +NFOX_GREEN_D_FG = "\033[38;2;91;140;116m" +NFOX_GREEN_D_BG = "\033[48;2;91;140;116m" +NFOX_YELLOW_D_FG = "\033[38;2;181;154;78m" +NFOX_YELLOW_D_BG = "\033[48;2;181;154;78m" +NFOX_BLUE_D_FG = "\033[38;2;75;118;176m" +NFOX_BLUE_D_BG = "\033[48;2;75;118;176m" +NFOX_MAGENTA_D_FG = "\033[38;2;119;83;176m" +NFOX_MAGENTA_D_BG = "\033[48;2;119;83;176m" +NFOX_CYAN_D_FG = "\033[38;2;61;167;169m" +NFOX_CYAN_D_BG = "\033[48;2;61;167;169m" +NFOX_WHITE_D_FG = "\033[38;2;185;185;186m" +NFOX_WHITE_D_BG = "\033[48;2;185;185;186m" +NFOX_ORANGE_D_FG = "\033[38;2;206;124;59m" +NFOX_ORANGE_D_BG = "\033[48;2;206;124;59m" +NFOX_PINK_D_FG = "\033[38;2;176;84;172m" +NFOX_PINK_D_BG = "\033[48;2;176;84;172m" + +#Lighter +NFOX_BLACK_L_FG = "\033[38;2;95;97;106m" +NFOX_BLACK_L_BG = "\033[48;2;95;97;106m" +NFOX_RED_L_FG = "\033[38;2;239;117;147m" +NFOX_RED_L_BG = "\033[48;2;239;117;147m" +NFOX_GREEN_L_FG = "\033[38;2;155;204;180m" +NFOX_GREEN_L_BG = "\033[48;2;155;204;180m" +NFOX_YELLOW_L_FG = "\033[38;2;255;230;154m" +NFOX_YELLOW_L_BG = "\033[48;2;255;230;154m" +NFOX_BLUE_L_FG = "\033[38;2;151;194;252m" +NFOX_BLUE_L_BG = "\033[48;2;151;194;252m" +NFOX_MAGENTA_L_FG = "\033[38;2;234;198;255m" +NFOX_MAGENTA_L_BG = "\033[48;2;234;198;255m" +NFOX_CYAN_L_FG = "\033[38;2;131;249;245m" +NFOX_CYAN_L_BG = "\033[48;2;131;249;245m" +NFOX_WHITE_L_FG = "\033[38;2;255;255;255m" +NFOX_WHITE_L_BG = "\033[48;2;255;255;255m" +NFOX_ORANGE_L_FG = "\033[38;2;255;200;135m" +NFOX_ORANGE_L_BG = "\033[48;2;255;200;135m" +NFOX_PINK_L_FG = "\033[38;2;252;160;248m" +NFOX_PINK_L_BG = "\033[48;2;252;160;248m" + NO_COLOR = "\033[39m\033[49m\033[00m" NO_BG = "\033[49m" NO_FG = "\033[39m" diff --git a/nightfox_palette/lscolors.py b/nightfox_palette/lscolors.py new file mode 100644 index 0000000..dba84be --- /dev/null +++ b/nightfox_palette/lscolors.py @@ -0,0 +1,1104 @@ +objects = { + "lc": "", + "rc": "", # right of sequence + "ec": "\033[39m\033[49m\033[0m", # end color + "cl": "\033[K", # clear to end of line + "rs": "\033[39m\033[49m\033[0m", # reset to ordinary + "mh": "\033[39m\033[49m\033[0m", # disabled by default + "ca": "\033[39m\033[49m\033[0m", # disabled by default + "bd": "🖴 \033[38;2;234;198;255m\033[1m\033[3m", # block device + "cd": " \033[38;2;157;121;214m\033[1m\033[3m", # char device + "di": " \033[38;2;151;194;252m\033[1m\033[3m\033[4m", # dirs + "do": "󰠚 \033[38;2;219;192;116m\033[1m\033[3m", # door + "ex": " \033[38;2;255;200;135m\033[1m", # executable + "fi": "󰡯 \033[38;2;174;175;176m", # file + "ln": "󰌹 \033[38;2;99;205;207m\033[3m\033[4m", # links + "mi": " \033[38;2;201;79;109m\033[3m\033[9m", # missing file + "no": "\033[38;2;174;175;176m", # normal + "or": "󰌺 \033[38;2;201;79;109m\033[3m\033[9m", # orphaned symlink + "ow": "󱇧 \033[38;2;174;175;176m", # other writable + "pi": "󰟥 \033[38;2;219;192;116m\033[1m\033[3m", # pipe + "sg": " \033[38;2;206;124;59m\033[1m", # setgid + "so": "󱄈 \033[38;2;255;230;154m\033[1m\033[3m", # socket + "st": " 󱍥 \033[38;2;113;156;214m\033[1m\033[4m", # sticky + "su": " \033[38;2;244;162;97m\033[1m", # setuid + "tw": " 󱍬 \033[38;2;75;118;176m\033[1m\033[4m\033[3m", # other with sticky +} + +categories = { + "archives": { + "color": " \033[38;2;214;122;210m", + "files": [ + "*.7z", + "*.CramFS", + "*.Z", + "*.ace", + "*.alz", + "*.apfs", + "*.ar", + "*.arc", + "*.arj", + "*.bz", + "*.bz2", + "*.bzip2", + "*.cab", + "*.chm", + "*.cpio", + "*.dmg", + "*.dz", + "*.ear", + "*.ext", + "*.fat", + "*.gpt", + "*.gta", + "*.gtar", + "*.gtz", + "*.gz", + "*.gzip", + "*.hfs", + "*.ihex", + "*.iso", + "*.jar", + "*.lha", + "*.lrz", + "*.lz", + "*.lz4", + "*.lzh", + "*.lzma", + "*.lzo", + "*.lzx", + "*.mbr", + "*.msi", + "*.nsis", + "*.ntfs", + "*.qcow2", + "*.rar", + "*.rz", + "*.sar", + "*.squashfs", + "*.swm", + "*.t7z", + "*.tar", + "*.taz", + "*.tbz", + "*.tbz2", + "*.tlz", + "*.txz", + "*.tz", + "*.tzo", + "*.tzst", + "*.udf", + "*.uefi", + "*.vdi", + "*.vhd", + "*.vhdx", + "*.vmdk", + "*.war", + "*.wim", + "*.xar", + "*.xpi", + "*.xz", + "*.z", + "*.zip", + "*.zoo", + "*.zst", + ] + }, + "audio": { + "color": "󰝚 \033[38;2;155;204;180m", + "files": [ + "*.726", + "*.AMR", + "*.AWB", + "*.QCP", + "*.aa3", + "*.aac", + "*.aal", + "*.ac3", + "*.acn", + "*.adts", + "*.aif", + "*.aifc", + "*.aiff", + "*.amr", + "*.ass", + "*.at3", + "*.atx", + "*.au", + "*.awb", + "*.axa", + "*.csd", + "*.dls", + "*.dts", + "*.dtshd", + "*.ecelp4800", + "*.ecelp7470", + "*.ecelp9600", + "*.enw", + "*.eol", + "*.evb", + "*.evc", + "*.evw", + "*.flac", + "*.gsm", + "*.hmf", + "*.hvd", + "*.hvp", + "*.hvs", + "*.kar", + "*.koz", + "*.l16", + "*.lbc", + "*.loas", + "*.lvp", + "*.ly", + "*.m3u", + "*.m4a", + "*.mhas", + "*.mid", + "*.midi", + "*.mka", + "*.mlp", + "*.mp1", + "*.mp2", + "*.mp3", + "*.mpega", + "*.mpga", + "*.mscx", + "*.mscz", + "*.multitrack", + "*.mus", + "*.musd", + "*.musicxml", + "*.mxl", + "*.mxmf", + "*.oga", + "*.ogg", + "*.omg", + "*.opus", + "*.orc", + "*.osf", + "*.plj", + "*.pls", + "*.psid", + "*.pya", + "*.qcp", + "*.ra", + "*.ram", + "*.rip", + "*.rm", + "*.s1m", + "*.sco", + "*.sd2", + "*.sid", + "*.sly", + "*.smp", + "*.smp3", + "*.smv", + "*.snd", + "*.sofa", + "*.spx", + "*.uva", + "*.uvva", + "*.vbk", + "*.vpm", + "*.wav", + "*.wax", + "*.wma", + "*.xhe", + "*.xspf", + ] + }, + "chemical": { + "color": " \033[38;2;91;140;116m", + "files": [ + "*.alc", + "*.asn", + "*.asn", + "*.aso", + "*.b", + "*.bsd", + "*.c3d", + "*.cac", + "*.cache", + "*.cascii", + "*.cbin", + "*.cdx", + "*.cef", + "*.chm", + "*.cif", + "*.cmdf", + "*.cml", + "*.cpa", + "*.csf", + "*.csm", + "*.csml", + "*.ctab", + "*.ctx", + "*.cub", + "*.cxf", + "*.dx", + "*.emb", + "*.embl", + "*.fch", + "*.fchk", + "*.gal", + "*.gau", + "*.gcg", + "*.gen", + "*.gjc", + "*.gjf", + "*.gpt", + "*.hin", + "*.ist", + "*.istr", + "*.jdx", + "*.kin", + "*.mcif", + "*.mcm", + "*.mif", + "*.mmod", + "*.mol", + "*.moo", + "*.mop", + "*.mopcrt", + "*.mpc", + "*.mvb", + "*.pdb", + "*.prt", + "*.rd", + "*.ros", + "*.rxn", + "*.sd", + "*.sdf", + "*.smi", + "*.spc", + "*.sw", + "*.tgf", + "*.val", + "*.vmd", + "*.vms", + "*.xtel", + "*.xyz", + "*.zmt", + ] + }, + "config": { + "color": " \033[38;2;214;122;210m", + "files": [ + "*.conf", + "*.ini", + "*.ppd", + "*.toml", + "*.yaml", + "*.yml", + "*config", + ] + }, + "database": { + "color": " \033[38;2;234;198;255m", + "files": [ + "*.bdb", + "*.csv", + "*.csvs", + "*.db", + "*.geojson", + "*.json", + "*.json?patch", + "*.jsonld", + "*.jsontd", + "*.jsontm", + "*.mdb", + "*.qgs", + "*.rdf", + "*.rdf?crypt", + "*.rss", + "*.shp", + "*.shx", + "*.sql", + "*.sqlite", + "*.sqlite3", + "*.xml", + ] + }, + "document": { + "color": "󰉺 \033[38;2;255;255;255m", + "files": [ + "*.abw", + "*.ai", + "*.apkg", + "*.book", + "*.cbr", + "*.cbz", + "*.chrt", + "*.doc", + "*.docx", + "*.dotx", + "*.dvi", + "*.eps", + "*.eps2", + "*.eps3", + "*.epsf", + "*.epsi", + "*.epub", + "*.fb", + "*.fbdoc", + "*.flw", + "*.gan", + "*.ggb", + "*.ggs", + "*.ggt", + "*.gnumeric", + "*.karbon", + "*.kfo", + "*.kon", + "*.kpr", + "*.kpt", + "*.mm", + "*.odb", + "*.odc", + "*.odf", + "*.odg", + "*.odi", + "*.odm", + "*.odp", + "*.ods", + "*.odt", + "*.osm", + "*.otc", + "*.otg", + "*.oth", + "*.oti", + "*.otm", + "*.otp", + "*.ots", + "*.ott", + "*.oxt", + "*.pdf", + "*.potm", + "*.potx", + "*.ppam", + "*.pps", + "*.ppsm", + "*.ppsx", + "*.ppt", + "*.pptm", + "*.pptx", + "*.ps", + "*.rtf", + "*.sda", + "*.sdc", + "*.sdd", + "*.sdp", + "*.sds", + "*.sdw", + "*.sgl", + "*.sldx", + "*.sm", + "*.smf", + "*.smzip", + "*.stc", + "*.std", + "*.sti", + "*.stw", + "*.sxc", + "*.sxd", + "*.sxg", + "*.sxi", + "*.sxm", + "*.sxw", + "*.vsd", + "*.vsf", + "*.vss", + "*.vst", + "*.vsw", + "*.wpd", + "*.xhtm", + "*.xhtml", + "*.xla", + "*.xlam", + "*.xlc", + "*.xlm", + "*.xls", + "*.xlsb", + "*.xlsm", + "*.xlsx", + "*.xlt", + "*.xltm", + "*.xltx", + "*.xlw", + "*.xodp", + "*.xods", + "*.xodt", + "*.xotp", + "*.xots", + "*.xott", + "*.xsl", + "*.xslt", + ] + }, + "electronics": { + "color": " \033[38;2;255;230;154m", + "files": [ + "*.brd", + "*.cpa", + "*.csa", + "*.dwm", + "*.kicad_pro", + "*.pro", + "*.sch", + ] + }, + "encryption": { + "color": " \033[38;2;239;117;147m", + "files": [ + "*.ac", + "*.cer", + "*.crl", + "*.crt", + "*.gpg", + "*.kbx", + "*.kdbx", + "*.key", + "*.p10", + "*.p12", + "*.p21", + "*.p7c", + "*.p7m", + "*.p7r", + "*.p7s", + "*.p7z", + "*.p8", + "*.p8e", + "*.pem", + "*.pgp", + "*.pki", + "*.pkipath", + ] + }, + "exec": { + "color": "󱓞 \033[38;2;244;162;97m", + "files": [ + "*.bash", + "*.bat", + "*.bin", + "*.com", + "*.csh", + "*.dll", + "*.exe", + "*.fish", + "*.jnlp", + "*.o", + "*.pyc", + "*.pyo", + "*.sh", + "*.so", + "*.zsh", + ] + }, + "font": { + "color": " \033[38;2;185;185;186m\033[3m", + "files": [ + "*.gsf", + "*.otf", + "*.pfa", + "*.pfb", + "*.ttc", + "*.ttf", + "*.woff", + "*.woff2", + ] + }, + "game": { + "color": " \033[38;2;206;124;59m", + "files": [ + "*.32x", + "*.3ds", + "*.3dz", + "*.Z1", + "*.Z2", + "*.Z3", + "*.Z4", + "*.Z5", + "*.Z6", + "*.Z7", + "*.Z8", + "*.a26", + "*.a52", + "*.a78", + "*.amgp", + "*.atr", + "*.atx", + "*.bas", + "*.cas", + "*.ccd", + "*.cdi", + "*.chd", + "*.cso", + "*.cso", + "*.cue", + "*.esc", + "*.fam", + "*.fds", + "*.gam", + "*.gamin", + "*.gb", + "*.gba", + "*.gbc", + "*.gd", + "*.gdi", + "*.gdnlib", + "*.gdns", + "*.gdscript", + "*.gen", + "*.gg", + "*.godot", + "*.inp", + "*.jcd", + "*.lnx", + "*.mdf", + "*.mds", + "*.n64", + "*.ndd", + "*.nds", + "*.nds", + "*.nes", + "*.nez", + "*.nrg", + "*.obg", + "*.obgx", + "*.pdn", + "*.pgn", + "*.pgn", + "*.ptrom", + "*.rom", + "*.sbi", + "*.sc", + "*.sf7", + "*.sfc", + "*.sg", + "*.sgf", + "*.smc", + "*.smd", + "*.smk", + "*.sms", + "*.srm", + "*.sub", + "*.swc", + "*.tres", + "*.tscn", + "*.v64", + "*.vpk", + "*.wad", + "*.wbfs", + "*.z1", + "*.z2", + "*.z3", + "*.z4", + "*.z5", + "*.z6", + "*.z7", + "*.z8", + ] + }, + "image": { + "color": " \033[38;2;91;140;116m", + "files": [ + "*.J2C", + "*.J2K", + "*.PGB", + "*.apng", + "*.art", + "*.avci", + "*.avcs", + "*.avif", + "*.azv", + "*.b16", + "*.bmp", + "*.btf", + "*.btif", + "*.cdr", + "*.cdt", + "*.cgm", + "*.cpt", + "*.cr2", + "*.crw", + "*.djv", + "*.djvu", + "*.dpx", + "*.drle", + "*.dwg", + "*.dxf", + "*.emf", + "*.erf", + "*.exr", + "*.fbs", + "*.fig", + "*.fit", + "*.fits", + "*.fpx", + "*.fst", + "*.fts", + "*.gif", + "*.hdr", + "*.heic", + "*.heics", + "*.heif", + "*.heifs", + "*.hej2", + "*.hif", + "*.hsj2", + "*.ico", + "*.ief", + "*.j2c", + "*.j2k", + "*.jfif", + "*.jhc", + "*.jls", + "*.jng", + "*.jp2", + "*.jpe", + "*.jpeg", + "*.jpf", + "*.jpg", + "*.jpg2", + "*.jpgm", + "*.jph", + "*.jphc", + "*.jpm", + "*.jpx", + "*.jxl", + "*.jxr", + "*.jxra", + "*.jxrs", + "*.jxs", + "*.jxsc", + "*.jxsi", + "*.jxss", + "*.kra", + "*.ktx", + "*.ktx2", + "*.mdi", + "*.mmr", + "*.nef", + "*.ora", + "*.orf", + "*.pat", + "*.pbm", + "*.pcx", + "*.pgb", + "*.pgm", + "*.png", + "*.pnm", + "*.ppm", + "*.psd", + "*.pti", + "*.ras", + "*.rgb", + "*.rgbe", + "*.rlc", + "*.s1g", + "*.s1j", + "*.s1n", + "*.sgi", + "*.sgif", + "*.sjp", + "*.sjpg", + "*.smil", + "*.sml", + "*.spn", + "*.spng", + "*.svg", + "*.svgz", + "*.tap", + "*.tfx", + "*.tif", + "*.tiff", + "*.uvg", + "*.uvi", + "*.uvvg", + "*.uvvi", + "*.vtf", + "*.wbmp", + "*.webp", + "*.wmf", + "*.xbm", + "*.xcf", + "*.xif", + "*.xpm", + "*.xwd", + "*.xyze", + ] + }, + "mail": { + "color": " \033[38;2;113;131;155m", + "files": [ + "*.art", + "*.eml", + "*.mail", + "*.mbox", + "*.oeb", + "*.sieve", + "*.u8dsn", + "*.u8hdr", + "*.u8mdn", + "*.u8msg", + ] + }, + "model": { + "color": "󰹜 \033[38;2;113;156;214m", + "files": [ + "*.3ds", + "*.3mf", + "*.FCMacro", + "*.FCMat", + "*.FCParam", + "*.FCScript", + "*.FCStd", + "*.amf", + "*.bary", + "*.blend", + "*.brep", + "*.brp", + "*.bsp", + "*.cam", + "*.cld", + "*.cnc", + "*.csg", + "*.dae", + "*.dib", + "*.dor", + "*.dwf", + "*.gcode", + "*.gdl", + "*.glb", + "*.gltf", + "*.gsm", + "*.gtw", + "*.ifc", + "*.ifcJSON", + "*.iges", + "*.igs", + "*.ism", + "*.jt", + "*.lmp", + "*.mesh", + "*.moml", + "*.msh", + "*.msm", + "*.mtl", + "*.mts", + "*.nc", + "*.ncc", + "*.ngc", + "*.obj", + "*.ogex", + "*.poly", + "*.pov", + "*.prc", + "*.pyox", + "*.rsm", + "*.scad", + "*.silo", + "*.step", + "*.stl", + "*.stp", + "*.stpx", + "*.stpxz", + "*.stpz", + "*.tooltable", + "*.u3d", + "*.usda", + "*.usdz", + "*.vds", + "*.vrm", + "*.vrml", + "*.vtu", + "*.win", + "*.wrl", + "*.x3d", + "*.x3db", + "*.x3dv", + "*.x3dvz", + "*.x3dz", + "*.x_b", + "*.x_t", + "*.xmt_bin", + "*.xmt_txt", + ] + }, + "pkg": { + "color": "󰏖 \033[38;2;163;41;71m", + "files": [ + "*.apk", + "*.cpkg", + "*.ddeb", + "*.deb", + "*.dpkg", + "*.ebuild", + "*.eclass", + "*.gpkg", + "*.mpkg", + "*.onepkg", + "*.pkg", + "*.portpkg", + "*.ppkg", + "*.rpm", + "*.xpak", + ] + }, + "science": { + "color": " \033[38;2;75;118;176m", + "files": [ + "*.2bit", + "*.dna", + "*.fa", + "*.mseq", + "*.sce", + "*.scf", + "*.sci", + ] + }, + "temp": { + "color": "󰃢 \033[38;2;115;128;145m", + "files": [ + "*#", + "*.%", + "*.bak", + "*.bk", + "*.dl", + "*.dpkg-dist", + "*.dpkg-old", + "*.old", + "*.orig", + "*.part", + "*.rej", + "*.rpmnew", + "*.rpmorig", + "*.rpmsave", + "*.swp", + "*.tmp", + "*tmp", + "*~", + ] + }, + "text": { + "color": " \033[38;2;129;178;154m", + "files": [ + "*.3dm", + "*.3dml", + "*.CQL", + "*.VFK", + "*.a", + "*.abc", + "*.appcache", + "*.ascii", + "*.bib", + "*.boo", + "*.brf", + "*.brl", + "*.c", + "*.c++", + "*.cc", + "*.ccc", + "*.cls", + "*.cnd", + "*.coffee", + "*.copyright", + "*.cpp", + "*.css", + "*.curl", + "*.cxx", + "*.d", + "*.dart", + "*.diff", + "*.dms", + "*.dot", + "*.dsc", + "*.dxg", + "*.es", + "*.etx", + "*.flt", + "*.flx", + "*.fly", + "*.gcd", + "*.ged", + "*.gff3", + "*.gv", + "*.h", + "*.h++", + "*.hans", + "*.hgl", + "*.hh", + "*.hpp", + "*.hs", + "*.htc", + "*.htm", + "*.html", + "*.hxx", + "*.ics", + "*.ifb", + "*.jad", + "*.java", + "*.js", + "*.jtd", + "*.latex", + "*.lhs", + "*.ltx", + "*.ly", + "*.lyx", + "*.manifest", + "*.markdown", + "*.mc2", + "*.md", + "*.miz", + "*.mjs", + "*.moc", + "*.mpf", + "*.n3", + "*.p", + "*.pas", + "*.patch", + "*.php", + "*.pl", + "*.pm", + "*.pot", + "*.provn", + "*.py", + "*.rb", + "*.roff", + "*.rs", + "*.rst", + "*.scala", + "*.sfv", + "*.sgm", + "*.sgml", + "*.shaclc", + "*.shc", + "*.shex", + "*.shtml", + "*.si", + "*.sl", + "*.soa", + "*.sos", + "*.spdx", + "*.spo", + "*.spot", + "*.srt", + "*.sty", + "*.t", + "*.tag", + "*.tcl", + "*.tex", + "*.text", + "*.tk", + "*.tm", + "*.tr", + "*.ts", + "*.tsv", + "*.ttl", + "*.txt", + "*.uri", + "*.uris", + "*.vcard", + "*.vcf", + "*.vcs", + "*.vtt", + "*.wgsl", + "*.wml", + "*.wmls", + "*.zone", + "*README", + ] + }, + "video": { + "color": " \033[38;2;119;83;176m", + "files": [ + "*.asf", + "*.avi", + "*.axv", + "*.dif", + "*.dv", + "*.dvb", + "*.flc", + "*.fli", + "*.flv", + "*.fvt", + "*.gl", + "*.lsf", + "*.lsx", + "*.m1v", + "*.m2v", + "*.m4s", + "*.m4u", + "*.m4v", + "*.mj2", + "*.mjp2", + "*.mjpeg", + "*.mjpg", + "*.mkv", + "*.mng", + "*.mov", + "*.movie", + "*.mp4", + "*.mp4v", + "*.mpe", + "*.mpeg", + "*.mpg", + "*.mpg4", + "*.mpv", + "*.mxu", + "*.nim", + "*.nuv", + "*.ogm", + "*.ogv", + "*.ogx", + "*.pyv", + "*.qt", + "*.rmvb", + "*.s11", + "*.s14", + "*.s1q", + "*.scs", + "*.smo", + "*.smov", + "*.smpg", + "*.ssw", + "*.sswf", + "*.ucf", + "*.ucf-dist", + "*.ucf-new", + "*.ucf-old", + "*.uvh", + "*.uvm", + "*.uvp", + "*.uvs", + "*.uvu", + "*.uvv", + "*.uvvh", + "*.uvvm", + "*.uvvp", + "*.uvvs", + "*.uvvu", + "*.uvvv", + "*.viv", + "*.vob", + "*.webm", + "*.wm", + "*.wmv", + "*.wmx", + "*.wvx", + "*.yt", + "*.yuv", + ] + }, +} + +ls_colors = ":".join(f"{obj}={objects[obj]}" for obj in objects) +for category in categories.values(): + cat_txt = ":".join( + f"{ext}={category['color']}" for ext in category["files"] + ) + ls_colors += ":" + cat_txt + +print(ls_colors) diff --git a/templates/.config/neomutt/accounts.conf b/templates/.config/neomutt/accounts.conf deleted file mode 100644 index fe21ca5..0000000 --- a/templates/.config/neomutt/accounts.conf +++ /dev/null @@ -1,4 +0,0 @@ -source ~/.config/neomutt/accounts/template1@example.com/conf - -macro index,pager 'unmailboxes *source ~/.config/neomutt/accounts/template1@example.com/conf' -macro index,pager 'unmailboxes *source ~/.config/neomutt/accounts/template2@example.com/conf' diff --git a/templates/.config/neomutt/accounts/template1@example.com/conf b/templates/.config/neomutt/accounts/template1@example.com/conf index 7e52b23..35e3bee 100644 --- a/templates/.config/neomutt/accounts/template1@example.com/conf +++ b/templates/.config/neomutt/accounts/template1@example.com/conf @@ -1,19 +1,7 @@ set my_account_home = '~/.config/neomutt/accounts/template1@example.com' set from = "template1@example.com" set realname = "Mr Template Example" -set imap_pass = "`keyring get 'mail:template1@example.com' 'template1@example.com'`" -set imap_user = "$from" -set smtp_url = "smtp://$imap_user@smtp.example.com:587/" -set smtp_pass = "$imap_pass" -set folder = "imap://imap.example.com" -set spoolfile = "=INBOX" -set postponed = "=Drafts" -set record = "=Sent" -set trash = "=Trash" +set smtp_pass = "`keyring get 'mail:template1@example.com' 'template1@example.com'`" +set smtp_user = "$from" +set smtp_url = "smtp://$smtp_user@smtp.example.com:587/" set signature = $my_account_home/signature.txt -set imap_check_subscribed -set ssl_starttls=yes -set ssl_force_tls=yes -unset imap_passive -set mail_check=400 -set timeout=60 diff --git a/update-homes-secrets-example.fish b/update-homes-secrets-example.fish index 16ea196..c13ee7f 100755 --- a/update-homes-secrets-example.fish +++ b/update-homes-secrets-example.fish @@ -55,5 +55,20 @@ function update-homes-secrets -d "Update secrets for configuration of homes" sed -i "s/FRESHRSSLOGIN/example_user/g" ~/.config/newsboat/config sed -i "s/FRESHRSSKEEPASSXC/rss:freshrss.example.com/g" ~/.config/newsboat/config sed -i "s/FRESHRSSURL/https:\/\/freshrss.example.com\/api\/greader.php/g" ~/.config/newsboat/config + + + echo + echo + echo (set_color 719cd6)"*** Set notmuch ***"(set_color normal) + echo + sed -i "s:REPLACE_HOME_USER:$HOME:g" ~/.local/share/systemd/user/notmuch.service + + echo + echo + echo (set_color 719cd6)"*** Set git ***"(set_color normal) + echo + sed -i "s/REPLACEUSER/example (@$(hostname))/g" ~/.config/git/config + sed -i "s/REPLACEMAIL/test@example.com/g" ~/.config/git/config + sed -i "s/REPLACEKEY/HEX/g" ~/.config/git/config end end