This is my personal configuration, I don't expect anyone else to use this, it is up here as reference.
I have a separate repository I push scripts up to with checks for dependencies to make them easier to install. That includes some cross-platform scripts which handle prompting for input/sending notifications etc. -- this repository is more application configuration files and personal scripts
This was originally linux-only, but over the months and years I've added a compatibility layer of sorts; A global ON_OS variable which uses on_machine to figure out which machine/operating system I'm on. (linux_arch, mac, android (termux) or windows (WSL)) is set on X server/terminal launch. The bootstrap scripts in .config/yadm dispatch against that to install different packages
In general:
zsh, plugins/configuration handled manually in.config/zsh(split across multiple files)yadmto manage dotfiles, seeyadm-with-README.mdweztermas terminal,alacrittyon windowsfloorp- browser, addons listed infirefox_addons.txtneomuttfor emailnvim(with LSP, completion, the typical modern plugins, see.config/nvim)todotxtfor todos, with arofi-interfaceas GUIcalcurseas a calendar, with some hooks to source other events. menu bar icon displays what I have going on todayranger- terminal file manager, with a few custom commands to integratefzf, lots of additional bindings/an extensive preview script, a shell function socding in ranger changes my shell directory
I use syncthing to sync my files/data across my computers.
On Arch/X11:
i3-gaps- window manager; config file -i3-launcherreminds me of my bindings for my launcher moderofi- application launcheri3lockfor screen lock;daemon processcaches pixelated version of screen to speed up start timedunstfor notificationspicomfor window compositingi3blocksas a status bar
On Arch/sway:
rofiwayland forkwaybaras a status barkittyas a terminal (has better wayland support)
On Mac:
- Uses
skhdas a hot-key daemon to run applications (e.g.cmd + opt + enterlaunches terminal) alfredas a application launcher
On Android (using Termux):
Not a ton of application-specific setup yet, handles setting up zsh, installs all my packages using apt; see android_bootstrap
On Windows (in WSL):
Similar to Termux, does an apt-based install. Installs a bunch of languages/programs manually if since the versions on apt are ancient. Should install yadm manually.
- .local/scripts/supervisor_jobs has jobs using
supervisorto daemonize, so I dont have to write plists or systemd scripts, and background processes work mac, linux, and windows. That usesbgprocas an anacron replacement, andon_machineto figure out which jobs to run on each system/distribution tttis sprinkled throughout lots of my scripts, it acts as an extension to my shell history, saving commands fromi3bindsyms, orrangercommands. Lets mecdto one of those directories quickly usingfzf- .config/yadm includes lists of global packages to install for pacman/apt/brew, python, ruby, node, dart, rust, go, elixir and bash
- .config/shortcuts.toml - describes basic shell scripts that are created by shortcuts
- lots of other stuff in here:
For a summary of tools I use often, see here.
# on mac, run `xcode-select --install`
yadm clone https://gitlab.com/purarue/dotfiles
# restart the computer so that ~/.profile and zsh is setup properly
# so OS detection can be done to install the correct packages
yadm bootstrap
Unless where specified, this is all licensed under MIT:
MIT License
Copyright (c) 2019 purarue
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.