Adds bootstrap.v2

This commit is contained in:
Michel Fedde 2025-04-21 22:19:46 +02:00
parent 06c8003cf2
commit 2bbccb4595
61 changed files with 468 additions and 4 deletions

View file

@ -0,0 +1,9 @@
#!/bin/env bash
addApplications neovim \
network-manager-applet \
ghostty \
btop \
zoxide fzf \
wifi-qr neovim \
brightnessctl

View file

@ -0,0 +1,5 @@
#!/bin/env sh
addApplications mesa lib32-mesa \
xf86-video-amdgpu \
vulkan-radeon lib32-vulkan-radeon

View file

@ -0,0 +1,6 @@
#!/bin/env sh
addApplications bluez \
bluez-utils
sudo systemctl enable --now bluetooth.service

View file

@ -0,0 +1,28 @@
#!/bin/env sh
SDDM_THEME_PATH="/etc/sddm.conf.d/theme.conf"
addApplications sddm catppuccin-sddm-theme-mocha
sddm() {
sudo mkdir -p /etc/sddm.conf.d
sudo ln ~/.config/sddm/theme.conf /etc/sddm.conf.d/theme.conf
sudo systemctl enable sddm
}
check() {
if ! command -v sddm >/dev/null; then
return 0
fi
if [ ! -f "$SDDM_THEME_PATH" ]; then
return 0
fi
return 1
}
if check; then
addAction sddm
fi

View file

@ -0,0 +1,35 @@
#!/bin/env bash
if [ -z ${XDG_SESSION_DESKTOP+x} ]; then
read -p "-- Which desktop environment do you want to install? " -r XDG_SESSION_DESKTOP
fi
echo "-- Adding dependencies for $XDG_SESSION_DESKTOP"
if [ $XDG_SESSION_DESKTOP = "i3" ]; then
addApplications polybar \
betterlockscreen \
dunst \
pulseaudio-control \
nitrogen
fi
if [ $XDG_SESSION_DESKTOP = "Hyprland" ]; then
addApplications hyprland \
waybar waybar-updates \
hyprlock \
swww \
hyprswitch \
nwg-dock-hyprland \
nwg-drawer \
swaync \
wayland-logout \
hyprpicker \
pulseaudio-control \
wl-clipboard \
grim \
slurp \
hyprsunset \
darkman \
anyrun-git
fi

View file

@ -0,0 +1,3 @@
#!/bin/env sh
addActions "yadm decrypt"

View file

@ -0,0 +1,14 @@
#!/bin/env bash
addApplications getnf
REQUESTED_FONT="JetBrainsMono"
fonts() {
getnf -i "JetBrainsMono"
fc-cache
}
if ! getnf -l | grep "$REQUESTED_FONT" >/dev/null; then
addActions fonts
fi

View file

@ -0,0 +1,3 @@
#!/bin/env sh
addApplications gruvbox-material-icon-theme-git gruvbox-gtk-theme-git

View file

@ -0,0 +1,31 @@
#!/bin/env bash
addApplications evremap
keymap() {
sudo gpasswd -a $USER input
echo 'KERNEL=="uinput", GROUP="input"' | sudo tee /etc/udev/rules.d/input.rules
mkdir -p $HOME/.log
}
check() {
if ! id | grep input >>/dev/null; then
return 0
fi
if [ ! -f "/etc/udev/rules.d/input.rules" ]; then
return 0
fi
if [ ! -d "$HOME/.log" ]; then
return 0
fi
return 1
}
if check; then
addActions keymap
fi

View file

@ -0,0 +1,3 @@
#!/bin/env sh
addApplications python-pywal sass

View file

@ -0,0 +1,6 @@
#!/bin/env sh
addApplications zen-browser-bin \
zathura zathura-pdf-mupdf \
onlyoffice-bin \
bitwarden

View file

@ -0,0 +1,18 @@
#!/bin/env sh
addApplications git gnome-keyring \
git-credential-oauth
configure-git-oauth() {
git credential-oauth configure
}
#source ./30-GitUserConfig.sh.add
if ! git config list | grep "credential.helper=oauth" >/dev/null; then
addActions configure-git-oauth
fi
if ! git config list | grep "user.name" > /dev/null; then
addActions git-user-config
fi

View file

@ -0,0 +1,6 @@
#!/bin/env sh
git-user-config() {
git config --global user.email "fedde@eventit.ag"
git config --global user.name "Michel Fedde"
}

View file

@ -0,0 +1,6 @@
#!/bin/env sh
git-user-config() {
git config --global user.email "git@iedsoftworks.com"
git config --global user.name "Michel Fedde"
}

View file

@ -0,0 +1,37 @@
#!/bin/env sh
HYPRDROP_GIT_PATH="$HOME/.cache/hyprdrop"
install_hyprdrop() {
PREV_DIRECTORY=$PWD
if [ ! -d "$HYPRDROP_GIT_PATH" ]; then
git clone https://github.com/kjlo/hyprdrop "$HYPRDROP_GIT_PATH"
fi
cd ~/.cache/hyprdrop
cargo install --path .
cd $PREV_DIRECTORY
}
check_hyprdrop() {
if [ ! -d "$HOME/.cache/hyprdrop" ]; then
return 0
fi
PREV_DIRECTORY=$PWD
cd $HYPRDROP_GIT_PATH
if ! git remote update && git status | grep behind >>/dev/null; then
cd $PREV_DIRECTORY
return 0
fi
return 1
}
if check_hyprdrop; then
addActions install_hyprdrop
fi

View file

@ -0,0 +1,3 @@
#!/bin/env sh
addApplications kdeconnect

View file

@ -0,0 +1,14 @@
#!/bin/env sh
echo "# Installing thunar"
addApplications thunar \
gvfs \
thunar-archive-plugin \
thunar-media-tags-plugin \
thunar-shares-plugin \
thunar-volman \
tumbler \
libgsf \
raw-thumbnailer \
tumbler-extra-thumbnailers

View file

@ -0,0 +1,3 @@
#!/bin/env sh
addApplications vimiv

View file

@ -0,0 +1,4 @@
#!/bin/env sh
addApplications yazi p7zip jq poppler fd ripgrep fzf zoxide imagemagick fuse-archive zip \
blobdrop-git

View file

@ -0,0 +1,3 @@
#!/bin/env sh
addApplications zsh oh-my-zsh