msmtp

Setup See arch wiki for complete setup in archlinux. My setup # Set default values for all following accounts. defaults auth on tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile /tmp/msmtp.log account gmail host smtp.gmail.com port 587 user alexarians@gmail.com from alexarians@gmail.com passwordeval pass google.com/app_pass/alexarians@gmail.com account hotmail host smtp-mail.outlook.com port 587 user christian.alexander@windowslive.com from christian.alexander@windowslive.com passwordeval pass outlook.live.com/christian.alexander@windowslive.com account ymail host smtp.mail.yahoo.com port 587 user christian.alexander@ymail.com from christian.alexander@ymail.com passwordeval pass login.yahoo.com/app_pass/christian.alexander@ymail.com account yahoo host smtp.mail.yahoo.com port 587 user alexforsale@yahoo.com from alexforsale@yahoo.com passwordeval pass login.yahoo.com/app_pass/alexforsale@yahoo.com account zum host localhost port 1025 tls off tls_starttls off auth plain user ZUM\kristian.alexander from kristian.alexander@zumstar.co.id passwordeval pass zumstar.co.id/kristian.alexander account mkn tls off tls_starttls off auth plain host localhost port 1026 user MKN\kristian.alexander from kristian.alexander@mkncorp.com passwordeval pass mkncorp.com/kristian.alexander account default : yahoo Notes: ...

February 23, 2024 · 1 min · Kristian Alexander P

notmuch

Required Setups Packages notmuch msmtp Preferrably, Emacs as a frontend. Message (use-package message :custom (message-directory (expand-file-name ".mail" (getenv "HOME"))) (message-sendmail-envelope-from 'header)) Notes: message-directory should reflects the root directory for mail. sendmail (use-package sendmail :custom (mail-specify-envelope-from t) (mail-envelope-from 'header) (send-mail-function 'sendmail-send-it) (sendmail-program (executable-find "msmtp"))) Notes: sendmail-program should point to the full path. Hooks Post-new #!/usr/bin/env bash _AFEW=$(command -v afew) newcount=$(notmuch count tag:new) summary="Notmuch: ${newcount} new message" [ -n "${_AFEW}" ] && "${_AFEW}" --tag --new -vv if [ $newcount -gt 1 ]; then summary="${summary}s"; fi if [ $newcount -gt 0 ]; then detail="$(notmuch search --output=summary --format=json tag:new | sed -e 's/.*authors": "//;s/|[^"]*"/"/;s/", "subject": "/ : /;s/".*//')"; fi notmuch tag -new -- tag:new # See the notmuch pre-hook for DISPLAY thoughts # Desktop notifications if [ $newcount -gt 0 ]; then logger -t notmuch "calling notify-send '$summary' '$detail'" && notify-send -i /usr/share/icons/Papirus/symbolic/actions/mail-message-new-symbolic.svg "$summary" "$detail"; fi # Stop the astroid spinner; this will refresh the UI [[ "$(pgrep astroid)" != "" ]] && logger -t notmuch "Astroid polling stop requested during post-new hook" && astroid --stop-polling 2>&1 >/dev/null [ "$(command -v notifymuch)" ] && notifymuch exit 0 Pre-new #!/usr/bin/env bash [[ -x $(which offlineimap) ]] && offlineimap -s [[ "$(pgrep astroid)" != "" ]] && logger -t notmuch "Astroid polling start requested during pre-new hook" && astroid --start-polling 2>&1 >/dev/null # Ensure that this script exits with success, otherwise notmuch will fail out. exit 0 Backlinks isync kzar/davemail: My email configuration, using mbsync, notmuch, msmtp, msmtpq, pgp, emacs and gnus-alias notmuch

February 23, 2024 · 2 min · Kristian Alexander P

linux

a family of open-source Unix-like operating systems based on the Linux kernel, Backlinks xorg archlinux Guix ripgrep rustup pass ffmpeg wayland systemd davmail davmail i3wm nixos

February 22, 2024 · 1 min · Kristian Alexander P

wayland

It is aimed to become the successor of the X Window System. I use this on linux. Backlinks libinput rofi hyprland

February 22, 2024 · 1 min · Kristian Alexander P

libinput

provides device detection, device handling, input device event processing and abstraction to minimize the amount of custom input code compositors need to provide the common set of functionality that users expect. Configuration file Create a /etc/X11/xorg.conf.d/30-touchpad.conf for xorg. Section "InputClass" Identifier "touchpad" Driver "libinput" MatchIsTouchpad "on" Option "Tapping" "on" Option "NaturalScrolling" "true" EndSection Not needed for wayland

February 22, 2024 · 1 min · Kristian Alexander P

org-mode

a mode for document editing, formatting, and organizing within the free software text editor GNU Emacs and its derivatives, designed for notes, planning, and authoring. Using Property in headline Org-agenda will automatically show the CATEGORY property if it is set. Backlinks [Blog] My Org+Pandoc Workflow : r/emacs org-roam org-agenda alphapapa/org-protocol-capture-html: Capture HTML from the browser selection into Emacs as org-mode content Template expansion (The Org Manual) noweb noweb hugo

February 21, 2024 · 1 min · Kristian Alexander P

hugo

Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. I use this for publishing my Org-mode notes in Emacs. Backlinks org-roam github

February 21, 2024 · 1 min · Kristian Alexander P

github

is a developer platform that allows developers to create, store, manage and share their code. . It uses git software, providing the distributed version control of gitgit plus access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project. Github action for org-mode and hugo Create new access token with read and write access to the repository. Store the token into a new secret variable in the repository settings. name: Deploy Hugo PaperMod Demo to Pages on: push: paths-ignore: - "images/**" - "LICENSE" - "README.md" branches: - master - exampleSite workflow_dispatch: # manual run inputs: hugoVersion: description: "Hugo Version" required: false default: "0.112.4" # Allow one concurrent deployment concurrency: group: "pages" cancel-in-progress: true # Default to bash defaults: run: shell: bash # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write jobs: # Build job build: runs-on: ubuntu-latest env: HUGO_VERSION: "0.112.4" steps: - name: Check version if: ${{ github.event.inputs.hugoVersion }} run: export HUGO_VERSION="${{ github.event.inputs.hugoVersion }}" - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Checkout uses: actions/checkout@v3 with: ref: exampleSite - name: Setup Pages id: pages uses: actions/configure-pages@v3 - name: Get Theme run: git submodule update --init --recursive - name: Update theme to Latest commit run: git submodule update --remote --merge - name: Build with Hugo run: | hugo \ --buildDrafts --gc --verbose \ --baseURL ${{ steps.pages.outputs.base_url }} - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: path: ./public # Deployment job deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 This is using Emacs Org-mode.

February 21, 2024 · 2 min · Kristian Alexander P

git

Git was originally authored by Linus Torvalds in 2005 for development of the archlinux kernel, with other kernel developers contributing to its initial development. Backlinks github github

February 21, 2024 · 1 min · Kristian Alexander P

xorg

Display manager for linux. Backlinks window-manager libinput archlinux rofi dmenu

February 20, 2024 · 1 min · Kristian Alexander P