Compare commits

..

4 Commits

Author SHA1 Message Date
8c26a8289c fix typos in package installations 2026-07-12 09:38:41 -05:00
ee181c6b24 replace with storing current user at beginning of the script 2026-07-12 09:38:13 -05:00
ea768d3779 add confirmation flag to user programs 2026-07-12 09:29:01 -05:00
18ace74706 fix typo 2026-07-12 09:22:33 -05:00
3 changed files with 19 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ gsettings set org.cinnamon.desktop.peripherals.touchpad natural-scroll "false"
echo "* enable touchpad gestures" | tee todo.md -a
# replace holding <Alt> to move windows with <Super>
gsettings set org.cinnmon.desktop.wm.preferences mouse-button-modifier "'<Super>'"
gsettings set org.cinnamon.desktop.wm.preferences mouse-button-modifier "'<Super>'"
# hide annoying super menu icons
@@ -31,3 +31,5 @@ chmod 755 $HOME/.config/autostart/artha.desktop
FP="$HOME/.config/cinnamon/spices/calendar@cinnamon.org/13.json" # why is this 13? doesn't seem very robust
cat $FP | jq '.["show-events"].value = false' | tee $FP
# revert to previous version of cinnamon menus

25
main.sh
View File

@@ -9,6 +9,8 @@ sudo mkdir -p /usr/local/bin
sudo chmod 755 /usr/local/bin
sudo apt-get update
INSTALL_USER=$(whoami)
#######################
## DEV/PROGRAMMING ##
## ESSENTIAL TOOLS ##
@@ -18,7 +20,7 @@ echo "* install drivers & such" | tee todo.md -a
# Install some apt packages
sudo apt-get upgrade -y
sudo apt-get install -y curl git jq build-essentials unzip tree # for development
sudo apt-get install -y curl git jq build-essential unzip tree # for development
sudo apt-get install -y ripgrep # I honestly don't remember why I installed these
echo "* globstar?" | tee todo.md -a
@@ -41,13 +43,13 @@ sudo unzip ./utils/DejaVuSansMono.zip /usr/share/fonts/truetype/DejaVuSansMono/
# zsh (better shell)
echo "* add zsh and starship, etc. + nerd font" | tee todo.md -a
sudo apt-get install -y zsh
sudo chsh $SUDO_USER -s /bin/zsh
chsh $INSTALL_USER -s /bin/zsh
cp ./utils/dotzshrc "$HOME/.zshrc"
# starship (shell prompt)
curl -sS https://starship.rs/install.sh | sudo sh
echo 'y' | $(curl -sS https://starship.rs/install.sh | sudo sh)
# echo 'eval "$(starship init zsh)"' | tee "$HOME/.zshrc" -a # should already be in zshrc
sudo -u $SUDO_USER mkdir -p "$HOME/.config"
mkdir -p "$HOME/.config"
cp ./utils/starship.toml "$HOME/.config/starship.toml"
# Neovim
@@ -77,14 +79,14 @@ echo "## workflow helpers, small tools, and utilities" | tee todo.md -a
# pbcopy/pbpaste (from macOS)
sudo apt-get install -y xclip
printf '#!/bin/bash \nxclip -selection clipboard' | sudo -u $SUDO_USER tee /usr/local/bin/pbcopy
printf '#!/bin/bash \nxclip -selection clipboard' | sudo -u $INSTALL_USER tee /usr/local/bin/pbcopy
chmod 755 /usr/local/bin/pbcopy
printf '#!/bin/bash \nxclip -selection clipboard -o' | sudo -u $SUDO_USER tee /usr/local/bin/pbpaste
printf '#!/bin/bash \nxclip -selection clipboard -o' | sudo -u $INSTALL_USER tee /usr/local/bin/pbpaste
chmod 755 /usr/local/bin/pbpaste
# WordNet & def utility
sudo apt-get install -y wordnet
printf '#!/bin/bash \nwn $1 -over' | sudo -u $SUDO_USER tee /usr/local/bin/def
printf '#!/bin/bash \nwn $1 -over' | sudo -u $INSTALL_USER tee /usr/local/bin/def
chmod 755 /usr/local/bin/def
# Artha (WordNet dictionary)
@@ -95,12 +97,12 @@ sudo apt-get install -y qpdf
# rndrmarkdown markdown renderer
sudo apt-get install -y pandoc
sudo -u $SUDO_USER cp ./utils/rndrmarkdown /usr/local/bin/rndrmarkdown
sudo -u $SUDO_USER chmod 755 /usr/local/bin/rndrmarkdown
sudo -u $INSTALL_USER cp ./utils/rndrmarkdown /usr/local/bin/rndrmarkdown
sudo -u $INSTALL_USER chmod 755 /usr/local/bin/rndrmarkdown
echo 'alias rmd="rndrmarkdown"' | tee ~/.bashrc -a
# readline (for piping 1 line into wc)
printf '#!/bin/bash \necho "$(head -n $1 $2 | tail -n 1)"' | sudo -u $SUDO_USER tee /usr/local/bin/rline
printf '#!/bin/bash \necho "$(head -n $1 $2 | tail -n 1)"' | sudo -u $INSTALL_USER tee /usr/local/bin/rline
chmod 755 /usr/local/bin/rline
echo "* verify rline formatted correctly"
@@ -111,7 +113,8 @@ sudo apt-get install -y calc
sudo apt-get install -y openssh-server
# Wine (run windoze apps)
sudo apt-get install -y winehq
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get install -y wine
# Gpick (color picker)
sudo apt-get install -y gpick

View File

@@ -16,12 +16,11 @@ sudo apt-get install -y vlc
sudo apt-get install -y ffmpeg ffmpeg-doc
# OBS studio (screen recording)
echo '' | add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo add-apt-repository -y ppa:obsproject/obs-studio
sudo apt-get install -y obs-studio
# FreeCAD (3D parametric modeling)
echo '' | sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
sudo add-apt-repository -y ppa:freecad-maintainers/freecad-stable
sudo apt-get install -y freecad freecad-doc
# 3D printing slicer