Adds bootstrap.v2
This commit is contained in:
parent
06c8003cf2
commit
2bbccb4595
61 changed files with 468 additions and 4 deletions
9
.config/yadm/bootstrap.v2/applications/01-Dependencies.sh
Executable file
9
.config/yadm/bootstrap.v2/applications/01-Dependencies.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/env bash
|
||||
|
||||
addApplications neovim \
|
||||
network-manager-applet \
|
||||
ghostty \
|
||||
btop \
|
||||
zoxide fzf \
|
||||
wifi-qr neovim \
|
||||
brightnessctl
|
||||
5
.config/yadm/bootstrap.v2/applications/02-AMDGPUDrivers.sh##class.PC
Executable file
5
.config/yadm/bootstrap.v2/applications/02-AMDGPUDrivers.sh##class.PC
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications mesa lib32-mesa \
|
||||
xf86-video-amdgpu \
|
||||
vulkan-radeon lib32-vulkan-radeon
|
||||
6
.config/yadm/bootstrap.v2/applications/03-Bluetooth.sh
Executable file
6
.config/yadm/bootstrap.v2/applications/03-Bluetooth.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications bluez \
|
||||
bluez-utils
|
||||
|
||||
sudo systemctl enable --now bluetooth.service
|
||||
28
.config/yadm/bootstrap.v2/applications/10-SDDM.sh##default
Executable file
28
.config/yadm/bootstrap.v2/applications/10-SDDM.sh##default
Executable 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
|
||||
35
.config/yadm/bootstrap.v2/applications/11-DesktopEnv.sh
Executable file
35
.config/yadm/bootstrap.v2/applications/11-DesktopEnv.sh
Executable 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
|
||||
3
.config/yadm/bootstrap.v2/applications/12-Decrypt.sh
Executable file
3
.config/yadm/bootstrap.v2/applications/12-Decrypt.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addActions "yadm decrypt"
|
||||
14
.config/yadm/bootstrap.v2/applications/20-Fonts.sh
Executable file
14
.config/yadm/bootstrap.v2/applications/20-Fonts.sh
Executable 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
|
||||
3
.config/yadm/bootstrap.v2/applications/20-GTKGruvbox.sh
Executable file
3
.config/yadm/bootstrap.v2/applications/20-GTKGruvbox.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications gruvbox-material-icon-theme-git gruvbox-gtk-theme-git
|
||||
31
.config/yadm/bootstrap.v2/applications/20-Keymap.sh
Executable file
31
.config/yadm/bootstrap.v2/applications/20-Keymap.sh
Executable 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
|
||||
3
.config/yadm/bootstrap.v2/applications/20-Theming.sh
Executable file
3
.config/yadm/bootstrap.v2/applications/20-Theming.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications python-pywal sass
|
||||
6
.config/yadm/bootstrap.v2/applications/30-GeneralPrograms.sh
Executable file
6
.config/yadm/bootstrap.v2/applications/30-GeneralPrograms.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications zen-browser-bin \
|
||||
zathura zathura-pdf-mupdf \
|
||||
onlyoffice-bin \
|
||||
bitwarden
|
||||
18
.config/yadm/bootstrap.v2/applications/30-Git.sh
Executable file
18
.config/yadm/bootstrap.v2/applications/30-Git.sh
Executable 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
|
||||
|
|
@ -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"
|
||||
}
|
||||
6
.config/yadm/bootstrap.v2/applications/30-GitUserConfig.sh.add##default
Executable file
6
.config/yadm/bootstrap.v2/applications/30-GitUserConfig.sh.add##default
Executable 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"
|
||||
}
|
||||
37
.config/yadm/bootstrap.v2/applications/30-Hyprdrop.sh
Executable file
37
.config/yadm/bootstrap.v2/applications/30-Hyprdrop.sh
Executable 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
|
||||
3
.config/yadm/bootstrap.v2/applications/30-KDEConnect.sh
Executable file
3
.config/yadm/bootstrap.v2/applications/30-KDEConnect.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications kdeconnect
|
||||
14
.config/yadm/bootstrap.v2/applications/30-Thunar.sh
Executable file
14
.config/yadm/bootstrap.v2/applications/30-Thunar.sh
Executable 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
|
||||
3
.config/yadm/bootstrap.v2/applications/30-Vimiv.sh
Normal file
3
.config/yadm/bootstrap.v2/applications/30-Vimiv.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications vimiv
|
||||
4
.config/yadm/bootstrap.v2/applications/30-Yazi.sh.bak
Executable file
4
.config/yadm/bootstrap.v2/applications/30-Yazi.sh.bak
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications yazi p7zip jq poppler fd ripgrep fzf zoxide imagemagick fuse-archive zip \
|
||||
blobdrop-git
|
||||
3
.config/yadm/bootstrap.v2/applications/30-Zsh.sh
Executable file
3
.config/yadm/bootstrap.v2/applications/30-Zsh.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
addApplications zsh oh-my-zsh
|
||||
Loading…
Add table
Add a link
Reference in a new issue