From d6d6f40f2c756db7b8c7bbdf4e4ed3f805c00dfd Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Tue, 31 Aug 2021 16:40:49 +0500 Subject: [PATCH] docs(*): minor changes --- .config/guix/manifests/dev.scm | 1 + Desktop.org | 5 +++-- Mail.org | 12 ++++++------ README.org | 4 ++-- bin/polybar.sh | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.config/guix/manifests/dev.scm b/.config/guix/manifests/dev.scm index fb55d51..91bd991 100644 --- a/.config/guix/manifests/dev.scm +++ b/.config/guix/manifests/dev.scm @@ -1,5 +1,6 @@ (specifications->manifest '( + "gcc-toolchain" "go" "openjdk" "node" diff --git a/Desktop.org b/Desktop.org index 7e4b8f4..f43a113 100644 --- a/Desktop.org +++ b/Desktop.org @@ -404,7 +404,7 @@ Rules to automatically assign applications to workspaces and do other stuff, lik Most apps can be distinguished by a WM class (you can get one with [[https://www.x.org/releases/X11R7.5/doc/man/man1/xprop.1.html][xprop]]), but in some cases it doesn't work, e.g. for terminal applications. In that case rules can be based on a window title, for instance. -However, watch out for the following: rule such as ~for_window [title="ncmpcpp.*"] move to workspace $w9~ will move *any* windows with a title, starting with =ncmpcpp= to workspace =$w9=, which, for instance, may move your browser there if you google "ncmpcpp". +However, watch out for the following: rule such as ~for_window [title="ncmpcpp.*"] move to workspace $w9~ will move *any* window with a title starting with =ncmpcpp= to workspace =$w9=. For instance, it moves your browser when you google "ncmpcpp". #+begin_src conf-space assign [class="Emacs"] $w1 @@ -797,7 +797,7 @@ The script below allows me to: #+begin_src bash :tangle ./bin/polybar.sh hostname=$(hostname) # Settings varying on the hostname -export WLAN_INTERFACE=$(nmcli -f DEVICE con show | grep -Ev "(.*docker.*|DEVICE|br.*|tun.*|--)" | xargs) +export WLAN_INTERFACE=$(nmcli -f DEVICE con show | grep -Ev "(.*docker.*|DEVICE|br.*|tun.*|veth.*|--)" | xargs) if [ "$hostname" = "azure" ]; then TRAY_MONITOR="eDP-1" # export WLAN_INTERFACE="wlp3s0" @@ -2123,6 +2123,7 @@ This section generates manifests for various desktop software that I'm using. | dev | node | | dev | openjdk | | dev | go | +| dev | gcc-toolchain | ** Manifests #+NAME: packages #+begin_src emacs-lisp :tangle no :var category="" diff --git a/Mail.org b/Mail.org index 12df24d..77f4bb0 100644 --- a/Mail.org +++ b/Mail.org @@ -9,7 +9,7 @@ #+PROPERTY: header-args:bash :tangle-mode (identity #o755) :comments link :shebang "#!/usr/bin/env bash" #+OPTIONS: broken-links:auto h:6 toc:nil -My email configration. Currently uses [[https://github.com/gauteh/lieer][lieer]] to fetch emails from Gmail, [[http://davmail.sourceforge.net/][davmail]] & [[http://www.offlineimap.org/][offlineimap]] to fetch emails from MS Exchange, [[https://notmuchmail.org/][notmuch]] to index, [[https://marlam.de/msmtp/][msmtp]] to send emails. Also using notmuch frontend from Emacs. +My email configration. Currently I use [[https://github.com/gauteh/lieer][lieer]] to fetch emails from Gmail, [[http://davmail.sourceforge.net/][davmail]] & [[http://www.offlineimap.org/][offlineimap]] to fetch emails from MS Exchange, [[https://notmuchmail.org/][notmuch]] to index, [[https://marlam.de/msmtp/][msmtp]] to send emails. Also using notmuch frontend from Emacs. My problem with any particular mail setup was that I use Gmail labels quite extensively, and handling these over IMAP is rather awkward. Notmuch seems to be the only software that provides the same first-class support for labels. @@ -83,7 +83,7 @@ davmail.imapAutoExpunge=false davmail.enableKeepalive=false #+end_src -Also it's a bit of problem to get it launched as it looks for some jars in pwd, so here is a script. +Also it's a bit of problem to get it launched as it looks for its jars in the pwd, so here is a script. #+begin_src bash :tangle ~/bin/davmail cd $HOME/bin/davmail-6.0.0-3375 ./davmail davmail.properties @@ -95,9 +95,9 @@ Shepherd service is defined in [[file:Desktop.org::*Davmail][Desktop.org]]. |-----------------| | offlineimap | -[[https://github.com/OfflineIMAP/offlineimap][OfflineIMAP]] is a program that can synchronize IMAP mailbox and Maildir. Lieer does everything by itself, but my pirate Exchange IMAP needs this program. There is also [[https://isync.sourceforge.io/][isync]], but I had some weird issues with duplicate UIDs, which don't occur for OfflineIMAP. +[[https://github.com/OfflineIMAP/offlineimap][OfflineIMAP]] is a program that can synchronize IMAP mailbox and Maildir. Lieer does everything by itself, but my pirate Exchange IMAP needs this program. There is also [[https://isync.sourceforge.io/][isync]], but there I had some weird issues with duplicate UIDs, which don't occur for OfflineIMAP. -I have a few options for setting a username and password. First, I can run =pass= in =remotepasswordeval=, and this is fine, but it will keep by keyring unlocked because I want to run =offlineimap= every couple of minutes. +I have a few options for setting a username and password. First, I can run =pass= in =remotepasswordeval=, and while this will work, it will keep my keyring unlocked because I want to run =offlineimap= every couple of minutes. Another option is to use noweb and not push the file below to the version control. Then I have a plaintext password of email on my computer, but I think it's a lesser evil than the entire keyring. @@ -140,7 +140,7 @@ ssl = no | notmuch | | parallel | -Notmuch is an email indexer program, which handles labels in a way somewhat like Gmail. It also provides a frontend for Emacs, but it's not the only one available. +Notmuch is an email indexer program, which handles labels in a way somewhat similar to Gmail. It also provides a frontend for Emacs, but it's not the only one available. ** Config :PROPERTIES: @@ -184,7 +184,7 @@ synchronize_flags=true #+end_src ** Hooks -Now we have to link up lieer & Maildir and with notmuch. This is done via the notmuch hook system, which allows running custom scripts before and after any command. +Now we have to link up lieer & davmail's maildir and with notmuch. This is done via the notmuch hook system, which allows running custom scripts before and after any command. With lieer and Gmail, it is enough to simply run the program, because Gmail has first-class support for tags. Maildir does not, so I decide to synchronize notmuch tags and IMAP folders. In essence, the idea is to: - move emails to their folders by tags /before/ the synchronization diff --git a/README.org b/README.org index 3597fe2..786e808 100644 --- a/README.org +++ b/README.org @@ -9,7 +9,7 @@ The majority of the software is configured with [[https://leanpub.com/lit-config The files themselves are managed and deployed via [[https://yadm.io/][yadm]], but I mostly use Org Mode rich noweb whenever I can instead of what yadm offers. -My current GNU/Linux distribution is [[https://guix.gnu.org/][GNU Guix]]. In the context of this repo, Guix allows me to list all the used programs in manifests, which means I have the same set of programs across multiple machines. Looks for Org tables with "Guix dependency" in the header. +My current GNU/Linux distribution is [[https://guix.gnu.org/][GNU Guix]]. In the context of this repo, Guix allows me to list all the used programs in manifests, which means I have the same set of programs across multiple machines. Look for the tables with "Guix dependency" in the header. Literate configuration files: - [[file:Emacs.org][Emacs.org]] @@ -59,7 +59,7 @@ Some of the notable programs are listed in the table below. - [[https://sqrtminusone.xyz/posts/2021-02-27-gmail/][Multiple Gmail accounts & labels with Emacs]] * Some statistics -Run the following to show the pictures with reasonable width: +If you are viewing the file in Emacs, eval the following to show the pictures with reasonable width: #+begin_src elisp :results none (setq-local org-image-actual-width '(1024)) #+end_src diff --git a/bin/polybar.sh b/bin/polybar.sh index 533508c..1ff4b53 100755 --- a/bin/polybar.sh +++ b/bin/polybar.sh @@ -2,7 +2,7 @@ # [[file:../Desktop.org::*Launching][Launching:1]] hostname=$(hostname) # Settings varying on the hostname -export WLAN_INTERFACE=$(nmcli -f DEVICE con show | grep -Ev "(.*docker.*|DEVICE|br.*|tun.*|--)" | xargs) +export WLAN_INTERFACE=$(nmcli -f DEVICE con show | grep -Ev "(.*docker.*|DEVICE|br.*|tun.*|veth.*|--)" | xargs) if [ "$hostname" = "azure" ]; then TRAY_MONITOR="eDP-1" # export WLAN_INTERFACE="wlp3s0"