#+TITLE: General System Configurations #+PROPERTY: header-args :mkdirp yes #+STARTUP: overview * Git #+begin_src conf :tangle ~/.gitconfig [user] email = public@thanosapollo.com name = Thanos Apollo signingkey = 5F6B32E27F433AA9E42A530A0A50703D1CE7AE29 [commit] gpgsign = true [format] subjectPrefix = PATCH [sendemail] from = Thanos Apollo smtpserver = smtp.fastmail.com smtpuser = thanosapollo@fastmail.com smtpencryption = ssl smtpserverport = 465 annotate = yes [credential "smtp://smtp.fastmail.com"] helper = "!f() { echo username=thanosapollo@fastmail.com; echo \"password=$(pass show fastmail.com/thanosapollo@fastmail.com | sed -n '/smtp:/,+3p')\"; }; f" #+end_src * gnupgp #+begin_src conf :tangle ~/.gnupg/gpg-agent.conf default-cache-ttl 172800 max-cache-ttl 282800 pinentry-program /home/thanos/.stumpwm.d/modules/util/pinentry/stumpwm-pinentry #+end_src * iSync #+begin_src conf :tangle ~/.mbsyncrc IMAPAccount fastmail Host imap.fastmail.com Port 993 User thanosapollo@fastmail.com PassCmd "emacsclient -e '(password-store-get-field \"fastmail.com/thanosapollo@fastmail.com\" \"smtp\")'" SSLType IMAPS SSLVersions TLSv1.2 CertificateFile /etc/ssl/certs/ca-certificates.crt IMAPStore fastmail-remote Account fastmail MaildirStore fastmail-local Path ~/Mail/ Inbox ~/Mail/Inbox Trash ~/Mail/Trash/ SubFolders Verbatim Channel fastmail Far :fastmail-remote: Near :fastmail-local: Patterns * Expunge None CopyArrivalDate yes Sync All Create Both SyncState * #+end_src * Starship #+begin_src conf :tangle ~/.config/starship.toml # Get editor completions based on the config schema "$schema" = 'https://starship.rs/config-schema.json' # Inserts a blank line between shell prompts add_newline = true # Replace the '❯' symbol in the prompt with '➜' [character] # The name of the module we are configuring is 'character' success_symbol = '[λ](red)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green' error_symbol = "[✖](bold red) " [battery] full_symbol = "🔋" charging_symbol = "🔌" discharging_symbol = "⚡" [[battery.display]] threshold = 30 style = "bold red" [cmd_duration] min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec) format = " took [$duration]($style)" [directory] truncation_length = 5 format = "[$path](yellow)[$lock_symbol]($lock_style) " [git_branch] format = " [$symbol$branch]($style) " symbol = "[](bold green) " style = "blue bold" [git_commit] commit_hash_length = 8 style = "bold white" [git_state] format = '[\($state( $progress_current of $progress_total)\)]($style) ' [git_status] conflicted = "⚔️ " ahead = "🏎️ 💨 ×${count}" behind = "🐢 ×${count}" diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}" untracked = "  ×${count}" stashed = "📦 " modified = " ×${count}" staged = "🗃️ ×${count}" renamed = "📛 ×${count}" deleted = "🗑️ ×${count}" style = "bright-white" format = "$all_status$ahead_behind" [hostname] ssh_only = false format = "<[$hostname]($style)>" trim_at = "-" style = "bold dimmed white" disabled = true [julia] format = "[$symbol$version]($style) " symbol = "ஃ " style = "bold green" [memory_usage] format = "$symbol[${ram}( | ${swap})]($style) " threshold = 70 style = "bold dimmed white" disabled = false [package] disabled = true [python] format = "[$symbol$version]($style) " style = "bold green" [rust] format = "[$symbol$version]($style) " style = "bold green" [time] time_format = "%T" format = "🕙 $time($style) " style = "bright-white" disabled = true [username] style_user = "bold dimmed blue" show_always = false [nodejs] format = "via [🤖 $version](bold green) " #+end_src * slock #+begin_src conf :tangle "/sudo::/etc/systemd/system/slock@.service" [Unit] Description=Lock X session using slock for user %i Before=sleep.target [Service] User=%i Environment=DISPLAY=:0 ExecStartPre=/usr/bin/xset dpms force suspend ExecStart=/usr/bin/slock [Install] WantedBy=sleep.target #+end_src * Keyboards ** Cyrillic #+begin_src fundamental :tangle "/sudo::/usr/share/X11/xkb/symbols/my-cyr" partial alphanumeric_keys xkb_symbols "phonetic" { name[Group1]= "Russian (phonetic)"; key { [ 1, exclam ] }; key { [ 2, at ] }; key { [ 3, Cyrillic_io ] }; key { [ 4, Cyrillic_IO ] }; key { [ 5, Cyrillic_hardsign ] }; key { [ 6, Cyrillic_HARDSIGN ] }; key { [ 7, ampersand ] }; key { [ 8, asterisk ] }; key { [ 9, parenleft ] }; key { [ 0, parenright ] }; key { [ minus, underscore ] }; key { [ period, greater ] }; key { [ slash, question ] }; key { [ comma, less ] }; key { [ semicolon, colon ] }; key { [ apostrophe, quotedbl ] }; key { [ bar, brokenbar ] }; key { [ Cyrillic_yu, Cyrillic_YU ] }; key { [ Cyrillic_ya, Cyrillic_YA ] }; key { [ Cyrillic_ze, Cyrillic_ZE ] }; key { [ Cyrillic_es, Cyrillic_ES ] }; key { [ Cyrillic_a, Cyrillic_A ] }; key { [ Cyrillic_ve, Cyrillic_VE ] }; key { [ Cyrillic_tse, Cyrillic_TSE ] }; key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN ] }; key { [ Cyrillic_de, Cyrillic_DE ] }; key { [ Cyrillic_ie, Cyrillic_IE ] }; key { [ Cyrillic_zhe, Cyrillic_ZHE ] }; key { [ Cyrillic_ef, Cyrillic_EF ] }; key { [ Cyrillic_te, Cyrillic_TE ] }; key { [ Cyrillic_er, Cyrillic_ER ] }; key { [ Cyrillic_en, Cyrillic_EN ] }; key { [ Cyrillic_be, Cyrillic_BE ] }; key { [ Cyrillic_ha, Cyrillic_HA ] }; key { [ Cyrillic_ghe, Cyrillic_GHE ] }; key { [ Cyrillic_yeru, Cyrillic_YERU ] }; key { [ Cyrillic_em, Cyrillic_EM ] }; key { [ Cyrillic_shorti, Cyrillic_SHORTI ] }; key { [ Cyrillic_u, Cyrillic_U ] }; key { [ Cyrillic_ka, Cyrillic_KA ] }; key { [ Cyrillic_i, Cyrillic_I ] }; key { [ Cyrillic_o, Cyrillic_O ] }; key { [ Cyrillic_el, Cyrillic_EL ] }; key { [ Cyrillic_pe, Cyrillic_PE ] }; key { [ Cyrillic_sha, Cyrillic_SHA ] }; key { [ Cyrillic_che, Cyrillic_CHE ] }; key { [ Cyrillic_shcha, Cyrillic_SHCHA ] }; key { [ Cyrillic_e, Cyrillic_E ] }; }; #+end_src #+begin_src fundamental :tangle "/sudo::/usr/share/X11/xkb/symbols/my-cyr2" partial alphanumeric_keys xkb_symbols "phonetic" { name[Group1]= "Russian (phonetic)"; key { [ 1, exclam ] }; key { [ 2, at ] }; key { [ 3, Cyrillic_io ] }; key { [ 4, Cyrillic_IO ] }; key { [ 5, Cyrillic_hardsign ] }; key { [ 6, Cyrillic_HARDSIGN ] }; key { [ 7, ampersand ] }; key { [ 8, asterisk ] }; key { [ 9, parenleft ] }; key { [ 0, parenright ] }; key { [ minus, underscore ] }; key { [ period, greater ] }; key { [ slash, question ] }; key { [ comma, less ] }; key { [ semicolon, colon ] }; key { [ apostrophe, quotedbl ] }; key { [ bar, brokenbar ] }; key { [ Cyrillic_yu, Cyrillic_YU ] }; key { [ Cyrillic_ya, Cyrillic_YA ] }; key { [ Cyrillic_ze, Cyrillic_ZE ] }; key { [ Cyrillic_es, Cyrillic_ES ] }; key { [ Cyrillic_a, Cyrillic_A ] }; key { [ Cyrillic_ve, Cyrillic_VE ] }; key { [ Cyrillic_tse, Cyrillic_TSE ] }; key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN ] }; key { [ Cyrillic_de, Cyrillic_DE ] }; key { [ Cyrillic_ie, Cyrillic_IE ] }; key { [ Cyrillic_zhe, Cyrillic_ZHE ] }; key { [ Cyrillic_ef, Cyrillic_EF ] }; key { [ Cyrillic_te, Cyrillic_TE ] }; key { [ Cyrillic_er, Cyrillic_ER ] }; key { [ Cyrillic_en, Cyrillic_EN ] }; key { [ Cyrillic_be, Cyrillic_BE ] }; key { [ Cyrillic_ha, Cyrillic_HA ] }; key { [ Cyrillic_ghe, Cyrillic_GHE ] }; key { [ Cyrillic_yeru, Cyrillic_YERU ] }; key { [ Cyrillic_em, Cyrillic_EM ] }; key { [ Cyrillic_shorti, Cyrillic_SHORTI ] }; key { [ Cyrillic_u, Cyrillic_U ] }; key { [ Cyrillic_ka, Cyrillic_KA ] }; key { [ Cyrillic_i, Cyrillic_I ] }; key { [ Cyrillic_o, Cyrillic_O ] }; key { [ Cyrillic_el, Cyrillic_EL ] }; key { [ Cyrillic_pe, Cyrillic_PE ] }; key { [ Cyrillic_sha, Cyrillic_SHA ] }; key { [ Cyrillic_che, Cyrillic_CHE ] }; key { [ Cyrillic_shcha, Cyrillic_SHCHA ] }; key { [ Cyrillic_e, Cyrillic_E ] }; }; #+end_src #+begin_src fundamental :tangle "/sudo::/usr/share/X11/xkb/symbols/my-bg" partial alphanumeric_keys xkb_symbols "phonetic" { name[Group1]= "Bulgarian (traditional phonetic)"; key {[ Cyrillic_che, Cyrillic_CHE ]}; key {[ 1, exclam ]}; key {[ 2, at ]}; key {[ 3, numerosign ]}; key {[ 4, dollar, EuroSign, EuroSign ]}; key {[ 5, percent ]}; key {[ 6, EuroSign ]}; key {[ 7, section ]}; key {[ 8, asterisk ]}; key {[ 9, parenleft, bracketleft, U2329 ]}; key {[ 0, parenright, bracketright, U232A ]}; key {[ minus, endash, U2011, U2011 ]}; key {[ equal, plus, emdash, dagger ]}; key {[ Cyrillic_ya, Cyrillic_YA, U0463, U0462 ]}; key {[ Cyrillic_ve, Cyrillic_VE ]}; key {[ Cyrillic_ie, Cyrillic_IE, Cyrillic_e, Cyrillic_E ]}; key {[ Cyrillic_er, Cyrillic_ER, registered, registered ]}; key {[ Cyrillic_te, Cyrillic_TE, trademark, trademark ]}; key {[ Cyrillic_hardsign, Cyrillic_HARDSIGN, U046B, U046A ]}; key {[ Cyrillic_u, Cyrillic_U ]}; key {[ Cyrillic_i, Cyrillic_I, U045D, U040D ]}; key {[ Cyrillic_o, Cyrillic_O ]}; key {[ Cyrillic_pe, Cyrillic_PE ]}; key {[ Cyrillic_sha, Cyrillic_SHA ]}; key {[ Cyrillic_shcha, Cyrillic_SHCHA ]}; key {[ Cyrillic_a, Cyrillic_A ]}; key {[ Cyrillic_es, Cyrillic_ES, copyright, copyright ]}; key {[ Cyrillic_de, Cyrillic_DE ]}; key {[ Cyrillic_ef, Cyrillic_EF ]}; key {[ Cyrillic_ghe, Cyrillic_GHE ]}; key {[ Cyrillic_ha, Cyrillic_HA ]}; key {[ Cyrillic_shorti, Cyrillic_SHORTI, U046D, U046C ]}; key {[ Cyrillic_ka, Cyrillic_KA ]}; key {[ Cyrillic_el, Cyrillic_EL ]}; key {[ semicolon, colon, ellipsis, ellipsis ]}; key {[ apostrophe, quotedbl, rightsinglequotemark, leftsinglequotemark ]}; key {[ Cyrillic_yu, Cyrillic_YU ]}; key {[ U045D, U040D ]}; key {[ Cyrillic_ze, Cyrillic_ZE ]}; key {[ Cyrillic_softsign, U045D, Cyrillic_yeru, Cyrillic_YERU ]}; key {[ Cyrillic_tse, Cyrillic_TSE, copyright, copyright ]}; key {[ Cyrillic_zhe, Cyrillic_ZHE ]}; key {[ Cyrillic_be, Cyrillic_BE ]}; key {[ Cyrillic_en, Cyrillic_EN ]}; key {[ Cyrillic_em, Cyrillic_EM ]}; key {[ comma, doublelowquotemark, guillemotleft, guillemotleft ]}; key {[ period, leftdoublequotemark, guillemotright, guillemotright ]}; key {[ slash, question, U0300, U0301 ]}; key {[ space, space, nobreakspace, nobreakspace ]}; key { type[Group1] = "KEYPAD", [ KP_Delete, KP_Separator ]}; }; #+end_src