# justfile for common household tasks dotfiles_repo := "/home/jas/repos/git.hyperreal.coffee/hyperreal/dotfiles" homedir := "/home/jas" configdir := "/home/jas/.config" localshare := "/home/jas/.local/share" refresh-doom-emacs: rm -rf {{configdir}}/emacs git clone --depth 1 https://github.com/doomemacs/doomemacs {{configdir}}/emacs {{configdir}}/emacs/bin/doom install --force --verbose link-dotfiles: #!/usr/bin/env bash rm -rfv {{configdir}}/xfce4 if [ "$(hostname)" = "desktop" ]; then ln -sf {{dotfiles_repo}}/config/xfce4-desktop {{configdir}}/xfce4 fi if [ "$(hostname)" = "laptop" ]; then ln -sf {{dotfiles_repo}}/config/xfce4-laptop {{configdir}}/xfce4 fi rm -fv {{homedir}}/.justfile ln -sf {{dotfiles_repo}}/just/.justfile {{homedir}}/.justfile rm -rfv {{homedir}}/.doom.d ln -sf {{dotfiles_repo}}/doom/.doom.d {{homedir}}/.doom.d rm -fv {{homedir}}/.zshrc ln -sf {{dotfiles_repo}}/zsh/.zshrc {{homedir}}/.zshrc rm -rfv {{homedir}}/.zshrc.d ln -sf {{dotfiles_repo}}/zsh/.zshrc.d {{homedir}}/.zshrc.d rm -rfv {{configdir}}/bat ln -sf {{dotfiles_repo}}/config/bat {{configdir}}/bat rm -rfv {{configdir}}/git ln -sf {{dotfiles_repo}}/config/git {{configdir}}/git rm -rfv {{configdir}}/newsboat ln -sf {{dotfiles_repo}}/config/newsboat {{configdir}}/newsboat rm -rfv {{configdir}}/rofi ln -sf {{dotfiles_repo}}/config/rofi {{configdir}}/rofi rm -fv {{configdir}}/starship.toml ln -sf {{dotfiles_repo}}/config/starship.toml {{configdir}}/starship.toml rm -rfv {{configdir}}/zellij ln -sf {{dotfiles_repo}}/config/zellij {{configdir}}/zellij clean-dotfiles: rm -fv {{homedir}}/.justfile rm -rfv {{homedir}}/.doom.d rm -fv {{homedir}}/.zshrc rm -rfv {{homedir}}/.zshrc.d rm -rfv {{configdir}}/bat rm -rfv {{configdir}}/git rm -rfv {{configdir}}/newsboat rm -rfv {{configdir}}/rofi rm -fv {{configdir}}/starship.toml rm -rfv {{configdir}}/xfce4 rm -rfv {{configdir}}/zellij dl-catppuccin-xfce4-term: mkdir -p {{localshare}}/xfce4/terminal/colorschemes wget https://files.hyperreal.coffee/catppuccin-mocha.theme -O {{localshare}}/xfce4/terminal/colorschemes/catppuccin-mocha.theme homebrew-progs: #!/usr/bin/env bash progs=(bat diff-so-fancy duf fastfetch fzf glow gum hugo lnav lsd newsboat nushell starship tealdeer yazi zellij) for i in "${progs[@]}"; do brew install "$i"; done brewup: brew update brew upgrade go-tools: go install golang.org/x/tools/gopls@latest go install github.com/fatih/gomodifytags@latest go install github.com/cweill/gotests/...@latest go install github.com/x-motemen/gore/cmd/gore@latest go install golang.org/x/tools/cmd/guru@latest python-tools: pipx install --include-deps ansible --force pipx install black --force pipx install bpython --force pipx install pyflakes --force pipx install isort --force pipx install pipenv --force pipx install nose --force pipx install pytest --force pipx install uv --force pipx install qbt-helper --force pipx install get-def --force pipx install print-links --force pipx install print-wp-sources --force pipx install get-def --force pipx install dl-sh-source --force pipx install dl-wp-pdf --force pipx inject bpython bs4 pipx inject bpython requests pipx inject bpython rich pipx inject bpython qbittorrent-api webdev-tools: sudo npm install -g @bitwarden/cli sudo npm install -g @catppuccin/inkcat sudo npm install -g doctoc sudo npm install -g prettier sudo npm install -g js-beautify sudo npm install -g stylelint sudo apt install -y tidy rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh tailscale: curl -fsSL https://tailscale.com/install.sh | sh sudo tailscale up neovim: sudo apt install -y npm git clone https://git.hyperreal.coffee/hyperreal/nvim-config ~/.config/nvim nvim neovim-root: sudo apt install -y npm sudo mkdir -p /root/.config sudo git clone https://git.hyperreal.coffee/hyperreal/nvim-config /root/.config/nvim sudo nvim xfce4-docklike-plugin: #!/usr/bin/env bash sudo apt install -y build-essential automake autoconf intltool libx11-dev libgio2.0-cil-dev libglib2.0-dev libgtk2.0-dev libgtk-3-dev libwnck-dev libwnck-3-dev libxfce4ui-2-dev libxfce4panel-2.0-dev URL=$(curl --silent "https://api.github.com/repos/davekeogh/xfce4-docklike-plugin/releases/latest" | grep "browser_download_url" | grep "\.tar.gz" | cut -d : -f 2,3 | tr -d '" ') FILENAME=$(echo "$URL" | cut -d / -f 9) BASENAME=$(basename -s .tar.gz "$FILENAME") cd ~/downloads wget "$URL" tar xvf "$FILENAME" cd "$BASENAME" ./configure make sudo make install cd .. rm -rf "$BASENAME"*