Index on SqrtMinusOne https://sqrtminusone.xyz/ Recent content in Index on SqrtMinusOne Hugo -- gohugo.io en-us Sat, 01 May 2021 00:00:00 +0000 Replacing Jupyter Notebook with Org Mode https://sqrtminusone.xyz/posts/2021-05-01-org-python/ Sat, 01 May 2021 00:00:00 +0000 https://sqrtminusone.xyz/posts/2021-05-01-org-python/ Why? Jupyter Notebook and its successor Jupyter Lab providing an interactive development environment for many programming languages are in lots of ways great pieces of software. But while I was using the former, and then the latter, I was also an as-full-time-as-one-can-get NeoVim user. “As one can get” is because, of course, there is no sensible way to extend the NeoVim editing experience to the Jupyter ecosystem. A possibility for change appeared with my discovery of Emacs not so long ago. Multiple Gmail accounts & labels with Emacs https://sqrtminusone.xyz/posts/2021-02-27-gmail/ Sat, 27 Feb 2021 00:00:00 +0000 https://sqrtminusone.xyz/posts/2021-02-27-gmail/ Intro For quite some time, e-mail seemed like an anomaly in my workflow. I am a long time Gmail user, and my decade-old account has a somewhat formidable quantity of labels and filters. My messages are often assigned multiple labels, and I also like to keep only a bunch of messages in the inbox. Although, in my opinion, Gmail web UI was and still is leagues ahead of many of its competitors and even allows keyboard-centric workflow, it’s awkward to use with a keyboard-driven browser, and for no money on Earth I would enable browser notifications. Hello, world! https://sqrtminusone.xyz/posts/hello-world/ Mon, 01 Feb 2021 00:00:00 +0000 https://sqrtminusone.xyz/posts/hello-world/ Hello, world! Eventually, there will be something interesting here. Or not. Regradless, I’ll check if I can write some Python here print("Hello, world") Hello, world Console https://sqrtminusone.xyz/configs/console/ Mon, 01 Jan 0001 00:00:00 +0000 https://sqrtminusone.xyz/configs/console/ #+TOC headlines 6 .profile Environment # export EDITOR=/usr/bin/vim # export BROWSER=/usr/bin/firefox export QT_QPA_PLATFORMTHEME="qt5ct" export QT_AUTO_SCREEN_SCALE_FACTOR=0 export TZ="Asia/Yekaterinburg" # export GTK2_RC_FILES="$HOME/.gtkrc-2.0" My paths My script folders if [ -d "$HOME/bin" ] ; then export PATH="$HOME/bin:$PATH" export PATH="$HOME/bin/scripts:$PATH" fi Guix settings Enable extra profiles if [ -z "$IS_ANDROID" ]; then GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles for i in $GUIX_EXTRA_PROFILES/*; do profile=$i/$(basename "$i") if [ -f "$profile"/etc/profile ]; then GUIX_PROFILE="$profile" . "$GUIX_PROFILE"/etc/profile fi export XDG_DATA_DIRS="$XDG_DATA_DIRS:$profile/share" unset profile done fi Set Jupyter config PATH. Desktop https://sqrtminusone.xyz/configs/desktop/ Mon, 01 Jan 0001 00:00:00 +0000 https://sqrtminusone.xyz/configs/desktop/ My general desktop environment configuration. Parts prefixed with (OFF) are not used, but kept for historic purposes. For some reason GitHub’s org renderer ignores TODO status, hence such a prefix. Round brackets instead of square ones to prevent GitHub’s org renderer from screwing up. Table of Contents Global customization Colors Xresources Colors in Xresources Fonts Themes Device-specific settings i3wm General settings Managing windows Workspaces Rules Scratchpad Launch script i3 config Gaps & borders Keybindings Move & resize windows OFF (OFF) Intergration with dmenu Integration with rofi Launching apps & misc keybindings Apps Media controls & brightness Screenshots Colors OFF (OFF) i3blocks Keyboard Layout Autostart Polybar Launching General settings Colors Bar config Modules ipstack-vpn weather aw-afk sun SEP TSEP i3 xkeyboard mpd pulseaudio cpu ram-memory swap-memory network date battery Rofi Theme Scripts Buku bookmarks Man pages Flameshot dunst keynav Config Using with picom Picom Shadows Fading Opacity General settings Zathura Various software Browsers Office LaTeX Dev Manifests Flatpak Nix Services Music GNU Mcron ActivityWatch PulseEffects xsettingsd Discord rich presence Polkit Authentication agent Xmodmap VPN Davmail Shepherd config Sync Guix settings Global customization Colors Most of the colors are from the Palenight theme. Emacs config https://sqrtminusone.xyz/configs/emacs/ Mon, 01 Jan 0001 00:00:00 +0000 https://sqrtminusone.xyz/configs/emacs/ One day we won’t hate one another, no young boy will march to war and I will clean up my Emacs config. But that day isn’t today. My Emacs configuration. As with other files in the repo, parts prefixed with (OFF) are not used but kept for historic purposes. Table of Contents Primary setup Measure startup speed straight.el use-package Performance Garbage collection Run garbage collection when Emacs is unfocused Misc Native compilation Anaconda & environment Custom file location Private config No littering Global editing configuration General keybindings stuff general. Guix https://sqrtminusone.xyz/configs/guix/ Mon, 01 Jan 0001 00:00:00 +0000 https://sqrtminusone.xyz/configs/guix/ GNU Guix is (1) a transactional package manager and (2) a GNU/Linux distribution. My personal selling points are declarative package configuration and transactional upgrades. References: Official help System Crafters wiki Pjotr Prins' Guix notes Davil Wilson’s YouTube series Table of Contents Contents Profiles Activate profiles Update profiles Channels Systems Base configuration indigo eminence azure System installation Preparation Installation After installation Misc software & notes VPN vpn-start vpn-stop flatpak conda Slack virt-manager wakatime-cli Manifest Contents Contents Profiles Activate profiles Update profiles Channels Systems Base configuration indigo eminence azure System installation Preparation Installation After installation Misc software & notes VPN vpn-start vpn-stop flatpak conda Slack virt-manager wakatime-cli Manifest Profiles A profile is a way to group Guix packages. Mail https://sqrtminusone.xyz/configs/mail/ Mon, 01 Jan 0001 00:00:00 +0000 https://sqrtminusone.xyz/configs/mail/ My email configration. Currently I use lieer to fetch emails from Gmail, davmail & offlineimap to fetch emails from MS Exchange, notmuch to index, 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. My dotfiles https://sqrtminusone.xyz/configs/readme/ Mon, 01 Jan 0001 00:00:00 +0000 https://sqrtminusone.xyz/configs/readme/ A set of my GNU/Linux configuration files. View at GitHub. The majority of the software is configured with literate configuration strategy via Emacs' Org Mode. This way has its advantages and disadvantages, but overall it’s pretty nice to keep the configs interweaved with comments in a handful of files. The files themselves are managed and deployed via yadm, but I mostly use Org Mode rich noweb whenever I can instead of what yadm offers.