added base project

This commit is contained in:
Jonas_Jones 2024-10-23 21:46:38 +02:00
parent 2578670667
commit 228f31132c
8 changed files with 1797 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.wrangler
node_modules

58
flatpaks.txt Normal file
View file

@ -0,0 +1,58 @@
cc.arduino.IDE2
com.discordapp.Discord
com.github.Matoking.protontricks
com.github.tchx84.Flatseal
com.heroicgameslauncher.hgl
com.mattjakeman.ExtensionManager
com.spotify.Client
com.sublimetext.three
com.usebottles.bottles
com.valvesoftware.Steam
com.visualstudio.code
io.github.shiftey.Desktop
net.lutris.Lutris
org.blender.Blender
org.gaphor.Gaphor
org.gnome.Boxes
org.gnome.seahorse.Application
org.kde.krita
org.libreoffice.LibreOffice
org.mozilla.Thunderbird
page.kramo.Cartridges
org.onlyoffice.desktopeditors
org.videolan.VLC
com.obsproject.Studio
org.qbittorrent.qBittorrent
org.signal.Signal
com.protonvpn.www
org.prismlauncher.PrismLauncher
org.kde.kdenlive
org.torproject.torbrowser-launcher
io.github.ungoogled_software.ungoogled_chromium
org.audacityteam.Audacity
org.gnome.World.PikaBackup
com.skype.Client
org.kde.filelight
com.playonlinux.PlayOnLinux4
org.bleachbit.BleachBit
io.github.thetumultuousunicornofdarkness.cpu-x
fr.romainvigier.MetadataCleaner
net.ankiweb.Anki
io.github.prateekmedia.appimagepool
com.modrinth.ModrinthApp
sh.ppy.osu
io.github.realmazharhussain.GdmSettings
io.github.jonmagon.kdiskmark
io.github.arunsivaramanneo.GPUViewer
ca.desrt.dconf-editor
com.bitwarden.desktop
org.raspberrypi.rpi-imager
org.freedesktop.Piper
xyz.xclicker.xclicker
dev.lasheen.qr
org.gnome.design.IconLibrary
com.jaquadro.NBTExplorer
org.gnome.PowerStats
dev.alextren.Spot
io.github.diegoivan.pdf_metadata_editor
io.github.Foldex.AdwSteamGtk

1461
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

5
package.json Normal file
View file

@ -0,0 +1,5 @@
{
"devDependencies": {
"wrangler": "^3.82.0"
}
}

74
syssetup.sh Executable file
View file

@ -0,0 +1,74 @@
#!/bin/bash
# Check for --help argument
if [[ "$1" == "--help" || "$2" == "--help" ]]; then
echo "Usage: ./script_name.sh [user]"
echo ""
echo "Optional Arguments:"
echo " user user under which to install everything (default: $USER)"
echo " --help Display this help message"
exit 0
fi
# Default values
MAINUSER = $USER
# Use provided arguments or defaults
install_flatpaks() {
# Install flatpak
pacman -S flatpak --no-confirm
# Install the flatpaks
curl -s https://example.com/flatpaks.txt | xargs -n 1 flatpak install --noninteractive --assumeyes
}
install_chaoticaur() {
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key 3056513887B78AEB
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
echo "Appending to /etc/pacman.conf..."
if ! grep -q '\[chaotic-aur\]' /etc/pacman.conf; then
echo -e "\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" | sudo tee -a /etc/pacman.conf > /dev/null
echo "Successfully appended to /etc/pacman.conf."
else
echo "[chaotic-aur] section already exists in /etc/pacman.conf."
fi
}
remove_packages() {
# remove some unwanted gnome apps
sudo pacman -Rns \
gnome-contacts \
gnome-weather \
gnome-clocks \
gnome-maps \
gnome-tour \
gnome-connections \
gnome-music \
gnome-console \
gnome-calendar \
gnome-text-editor \
--noconfirm
}
install_firefox_theme() {
# Command from the firefrox theme github page
curl -s -o- https://raw.githubusercontent.com/rafaelmardojai/firefox-gnome-theme/master/scripts/install-by-curl.sh | bash
}
install_sdkman() {
# Command from the sdkman website
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
}
install_ghcup() {
# Command from the ghcup website
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
}

146
syssetup.txt Normal file
View file

@ -0,0 +1,146 @@
- wifi networks
- show battery percentage
- automatic suspend only on battery power
- dark mode
- touchpad scroll direction traditional
- keyboard layout english us intl with dead keys
- keyboard korean hangul
- shortcut move window one workspace to the left Shift+Super+Page Down
- shortcut move window one workspace to the right Shfit+Super+Page Up
- shortcut switch applications disabled
- shortcut switch windows Alt+Tab
- shortcut next track Shift+F12
- shortcut play or pause Shift+F11
- shortcut previous track Shif+F10
- close windows Ctrl+Q
- time format 24h
- Font to JetBrains Mono (which variant?)
- icon pack Mkos-Big-Sur-Night
- maximize button
- minimize button
- resize with secondary click
- wallpaper
- gnome extensions:
- alphabetical app grid
- battery time
- blur my shell
- caffeine
- clipboard history
- color picker
- compiz alike magic lamp effect
- dash to dock
- ddterm
- disable unredirect fullscreen windows
- fullscreen avoider
- fullscreen hotcorner
- fullscreen to empty workspace
- grand theft focus
- impatience
- just perfection
- media label and controls
- netlabel
- night theme switcher
- power profile switcher
- quick settings tweaker
- rounded corners
- rounded window corners reborn
- soft brightness plus
- supergfxctl-gex
- tray icons reloaded
- removable drive menu
- system monitor
- with all their settings
- sdkman
- ghci
- flatpaks:
- gnome tweaks
- paper clip
- adwsteamgtk
- system packages:
- aseprite
- blockbench
- blueman
- cisco anyconnect uni VPN
- cpupower-gui
- firefox
- jetbrains-toolbox
- lutris
- nvidia-settings
- qjoypad
- scrcpy
- vim
- realvnc-vnc-viewer
- pavucontrol
- android-tools
- adb
- nvtop
- xeyes / xeyes-git
- firefox-pwa
- cowsay
- cargo
- rustc
- npx
- docker
- img2pdf
- stat
- python-pycodestyle
- python-pyautogui
- python-pygame
- python-pylint
- python-tk
- python-matplotlib
- python-praw
- python-spotipy
- python-dotenv
- python-markdown
- python-numpy
- python-pylast
- python-psotipy
- python-pip
- pyright
- spotipy
- spicetify
- jq
- php
- cuda-tools
- cloudflare-wrangler
- man
- alsa-utils
- dpkg
- mkfs.vfat
- fdisk
- rclone
- nvidia-prime
- rpm
- eigen gtk2 libjpeg-turbo libjpeg9 libtiff4 jasper openexr cmake yasm faac opencore-amr libtheora libvorbis xvidcore x264 sphinx texlive-latexextra v4l-utils libdc1394
- python-tk yasm faac opencore-amr libtheora libvorbis xvidcore x264 sphinx texlive-latexextra v4l-utils libdc1394
- bluez-utils
- bluetoothctl
- browsh-bin
- imagemagick
- fprintd
- zip
- supergfxctl
- nvidia
- mesa lib32-mesa xf86-video-intel vulkan-intel intel-hybrid-codec-driver linux-firmware intel-media-driver
- wget
- noto-fonts-emoji
- ark
- ibus
- ibus-hangul
- github-cli
- libadwaita
- yay
- pipewire
- pipewire-pulse
- syncthing
- gnome-tweaks

48
worker.js Normal file
View file

@ -0,0 +1,48 @@
// index.js (or worker.js)
export default {
async fetch(request) {
const url = new URL(request.url);
// Check if the request path is '/'
if (url.pathname === '/') {
// Fetch the shell script file
const script = await fetch('https://raw.githubusercontent.com/JonasunderscoreJones/ArchSystemSetup/refs/heads/master/syssetup.sh');
const scriptText = await script.text();
return new Response(scriptText, {
headers: {
'Content-Type': 'text/plain', // Set the correct content type
'Cache-Control': 'no-store' // Optional: Prevent caching
}
});
}
if (url.pathname === '/flatpaks') {
// Fetch the shell script file
const script = await fetch('https://raw.githubusercontent.com/JonasunderscoreJones/ArchSystemSetup/refs/heads/master/flatpaks.txt');
const scriptText = await script.text();
return new Response(scriptText, {
headers: {
'Content-Type': 'text/plain', // Set the correct content type
'Cache-Control': 'no-store' // Optional: Prevent caching
}
});
}
if (url.pathname === '/packages') {
// Fetch the shell script file
const script = await fetch('https://raw.githubusercontent.com/JonasunderscoreJones/ArchSystemSetup/refs/heads/master/packages.txt');
const scriptText = await script.text();
return new Response(scriptText, {
headers: {
'Content-Type': 'text/plain', // Set the correct content type
'Cache-Control': 'no-store' // Optional: Prevent caching
}
});
}
return new Response('Not Found', { status: 404 });
}
};

3
wrangler.toml Normal file
View file

@ -0,0 +1,3 @@
name = "arch-setup-worker"
main = "worker.js"
compatibility_date = "2023-09-04"