From 42322f3cccf15dc40f6146e2dc38c959b9d81bb540f470bf82054724108601ca Mon Sep 17 00:00:00 2001 From: MAnitosik Date: Wed, 5 Aug 2026 17:24:44 +0300 Subject: [PATCH] Codeberg migration. First try. --- scripts/dank.sh | 12 ++++++------ scripts/main.sh | 34 +++++++++++++++++----------------- scripts/reset.sh | 44 +++++++++++++++++++++++--------------------- 3 files changed, 46 insertions(+), 44 deletions(-) diff --git a/scripts/dank.sh b/scripts/dank.sh index 9ed95f2..df086c5 100644 --- a/scripts/dank.sh +++ b/scripts/dank.sh @@ -9,12 +9,12 @@ curl -fsSL https://install.danklinux.com | sh dms setup mkdir -p ~/.config/niri/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/niri/config.kdl | tee ~/.config/niri/config.kdl > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/niri/config.kdl | tee ~/.config/niri/config.kdl > /dev/null mkdir -p ~/.config/DankMaterialShell/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/DankMaterialShell/settings.json | tee ~/.config/DankMaterialShell/settings.json > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/DankMaterialShell/clsettings.json | tee ~/.config/DankMaterialShell/clsettings.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/DankMaterialShell/settings.json | tee ~/.config/DankMaterialShell/settings.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/DankMaterialShell/clsettings.json | tee ~/.config/DankMaterialShell/clsettings.json > /dev/null mkdir -p ~/.local/state/DankMaterialShell/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/local/state/DankMaterialShell/session.json | tee ~/.local/state/DankMaterialShell/session.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/local/state/DankMaterialShell/session.json | tee ~/.local/state/DankMaterialShell/session.json > /dev/null mkdir -p ~/.cache/DankMaterialShell/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/cache/DankMaterialShell/cache.json | tee ~/.cache/DankMaterialShell/cache.json > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/cache/DankMaterialShell/dms-colors.json | tee ~/.cache/DankMaterialShell/dms-colors.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/cache/DankMaterialShell/cache.json | tee ~/.cache/DankMaterialShell/cache.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/cache/DankMaterialShell/dms-colors.json | tee ~/.cache/DankMaterialShell/dms-colors.json > /dev/null diff --git a/scripts/main.sh b/scripts/main.sh index 2488a95..dfb8bf7 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -24,20 +24,20 @@ sudo pacman -S --noconfirm --needed moor # https://niri-wm.github.io/niri/Xwayland sudo pacman -S --noconfirm --needed xwayland-satellite pipewire pipewire-pulse xdg-desktop-portal-wlr wl-clipboard cliphist wl-clip-persist gnome-keyring xdg-desktop-portal mkdir -p ~/.config/xdg-desktop-portal/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/xdg-desktop-portal/portals.conf | tee ~/.config/xdg-desktop-portal/portals.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/xdg-desktop-portal/portals.conf | tee ~/.config/xdg-desktop-portal/portals.conf > /dev/null sudo pacman -S --noconfirm --needed xsettingsd mkdir -p ~/.config/xsettingsd/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/xsettingsd/xsettingsd.conf | tee ~/.config/xsettingsd/xsettingsd.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/xsettingsd/xsettingsd.conf | tee ~/.config/xsettingsd/xsettingsd.conf > /dev/null sudo pacman -S --noconfirm --needed gtk3 gtk4 qt5-base qt6-base sudo pacman -S --noconfirm --needed xorg-xwayland xorg cava cups-pk-helper i2c-tools iwd matugen networkmanager qt6-multimedia qt6ct systemd wtype sudo pacman -S --noconfirm --needed adw-gtk-theme papirus-icon-theme nerd-fonts flatpak install -y org.gtk.Gtk3theme.adw-gtk3 org.gtk.Gtk3theme.adw-gtk3-dark mkdir -p ~/.config/gtk-3.0/ mkdir -p ~/.config/gtk-4.0/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-3.0/settings.ini | tee ~/.config/gtk-3.0/settings.ini > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-3.0/gtk.css | tee ~/.config/gtk-3.0/gtk.css > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-4.0/settings.ini | tee ~/.config/gtk-4.0/settings.ini > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-4.0/gtk.css | tee ~/.config/gtk-4.0/gtk.css > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-3.0/settings.ini | tee ~/.config/gtk-3.0/settings.ini > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-3.0/gtk.css | tee ~/.config/gtk-3.0/gtk.css > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-4.0/settings.ini | tee ~/.config/gtk-4.0/settings.ini > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-4.0/gtk.css | tee ~/.config/gtk-4.0/gtk.css > /dev/null gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark' gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark' gsettings set org.gnome.desktop.interface cursor-theme 'Papirus-Dark' @@ -73,14 +73,14 @@ EOF sudo pacman -S --noconfirm --needed cachyos-gaming-meta sudo pacman -S --noconfirm --needed gamescope mangohud lib32-mangohud mkdir -p ~/.config/MangoHud/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/MangoHud/MangoHud.conf | tee ~/.config/MangoHud/MangoHud.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/MangoHud/MangoHud.conf | tee ~/.config/MangoHud/MangoHud.conf > /dev/null sudo pacman -S --noconfirm --needed heroic-games-launcher-bin steam yay -S --noconfirm --needed hydra-launcher-bin flatpak install -y flathub com.usebottles.bottles mkdir -p ~/.config/environment.d/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/environment.d/env.conf | tee ~/.config/environment.d/env.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/environment.d/env.conf | tee ~/.config/environment.d/env.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/udev/rules.d/60-ioschedulers.rules | sudo tee /etc/udev/rules.d/60-ioschedulers.rules > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/udev/rules.d/60-ioschedulers.rules | sudo tee /etc/udev/rules.d/60-ioschedulers.rules > /dev/null # https://github.com/sched-ext/scx-loader/tree/main/crates/scx_loader # https://github.com/sched-ext/scx-loader/blob/main/crates/scx_loader/configuration.md @@ -88,7 +88,7 @@ curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc sudo pacman -S --noconfirm --needed scx-scheds scx-tools sudo systemctl disable --now ananicy-cpp sudo mkdir -p /etc/scx_loader/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/scx_loader/config.toml | sudo tee /etc/scx_loader/config.toml > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/scx_loader/config.toml | sudo tee /etc/scx_loader/config.toml > /dev/null sudo systemctl enable --now scx_loader.service ## ## CachyOS @@ -113,15 +113,15 @@ systemctl disable --user --now arch-update.timer sudo systemctl disable --now power-profiles-daemon.service sudo pacman -Rns --noconfirm power-profiles-daemon sudo pacman -S --noconfirm --needed cpupower -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/default/cpupower-service.conf | sudo tee /etc/default/cpupower-service.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/default/cpupower-service.conf | sudo tee /etc/default/cpupower-service.conf > /dev/null sudo systemctl enable --now cpupower.service sudo mkdir -p /etc/systemd/resolved.conf.d/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/systemd/resolved.conf.d/resolved.conf | sudo tee /etc/systemd/resolved.conf.d/resolved.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/hosts | sudo tee /etc/hosts > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/systemd/resolved.conf.d/resolved.conf | sudo tee /etc/systemd/resolved.conf.d/resolved.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/hosts | sudo tee /etc/hosts > /dev/null mkdir -p /etc/sysctl.d/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/sysctl.d/99-arch.conf | sudo tee /etc/sysctl.d/99-arch.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/sysctl.d/99-arch.conf | sudo tee /etc/sysctl.d/99-arch.conf > /dev/null mkdir -p /etc/modules-load.d/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/modules-load.d/modules.conf | sudo tee /etc/modules-load.d/modules.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/modules-load.d/modules.conf | sudo tee /etc/modules-load.d/modules.conf > /dev/null sudo pacman -S --noconfirm --needed bazaar chromium @@ -141,7 +141,7 @@ flatpak install -y flathub org.onlyoffice.desktopeditors com.github.PintaProject sudo pacman -S --noconfirm --needed telegram-desktop torbrowser-launcher lact gnome-firmware ventoy-bin flatpak install -y flathub com.discordapp.Discord mkdir -p ~/.config/user-tmpfiles.d/ -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/user-tmpfiles.d/discord.conf | tee ~/.config/user-tmpfiles.d/discord.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/user-tmpfiles.d/discord.conf | tee ~/.config/user-tmpfiles.d/discord.conf > /dev/null yay -S --noconfirm --needed amneziavpn-bin sudo sh -c "$(curl -Ls https://github.com/v2rayA/v2rayA-installer/raw/main/installer.sh)" @ --with-xray sudo systemctl enable --now v2raya.service @@ -160,6 +160,6 @@ sudo pacman -S --noconfirm --needed blender godot-mono # https://wiki.archlinux.org/title/Default_applications # https://wiki.archlinux.org/title/XDG_MIME_Applications # https://github.com/basecamp/omarchy/blob/quattro/default/applications/mimeapps.list -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/mimeapps.list | tee ~/.config/mimeapps.list > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/mimeapps.list | tee ~/.config/mimeapps.list > /dev/null sudo limine-mkinitcpio diff --git a/scripts/reset.sh b/scripts/reset.sh index 8868b9c..944a688 100644 --- a/scripts/reset.sh +++ b/scripts/reset.sh @@ -1,24 +1,26 @@ systemctl --user stop dms -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/xdg-desktop-portal/portals.conf | tee ~/.config/xdg-desktop-portal/portals.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/xsettingsd/xsettingsd.conf | tee ~/.config/xsettingsd/xsettingsd.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-3.0/settings.ini | tee ~/.config/gtk-3.0/settings.ini > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-3.0/gtk.css | tee ~/.config/gtk-3.0/gtk.css > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-4.0/settings.ini | tee ~/.config/gtk-4.0/settings.ini > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/gtk-4.0/gtk.css | tee ~/.config/gtk-4.0/gtk.css > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/xdg-desktop-portal/portals.conf | tee ~/.config/xdg-desktop-portal/portals.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/xsettingsd/xsettingsd.conf | tee ~/.config/xsettingsd/xsettingsd.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-3.0/settings.ini | tee ~/.config/gtk-3.0/settings.ini > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-3.0/gtk.css | tee ~/.config/gtk-3.0/gtk.css > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-4.0/settings.ini | tee ~/.config/gtk-4.0/settings.ini > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/gtk-4.0/gtk.css | tee ~/.config/gtk-4.0/gtk.css > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/MangoHud/MangoHud.conf | tee ~/.config/MangoHud/MangoHud.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/environment.d/env.conf | tee ~/.config/environment.d/env.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/udev/rules.d/60-ioschedulers.rules | sudo tee /etc/udev/rules.d/60-ioschedulers.rules > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/scx_loader/config.toml | sudo tee /etc/scx_loader/config.toml > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/MangoHud/MangoHud.conf | tee ~/.config/MangoHud/MangoHud.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/environment.d/env.conf | tee ~/.config/environment.d/env.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/udev/rules.d/60-ioschedulers.rules | sudo tee /etc/udev/rules.d/60-ioschedulers.rules > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/scx_loader/config.toml | sudo tee /etc/scx_loader/config.toml > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/default/cpupower-service.conf | sudo tee /etc/default/cpupower-service.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/systemd/resolved.conf.d/resolved.conf | sudo tee /etc/systemd/resolved.conf.d/resolved.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/etc/hosts | sudo tee /etc/hosts > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/default/cpupower-service.conf | sudo tee /etc/default/cpupower-service.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/systemd/resolved.conf.d/resolved.conf | sudo tee /etc/systemd/resolved.conf.d/resolved.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/hosts | sudo tee /etc/hosts > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/sysctl.d/99-arch.conf | sudo tee /etc/sysctl.d/99-arch.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/etc/modules-load.d/modules.conf | sudo tee /etc/modules-load.d/modules.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/user-tmpfiles.d/discord.conf | tee ~/.config/user-tmpfiles.d/discord.conf > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/user-tmpfiles.d/discord.conf | tee ~/.config/user-tmpfiles.d/discord.conf > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/mimeapps.list | tee ~/.config/mimeapps.list > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/mimeapps.list | tee ~/.config/mimeapps.list > /dev/null rm -r ~/.config/DankMaterialShell ~/.local/state/DankMaterialShell ~/.cache/DankMaterialShell ~/.config/niri/ mkdir -p ~/.config/DankMaterialShell/ @@ -26,11 +28,11 @@ mkdir -p ~/.local/state/DankMaterialShell/ mkdir -p ~/.cache/DankMaterialShell/ mkdir -p ~/.config/niri/ dms setup -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/niri/config.kdl | tee ~/.config/niri/config.kdl > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/DankMaterialShell/settings.json | tee ~/.config/DankMaterialShell/settings.json > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/config/DankMaterialShell/clsettings.json | tee ~/.config/DankMaterialShell/clsettings.json > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/local/state/DankMaterialShell/session.json | tee ~/.local/state/DankMaterialShell/session.json > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/cache/DankMaterialShell/cache.json | tee ~/.cache/DankMaterialShell/cache.json > /dev/null -curl -fsSL https://raw.githubusercontent.com/MAnitosik/cachy/refs/heads/main/cache/DankMaterialShell/dms-colors.json | tee ~/.cache/DankMaterialShell/dms-colors.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/niri/config.kdl | tee ~/.config/niri/config.kdl > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/DankMaterialShell/settings.json | tee ~/.config/DankMaterialShell/settings.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/config/DankMaterialShell/clsettings.json | tee ~/.config/DankMaterialShell/clsettings.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/local/state/DankMaterialShell/session.json | tee ~/.local/state/DankMaterialShell/session.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/cache/DankMaterialShell/cache.json | tee ~/.cache/DankMaterialShell/cache.json > /dev/null +curl -fsSL https://codeberg.org/MAnitosik/dotfiles/raw/branch/main/cache/DankMaterialShell/dms-colors.json | tee ~/.cache/DankMaterialShell/dms-colors.json > /dev/null sudo systemctl reboot