diff --git a/dot_config/kitty/kitty.conf.tmpl b/dot_config/kitty/kitty.conf.tmpl index 2b88c56..563778e 100644 --- a/dot_config/kitty/kitty.conf.tmpl +++ b/dot_config/kitty/kitty.conf.tmpl @@ -1,5 +1,5 @@ -font_family BrutalistMono Nerd Font Regular -bold_font BrutalistMono Nerd Font Regular +font_family BrutalistMono Nerd Font +# bold_font auto # italic_font auto # bold_italic_font auto font_size {{ .fontsize }} @@ -624,6 +624,5 @@ macos_custom_beam_cursor yes # BEGIN_KITTY_THEME -# Catppuccin-Mocha -include current-theme.conf +include Nord.conf # END_KITTY_THEME diff --git a/dot_config/nvim/lua/plugins/colorscheme.lua.tmpl b/dot_config/nvim/lua/plugins/colorscheme.lua.tmpl index ca92eb3..2d15975 100644 --- a/dot_config/nvim/lua/plugins/colorscheme.lua.tmpl +++ b/dot_config/nvim/lua/plugins/colorscheme.lua.tmpl @@ -1,20 +1,38 @@ return { - -- gruvbox - { - "ellisonleao/gruvbox.nvim", - opts = { contrast = "hard" }, - }, - + -- gruvbox + { + "ellisonleao/gruvbox.nvim", + opts = { contrast = "hard" }, + }, {{- if eq .chezmoi.os "openbsd" }} - -- kanagawa - { - "rebelot/kanagawa.nvim", - lazy = false, -- make sure we load this during startup if it is your main colorscheme - priority = 1000, -- make sure to load this before all the other start plugins + { + "gbprod/nord.nvim", + lazy = false, + priority = 1000, + opts = { + styles = { + comments = { italic = true }, + keywords = { bold = true }, + functions = { bold = true }, + variables = {}, + }, + }, config = function() - vim.cmd([[colorscheme kanagawa]]) + vim.cmd([[colorscheme nord]]) end, - }, + }, + + { + "folke/tokyonight.nvim", + opts = {}, + }, + + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + + -- kanagawa + { + "rebelot/kanagawa.nvim", + }, {{- else }} -- kanagawa { diff --git a/dot_config/nvim/lua/plugins/ui.lua.tmpl b/dot_config/nvim/lua/plugins/ui.lua.tmpl index b1d11e5..6d17f1f 100644 --- a/dot_config/nvim/lua/plugins/ui.lua.tmpl +++ b/dot_config/nvim/lua/plugins/ui.lua.tmpl @@ -458,7 +458,11 @@ return { key = "g", }, { +{{- if eq .chezmoi.os "openbsd" }} + action = [[lua require("telescope.builtin").find_files({ cwd = vim.fn.stdpath("config") })]], +{{- else }} action = [[lua require("lazyvim.util").telescope.config_files()()]], +{{- end }} desc = " Config", icon = " ", key = "c", diff --git a/dot_config/openbox/menu.xml b/dot_config/openbox/menu.xml index 6c4327c..7b572f4 100644 --- a/dot_config/openbox/menu.xml +++ b/dot_config/openbox/menu.xml @@ -2,7 +2,7 @@ - kitty + st gvim @@ -22,6 +22,9 @@ obconf + + tint2conf + system-config-printer diff --git a/dot_config/openbox/rc.xml b/dot_config/openbox/rc.xml index 09a200b..5f74013 100644 --- a/dot_config/openbox/rc.xml +++ b/dot_config/openbox/rc.xml @@ -42,7 +42,7 @@ Copy the file to $HOME/.config/openbox/ instead. --> 'Active' - where the active window is --> - Natura + Nordic-OpenBox NLIMC S: shade (roll up/down) D: omnipresent (on all desktops). --> - yes + no no DejaVu Sans Mono - 10 + 12 Normal @@ -67,7 +67,7 @@ Copy the file to $HOME/.config/openbox/ instead. --> DejaVu Sans Mono - 10 + 12 Normal @@ -76,7 +76,7 @@ Copy the file to $HOME/.config/openbox/ instead. --> DejaVu Sans Mono - 10 + 14 Normal @@ -85,7 +85,7 @@ Copy the file to $HOME/.config/openbox/ instead. --> DejaVu Sans Mono - 10 + 14 Normal @@ -94,7 +94,7 @@ Copy the file to $HOME/.config/openbox/ instead. --> DejaVu Sans Mono - 10 + 14 Normal @@ -103,7 +103,7 @@ Copy the file to $HOME/.config/openbox/ instead. --> DejaVu Sans Mono - 10 + 14 Normal @@ -112,22 +112,13 @@ Copy the file to $HOME/.config/openbox/ instead. --> - - 5 + 4 1 - terminal - editor - browser - viewer - other + 1 + 2 + 3 + 4 500 0 - TopRight + Right 0 0 @@ -218,11 +209,6 @@ Copy the file to $HOME/.config/openbox/ instead. --> 4 - - - 5 - - 1 @@ -243,11 +229,6 @@ Copy the file to $HOME/.config/openbox/ instead. --> 4 - - - 5 - - @@ -295,19 +276,11 @@ Copy the file to $HOME/.config/openbox/ instead. --> - - true - Run command - - fuzzy_win fzf_cmd + rofi -show drun - - true - Terminal - kitty @@ -316,9 +289,14 @@ Copy the file to $HOME/.config/openbox/ instead. --> slock - + - monitor_cmd + rofi -show window + + + + + rofi -show ssh diff --git a/dot_mutt/accounts/fau b/dot_mutt/accounts/fau new file mode 100644 index 0000000..ffee3c6 --- /dev/null +++ b/dot_mutt/accounts/fau @@ -0,0 +1,24 @@ +# Account Settings ----------------------------------- +set spoolfile = "+fau/INBOX" +set record = "+fau/Sent Items" +set postponed = "+fau/Drafts" + +set from = "jan.eitzinger@fau.de" +set envelope_from_address="jan.eitzinger@fau.de" +set realname = "Jan Eitzinger" +set signature = ~/.mutt/sigwork +my_hdr Reply-To: jan.eitzinger@fau.de + +# Go to folder... +macro index,pager gi "+fau/INBOX" "open inbox" +macro index,pager ga "+fau/Archive" "open archive" +macro index,pager gd "+fau/Drafts" "open drafts" +macro index,pager gs "+fau/Sent Items" "open sent" +macro index,pager gt "+fau/Deleted Items" "open trash" + +# send mail +set sendmail = "msmtp -a fau" + +# Sync email +macro index O "offlineimap" "run offlineimap to sync all mail" +macro index o "offlineimap -qf INBOX" "run offlineimap to sync inbox" diff --git a/dot_mutt/accounts/moebius b/dot_mutt/accounts/moebius new file mode 100644 index 0000000..d573e7a --- /dev/null +++ b/dot_mutt/accounts/moebius @@ -0,0 +1,28 @@ +# Account Settings ----------------------------------- +set spoolfile = "+moebius/INBOX" +set mbox = "+moebius/archive" +set record = "+moebius/sent" +set trash = "+moebius/trash" +set postponed = "+moebius/drafts" + +set from = "jan@moebiusband.org" +set envelope_from_address="jan@moebiusband.org" +set realname = "Jan Eitzinger" +set signature = ~/.mutt/sig +my_hdr Reply-To: jan@moebiusband.org + +# Go to folder... +macro index,pager gi "+moebius/INBOX" "open inbox" +macro index,pager ga "+moebius/archive" "open drafts" +macro index,pager gd "+moebius/drafts" "open drafts" +macro index,pager gs "+moebius/sent" "open sent" +macro index,pager gt "+moebius/trash" "open trash" + +macro index,pager si "+moebius/INBOX" "move message to inbox" +macro index,pager sa "+moebius/archive" "move message to archive" + +# send mail +set sendmail = "msmtp -a moebius" + +# Sync email +macro index o "mbsync moebius" "run mbsync to sync inbox" diff --git a/dot_mutt/aliases.muttrc b/dot_mutt/aliases.muttrc new file mode 100644 index 0000000..44cdc4a --- /dev/null +++ b/dot_mutt/aliases.muttrc @@ -0,0 +1,8 @@ +alias hpc-admin michael.meier@fau.de, thomas.zeiser@fau.de, katrin.nusser@fau.de, georg.hager@fau.de +alias hpc-core gerhard.wellein@fau.de, thomas.zeiser@fau.de, georg.hager@fau.de +alias nhr-app gerhard.wellein@fau.de, thomas.zeiser@fau.de, georg.hager@fau.de, heinrich.sticht@fau.de, rainer.boeckmann@fau.de, harald.lanig@fau.de, bernd.meyer@fau.de, tim.clark@fau.de, erik.bitzek@fau.de, wolfgang.hieringer@fau.de, andreas.goerling@fau.de +alias nhr-pi gerhard.wellein@fau.de, ulrich.ruede@fau.de, petra.imhof@fu-berlin.de, heinrich.sticht@fau.de, rainer.boeckmann@fau.de, erik.bitzek@fau.de, andreas.goerling@fau.de +alias prope dfg-prope@lists.fau.de +alias wpmvp-pc corinne.ancourt@mines-paristech.fr, james.brodman@intel.com, pablo.oliveira@prism.uvsq.fr, maratek@gmail.com, daniel.etiemble@lri.fr, franzf@andrew.cmu.edu, hack@cs.uni-saarland.de, gabriele.keller@unsw.edu.au, p.kelly@imperial.ac.uk, michael.klemm@intel.com, jmoreira@us.ibm.com, angela.pohl@tu-berlin.de, peng.wu.personal@gmail.com +alias clustercockpit siavash.ghiasvand@tu-dresden.de, robert.schoene@tu-dresden.de, daniel.hackenberg@tu-dresden.de +alias steuer s.weidner@steuerkanzlei-weber.de, olaf.weber@steuerkanzlei-weber.de diff --git a/dot_mutt/colors-gruvbox-extended.muttrc b/dot_mutt/colors-gruvbox-extended.muttrc new file mode 100644 index 0000000..fb3eb1e --- /dev/null +++ b/dot_mutt/colors-gruvbox-extended.muttrc @@ -0,0 +1 @@ +color sidebar_unread color108 color234 diff --git a/dot_mutt/colors-gruvbox.muttrc b/dot_mutt/colors-gruvbox.muttrc new file mode 100644 index 0000000..c283d0f --- /dev/null +++ b/dot_mutt/colors-gruvbox.muttrc @@ -0,0 +1,121 @@ +# gruvbox dark (contrast dark): + +# bg0 = 234 +# bg1 = 237 +# bg2 = 239 +# bg3 = 241 +# bg4 = 243 +# +# gray = 245 +# +# fg0 = 229 +# fg1 = 223 +# fg2 = 250 +# fg3 = 248 +# fg4 = 246 +# +# red = 167 +# green = 142 +# yellow = 214 +# blue = 109 +# purple = 175 +# aqua = 108 +# orange = 208 + + +# See http://www.mutt.org/doc/manual/#color + +color attachment color109 color234 +color bold color229 color234 +color error color167 color234 +color hdrdefault color246 color234 +color indicator color223 color237 +color markers color243 color234 +color normal color223 color234 +color quoted color250 color234 +color quoted1 color108 color234 +color quoted2 color250 color234 +color quoted3 color108 color234 +color quoted4 color250 color234 +color quoted5 color108 color234 +color search color234 color208 +color signature color108 color234 +color status color234 color250 +color tilde color243 color234 +color tree color142 color234 +color underline color223 color239 + +color sidebar_divider color250 color234 +color sidebar_new color142 color234 + +color index color142 color234 ~N +color index color108 color234 ~O +color index color109 color234 ~P +color index color214 color234 ~F +color index color175 color234 ~Q +color index color167 color234 ~= +color index color234 color223 ~T +color index color234 color167 ~D + +color header color214 color234 "^(To:|From:)" +color header color142 color234 "^Subject:" +color header color108 color234 "^X-Spam-Status:" +color header color108 color234 "^Received:" + +# Regex magic for URLs and hostnames +# +# Attention: BSD's regex has RE_DUP_MAX set to 255. +# +# Examples: +# http://some-service.example.com +# example.com +# a.example.com +# some-service.example.com +# example.com/ +# example.com/datenschutz +# file:///tmp/foo +# +# Non-examples: +# 1.1.1900 +# 14.02.2022/24:00 +# 23.59 +# w.l.o.g +# team.its +color body color142 color234 "[a-z]{3,255}://[[:graph:]]*" +color body color142 color234 "([-[:alnum:]]+\\.)+([0-9]{1,3}|[-[:alpha:]]+)/[[:graph:]]*" +color body color142 color234 "([-[:alnum:]]+\\.){2,255}[-[:alpha:]]{2,10}" + +# IPv4 and IPv6 stolen from https://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses +color body color142 color234 "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])" +color body color142 color234 "(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))" + +# Mail addresses and mailto URLs +color body color208 color234 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" +color body color208 color234 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" + +# some simleys and stuff +color body color234 color214 "[;:]-*[)>(7d" # older than 7 days +color index color245 default "~d >20d" # older than 20 days +color index color240 default "~d >30d" # older than 30 days +color index color238 default "~d >90d" # older than 90 days + +color body brightyellow default (https?|ftp)://[\-\.+,/%~_:?&=\#a-zA-Z0-9]+ +color body brightgreen default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ +color attachment magenta default # attachments +color signature brightwhite default # sigs +color search brightred black # highlight results + +color indicator brightyellow default # currently highlighted message +color error red default # error messages +color status black cyan # status line +color tree brightblack default # thread tree +color tilde cyan default # blank line padding + +color hdrdefault black cyan # default headers +color header brightwhite cyan "^From:" +color header brightwhite cyan "^Subject:" + +color quoted cyan default # quote colours +color quoted1 brightcyan default +color quoted2 blue default +color quoted3 green default +color quoted4 yellow default +color quoted5 red default + +color body green default "^gpg: Good signature from" +color body brightred default "^gpg: Bad signature from" +color body brightred default "^gpg: BAD signature from" +color body brightred default "^gpg: Note: This key has expired!" +color body brightyellow default "^gpg: WARNING: This key is not certified with a trusted signature!" +color body brightyellow default "^gpg: There is no indication that the signature belongs to the owner." +color body brightyellow default "^gpg: can't handle these multiple signatures" +color body brightyellow default "^gpg: signature verification suppressed" +color body brightyellow default "^gpg: invalid node with packet of type" diff --git a/dot_mutt/gruvbox-dark.muttrc b/dot_mutt/gruvbox-dark.muttrc new file mode 100644 index 0000000..348b491 --- /dev/null +++ b/dot_mutt/gruvbox-dark.muttrc @@ -0,0 +1,104 @@ + +# Mutt template by Robert Timm (https://github.com/rti) +# Base16 scheme and Base16 Builder by Chris Kempson (https://github.com/chriskempson) +# +# ----------------------------------------------------------------------------- +# MESSAGE MATCH PATTERNS +# ----------------------------------------------------------------------------- +# ~A all messages +# ~b EXPR messages which contain EXPR in the message body +# ~B EXPR messages which contain EXPR in the whole message +# ~c USER messages carbon-copied to USER +# ~C EXPR message is either to: or cc: EXPR +# ~D deleted messages +# ~d [MIN]-[MAX] messages with ``date-sent'' in a Date range +# ~E expired messages +# ~e EXPR message which contains EXPR in the ``Sender'' field +# ~F flagged messages +# ~f USER messages originating from USER +# ~g PGP signed messages +# ~G PGP encrypted messages +# ~h EXPR messages which contain EXPR in the message header +# ~k message contains PGP key material +# ~i ID message which match ID in the ``Message-ID'' field +# ~L EXPR message is either originated or received by EXPR +# ~l message is addressed to a known mailing list +# ~m [MIN]-[MAX] message in the range MIN to MAX *) +# ~n [MIN]-[MAX] messages with a score in the range MIN to MAX *) +# ~N new messages +# ~O old messages +# ~p message is addressed to you (consults $alternates) +# ~P message is from you (consults $alternates) +# ~Q messages which have been replied to +# ~R read messages +# ~r [MIN]-[MAX] messages with ``date-received'' in a Date range +# ~S superseded messages +# ~s SUBJECT messages having SUBJECT in the ``Subject'' field. +# ~T tagged messages +# ~t USER messages addressed to USER +# ~U unread messages +# ~v message is part of a collapsed thread. +# ~x EXPR messages which contain EXPR in the `References' field +# ~y EXPR messages which contain EXPR in the `X-Label' field +# ~z [MIN]-[MAX] messages with a size in the range MIN to MAX *) +# ~= duplicated messages (see $duplicate_threads) + +# basic colors --------------------------------------------------------- +# name foreground background pattern +color normal color15 color0 +color error color9 color0 +color tilde color15 color0 +color message color15 color0 +color markers color9 color0 +color attachment color12 color0 +color search color2 color0 +color status color15 color4 +color indicator color0 color15 +color tree color1 color0 # arrow in threads + +color index color8 color0 "~A" # all messages +color index color1 color0 "~F" # flagged messages +color index color15 color0 "~v~(!~N)" # collapsed thread with no unread +# color index color8 color0 "~U" # unread messages +color index color15 color0 "~N" # unread messages +color index color4 color0 "~v~(~N)" # collapsed thread with some unread +color index color1 color0 "~v~(~F)" # collapsed thread with some flagged +color index color9 color0 "~D" # deleted messages +color index_date color6 color0 +color index_flags color1 color0 "~A" +color index_author color3 color0 "~A" + +# header +color hdrdefault color8 color0 +color header color7 color0 "^" +color header color4 color0 "^Date" +color header color3 color0 "^From" +color header color2 color0 "^To" +color header color9 color0 "^Subject" + +# body +color normal color15 color0 +color underline color15 color0 +color bold color15 color0 +color signature color248 color0 + +color quoted color250 color0 +color quoted1 color248 color0 +color quoted2 color246 color0 +color quoted3 color246 color0 +color quoted4 color246 color0 + +# pgp +color body color2 color15 "(Good signature)" +color body color2 color15 "^gpg: Good signature .*" +color body color20 color15 "^gpg: " +color body color1 color15 "(BAD signature)" +color body color1 color1 "^gpg: BAD signature from.*" + +# body url +color body color1 color0 "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" +# body email +color body color3 color0 "((@(([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]\\])" + + +# vim: filetype=muttrc diff --git a/dot_mutt/gruvbox-light.muttrc b/dot_mutt/gruvbox-light.muttrc new file mode 100644 index 0000000..0602934 --- /dev/null +++ b/dot_mutt/gruvbox-light.muttrc @@ -0,0 +1,98 @@ + +# Mutt template by Robert Timm (https://github.com/rti) +# Base16 scheme and Base16 Builder by Chris Kempson (https://github.com/chriskempson) +# +# ----------------------------------------------------------------------------- +# MESSAGE MATCH PATTERNS +# ----------------------------------------------------------------------------- +# ~A all messages +# ~b EXPR messages which contain EXPR in the message body +# ~B EXPR messages which contain EXPR in the whole message +# ~c USER messages carbon-copied to USER +# ~C EXPR message is either to: or cc: EXPR +# ~D deleted messages +# ~d [MIN]-[MAX] messages with ``date-sent'' in a Date range +# ~E expired messages +# ~e EXPR message which contains EXPR in the ``Sender'' field +# ~F flagged messages +# ~f USER messages originating from USER +# ~g PGP signed messages +# ~G PGP encrypted messages +# ~h EXPR messages which contain EXPR in the message header +# ~k message contains PGP key material +# ~i ID message which match ID in the ``Message-ID'' field +# ~L EXPR message is either originated or received by EXPR +# ~l message is addressed to a known mailing list +# ~m [MIN]-[MAX] message in the range MIN to MAX *) +# ~n [MIN]-[MAX] messages with a score in the range MIN to MAX *) +# ~N new messages +# ~O old messages +# ~p message is addressed to you (consults $alternates) +# ~P message is from you (consults $alternates) +# ~Q messages which have been replied to +# ~R read messages +# ~r [MIN]-[MAX] messages with ``date-received'' in a Date range +# ~S superseded messages +# ~s SUBJECT messages having SUBJECT in the ``Subject'' field. +# ~T tagged messages +# ~t USER messages addressed to USER +# ~U unread messages +# ~v message is part of a collapsed thread. +# ~x EXPR messages which contain EXPR in the `References' field +# ~y EXPR messages which contain EXPR in the `X-Label' field +# ~z [MIN]-[MAX] messages with a size in the range MIN to MAX *) +# ~= duplicated messages (see $duplicate_threads) + +# basic colors --------------------------------------------------------- +# name foreground background pattern +color normal color15 color0 +color error color1 color0 +color tilde color15 color0 +color message color15 color0 +color markers color1 color0 +color attachment color20 color0 +color search color2 color0 +color status color237 color223 +color indicator color239 color250 +color tree color166 color0 # arrow in threads + +color index color15 color0 "~A" # all messages +color index color1 color0 "~F" # flagged messages +color index color15 color0 "~v~(!~N)" # collapsed thread with no unread +color index color4 color0 "~U" # unread messages +color index color4 color0 "~v~(~N)" # collapsed thread with some unread +color index color1 color0 "~v~(~F)" # collapsed thread with some flagged +color index color15 color1 "~D" # deleted messages + +# header +color hdrdefault color239 color228 +color header color6 color228 "^" +color header color1 color228 "^(From)" +color header color4 color228 "^(Subject)" + +# body +color normal color15 color0 +color underline color15 color0 +color bold color15 color0 +color signature color6 color0 + +color quoted color237 color223 +color quoted1 color239 color250 +color quoted2 color241 color248 +color quoted3 color243 color246 +color quoted4 color4 color248 + +# pgp +color body color2 color15 "(Good signature)" +color body color2 color15 "^gpg: Good signature .*" +color body color20 color15 "^gpg: " +color body color1 color15 "(BAD signature)" +color body color1 color1 "^gpg: BAD signature from.*" + +# body url +color body color4 color0 "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" +# body email +color body color4 color0 "((@(([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]\\])" + + +# vim: filetype=muttrc diff --git a/dot_mutt/mailboxes b/dot_mutt/mailboxes new file mode 100644 index 0000000..8c69544 --- /dev/null +++ b/dot_mutt/mailboxes @@ -0,0 +1 @@ +mailboxes "+/Archive" "+/Calendar.NHR@FAU Events" "+/ClusterCockpit" "+/ClusterCockpit.EE-HPC" "+/ClusterCockpit.JobApplications" "+/ClusterCockpit.Workshop" "+/Conference" "+/Cooperation" "+/Deleted Items" "+/Drafts" "+/Forums" "+/INBOX" "+/Junk E-Mail" "+/Likwid" "+/NHR" "+/Orga" "+/Privat" "+/ProPE" "+/Publication" "+/Research" "+/Review" "+/Sent Items" "+/Server" "+/Startup" "+/Support" "+/Sync Issues.Conflicts" "+/Sync Issues.Local Failures" "+/Sync Issues.Server Failures" "+/Teaching" "+/Teaching.MuCoSim" "+/Teaching.PAMPI" "+/Teaching.campo" "+/Tutorials" diff --git a/dot_mutt/mailcap b/dot_mutt/mailcap new file mode 100644 index 0000000..5959ff2 --- /dev/null +++ b/dot_mutt/mailcap @@ -0,0 +1,18 @@ +# MS Word documents +application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app' + +# Images +image/jpg; ~/.mutt/view_attachment.sh %s jpg +image/jpeg; ~/.mutt/view_attachment.sh %s jpg +image/pjpeg; ~/.mutt/view_attachment.sh %s jpg +image/png; ~/.mutt/view_attachment.sh %s png +image/gif; ~/.mutt/view_attachment.sh %s gif + +# PDFs +application/pdf; ~/.mutt/view_attachment.sh %s pdf + +# HTML +text/html; w3m -I %{charset} -T text/html; copiousoutput; + +# Unidentified files +application/octet-stream; ~/.mutt/view_attachment.sh %s "-" diff --git a/dot_mutt/sig b/dot_mutt/sig new file mode 100644 index 0000000..23e076c --- /dev/null +++ b/dot_mutt/sig @@ -0,0 +1,6 @@ +Jan Eitzinger +Am Anger 17 +91369 Wiesenthau + +Fon 0151-44339282 +Mail jan@moebiusband.org diff --git a/dot_mutt/sigwork b/dot_mutt/sigwork new file mode 100644 index 0000000..6db771f --- /dev/null +++ b/dot_mutt/sigwork @@ -0,0 +1,7 @@ +Dr.-Ing. Jan Eitzinger, HPC Services +Friedrich-Alexander-Universitaet Erlangen-Nuernberg +Regionales RechenZentrum Erlangen (RRZE) +Martensstrasse 1, 91058 Erlangen, Germany +Tel. +49 9131 85-28911, Fax +49 9131 302941 +mailto:jan.eitzinger@fau.de +http://www.hpc.fau.de diff --git a/dot_mutt/view_attachment.sh b/dot_mutt/view_attachment.sh new file mode 100755 index 0000000..997954d --- /dev/null +++ b/dot_mutt/view_attachment.sh @@ -0,0 +1,84 @@ +#!/bin/bash +# +# Author: Eric Gebhart +# +# Purpose: To be called by mutt as indicated by .mailcap to handle mail attachments. +# +# Function: Copy the given file to a temporary directory so mutt +# Won't delete it before it is read by the application. +# +# Along the way, discern the file type or use the type +# That is given. +# +# Finally use 'open' or 'open -a' if the third argument is +# given. +# +# +# Arguments: +# +# $1 is the file +# $2 is the type - for those times when file magic isn't enough. +# I frequently get html mail that has no extension +# and file can't figure out what it is. +# +# Set to '-' if you don't want the type to be discerned. +# Many applications can sniff out the type on their own. +# And they do a better job of it too. +# +# Open Office and MS Office for example. +# +# $3 is open with. as in open -a 'open with this .app' foo.xls +# +# Examples: These are typical .mailcap entries which use this program. +# +# Image/JPEG; /Users/vdanen/.mutt/view_attachment %s +# Image/PNG; /Users/vdanen/.mutt/view_attachment %s +# Image/GIF; /Users/vdanen/.mutt/view_attachment %s +# +# Application/PDF; /Users/vdanen/.mutt/view_attachment %s +# +# #This HTML example passes the type because file doesn't always work and +# #there aren't always extensions. +# +# text/html; /Users/vdanen/.mutt/view_attachment %s html +# +# # If your Start OpenOffice.org.app is spelled with a space like this one, <-- +# # then you'll need to precede the space with a \ . I found that too painful +# # and renamed it with an _. +# +# Application/vnd.ms-excel; /Users/vdanen/.mutt/view_attachment %s "-" '/Applications/OpenOffice.org1.1.2/Start_OpenOffice.org.app' +# Application/msword; /Users/vdanen/.mutt/view_attachment %s "-" '/Applications/OpenOffice.org1.1.2/Start_OpenOffice.org.app' +# +# +# Debugging: If you have problems set debug to 'yes'. That will cause a debug file +# be written to /tmp/mutt_attach/debug so you can see what is going on. +# +# See Also: The man pages for open, file, basename +# + +# the tmp directory to use. +tmpdir="$HOME/.tmp/mutt_attach" + +# the name of the debug file if debugging is turned on. +debug_file=$tmpdir/debug + +# debug. yes or no. +#debug="no" +debug="yes" + +type=$2 +open_with=$3 + +# make sure the tmpdir exists. +mkdir -p $tmpdir + +# clean it out. Remove this if you want the directory +# to accumulate attachment files. +rm -f $tmpdir/* + +# Mutt puts everything in /tmp by default. +# This gets the basic filename from the full pathname. +filename=`basename $1` + +# get rid of the extenson and save the name for later. +file=`echo $filename | cut -d"." -f1` diff --git a/dot_muttrc b/dot_muttrc index 4042485..ee7250f 100644 --- a/dot_muttrc +++ b/dot_muttrc @@ -1,5 +1,4 @@ -source ~/.mutt/colors-gruvbox.muttrc -source ~/.mutt/colors-gruvbox-extended.muttrc +source ~/.mutt/colors-nord.muttrc # Paths ---------------------------------------------- set folder = ~/.mail # mailbox location diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl index e3d6735..2527587 100644 --- a/dot_tmux.conf.tmpl +++ b/dot_tmux.conf.tmpl @@ -41,7 +41,6 @@ set -g default-command {{ .shell }} set -g default-shell {{ .shell }} set-option -g status-position top -set -g @catppuccin_flavour "mocha" set -g @catppuccin_window_left_separator "" set -g @catppuccin_window_right_separator " " set -g @catppuccin_window_middle_separator " █" @@ -60,15 +59,26 @@ set -g @catppuccin_status_right_separator_inverse "no" set -g @catppuccin_status_fill "icon" set -g @catppuccin_status_connect_separator "no" +# Gruvbox +# set -g @catppuccin_host_color "#458588" +# set -g @catppuccin_user_color "#d79921" +# set -g @catppuccin_date_time_color "#689d6a" +# set -g @catppuccin_session_color "#d65d0e" + +# Nord +set -g @catppuccin_host_color "#81A1C1" +set -g @catppuccin_user_color "#81A1C1" +set -g @catppuccin_date_time_color "#81A1C1" +set -g @catppuccin_session_color "#81A1C1" +set -g @catppuccin_window_default_color "#4C566A" +set -g @catppuccin_window_current_color "#5E81AC" +set -g @catppuccin_status_background "#434C5E" + set -g @catppuccin_host_text "#{host_short}" -set -g @catppuccin_host_color "#458588" set -g @catppuccin_host_icon " " -set -g @catppuccin_user_color "#d79921" set -g @catppuccin_user_icon " " set -g @catppuccin_date_time_text "%H:%M" -set -g @catppuccin_date_time_color "#689d6a" set -g @catppuccin_date_time_icon " " -set -g @catppuccin_session_color "#d65d0e" set -g @catppuccin_session_icon " " # List of plugins diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index c279f2a..786d4e1 100644 --- a/dot_vimrc.tmpl +++ b/dot_vimrc.tmpl @@ -286,20 +286,21 @@ let g:rust_recommended_style = 1 "######################### " Theme / Interface "######################### -let g:lightline = {'colorscheme': 'powerline'} Plug 'itchyny/lightline.vim' "{{ "{{{" }} let g:lightline = { + \ 'colorscheme': 'nord', \ 'active': { \ 'left': [ [ 'mode', 'paste' ], \ [ 'gitbranch', 'readonly', 'filename', 'modified', 'pencil' ] ] \ }, \ 'component_function': { \ 'gitbranch': 'fugitive#statusline', - \ 'pencil': 'PencilMode' + \ 'pencil': 'PencilMode' \ }, \ } "{{ "}}}" }} Plug 'morhetz/gruvbox' +Plug 'arcticicestudio/nord-vim' call plug#end() "{{ "}}}" }} @@ -414,9 +415,7 @@ endif let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" set termguicolors -let g:gruvbox_contrast_dark = 'hard' -let g:gruvbox_italic=0 -colorscheme gruvbox +colorscheme nord set background=dark "{{ "}}}" }} " Filetype settings {{ "{{{" }} diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 5c3ba00..d9e50d8 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -27,16 +27,14 @@ export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export EDITOR='nvim' export GOPATH=$HOME/go - {{- if eq .chezmoi.os "openbsd" }} +export CC='clang-16' export PORTSDIR_PATH=/usr/ports/:/usr/ports/openbsd-wip -export PATH="$HOME/dev/src/ltex-ls-15.2.0/bin:$HOME/local/bin:$HOME/perl5/bin:$HOME/gems/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH" +export PATH="$HOME/perl5/bin:$HOME/gems/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH" export PERL5LIB=$HOME/perl5/lib/perl5 export PERL_LOCAL_LIB_ROOT=$HOME/perl5 export PERL_MB_OPT='--install_base "/home/jan/perl5"' export PERL_MM_OPT='INSTALL_BASE=/home/jan/perl5' -export JAVA_HOME=/usr/local/jdk-11/ -export PMIX_MCA_gds='hash' alias top='htop' alias ctags='uctags' diff --git a/executable_dot_xsession.tmpl b/executable_dot_xsession.tmpl index f068f88..29f327c 100644 --- a/executable_dot_xsession.tmpl +++ b/executable_dot_xsession.tmpl @@ -5,8 +5,6 @@ xset m 2 0 {{- if eq .chezmoi.os "openbsd" }} # xset -dpms # xset s off -xset +fp "/usr/local/share/fonts/Hack" -xset +fp "/usr/local/share/fonts/terminus" xset +fp "/usr/local/share/fonts/brutalist" setxkbmap us dev-de @@ -27,7 +25,7 @@ xinput set-prop /dev/wsmouse 'WS Pointer Wheel Emulation Timeout' 500 export LC_CTYPE="en_US.UTF-8" export HOME=/home/jan -export PATH=$HOME/local/bin:/usr/local/bin:$HOME/go/bin:$PATH +export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/go/bin:$PATH {{- if eq .chezmoi.os "openbsd" }} syncthing -no-browser -home="/home/jan/.config/syncthing" & @@ -37,7 +35,4 @@ xidle -timeout 300 -program "/usr/local/bin/slock" & xrdb -merge $HOME/.Xresources xsetroot -solid "#282828" -urxvtd -q -f -o -tint2& - -exec openbox +exec openbox-session diff --git a/dot_mbsyncrc b/private_dot_mbsyncrc.tmpl similarity index 95% rename from dot_mbsyncrc rename to private_dot_mbsyncrc.tmpl index c2024c6..250ca1f 100644 --- a/dot_mbsyncrc +++ b/private_dot_mbsyncrc.tmpl @@ -5,7 +5,7 @@ IMAPAccount moebius Host mail.moebiusband.org User jan -PassCmd "keepassxc-cli show /home/jan/doc/private/Passwords.kdbx server/moebiusband.org -a password" +Pass {{ (keepassxc "moebiusband.org").Password }} SSLType IMAPS SSLVersions TLSv1.2 CertificateFile /etc/ssl/cert.pem @@ -71,7 +71,7 @@ Channel moebius-trash IMAPAccount fau Host groupware.fau.de User fauad\\unrz254 -PassCmd "gopass show sso/rrze" +Pass {{ (keepassxc "IDM FAU").Password }} SSLType STARTTLS SSLVersions TLSv1.2 CertificateFile /etc/ssl/cert.pem