added install script as well as auto-updates.

This commit is contained in:
2026-05-17 15:17:39 +02:00
parent 38c11b2e56
commit ca935ca511
6 changed files with 95 additions and 5 deletions
+2
View File
@@ -0,0 +1,2 @@
install.sh
README.md
+58 -2
View File
@@ -2,18 +2,71 @@
mangoWC dotfiles with DMS integration mangoWC dotfiles with DMS integration
## auto-install
clone the repository into your home (~) directory:
`cd ~`
clone the repo and place the mango and sdgos folders in your .config folder:
`git clone https://git.sdgcloud.nl/SDGDen/SDG-OS.git` `git clone https://git.sdgcloud.nl/SDGDen/SDG-OS.git`
make the install script executable
`cd SDG-OS` `cd SDG-OS`
`chmod a+x install.sh`
run the install script
`./install.sh`
this will also set up automatic updates. any files you manually alter will stop auto-updating.
updates run automatically on startup via git pull, you can update manually by going into the SDG-OS directory and running `git pull`
to turn updates off, run the following command:
`echo "off" > ~/.coinfig/SDGupdate.state`
## manual install
clone the repo.
`git clone https://git.sdgcloud.nl/SDGDen/SDG-OS.git`
copy the files to your .config folder if you want to modify them yourself
`cd SDG-OS`
`cp -r mango ~/.config` `cp -r mango ~/.config`
`cp -r sdgos ~/.config` `cp -r sdgos ~/.config`
or use stow to symlink them if you want automatic updates
`cd SDG-OS`
`stow .`
or manually symlink them
`sudo ln -sf /home/$(whoami)/SDG-OS/mango /home/$(whoami)/.config`
`sudo ln -sf /home/$(whoami)/SDG-OS/sdgos /home/$(whoami)/.config`
then make the scripts in the sdgos folder executable: then make the scripts in the sdgos folder executable:
`sudo chmod -R a+x ~/.config/sdgos` `sudo chmod -R a+x ~/.config/sdgos`
you can also use stow to symlink these to your .config folder instead, this allows you to store the files anywhere and also update via git pull, but means you cannot personally alter the config. lastly, pick whether you want to use automatic updates or not (only relevant if you used stow or symlinks)
`echo "on" > ~/.config/SDGupdate.state`
use "on" for automatic updates on boot or "off" to not have automatic updates
manual updates can be done by CDing into the SDG-OS directory and running `git pull`
you may need to tweak around with some stuff to get application auto-theming to work, reference the DMS docs: you may need to tweak around with some stuff to get application auto-theming to work, reference the DMS docs:
@@ -67,7 +120,10 @@ this script has a variable for the editor, it uses micro by default, but you can
# Updates: # Updates:
17-05-2026 - added auto-updater as well as install script.
17-05-2026 - added screenshot capability through scripts, first run modal (opens settings and keybinds popup on first boot) and added a somewhat-simple mango config editor script. 17-05-2026 - added screenshot capability through scripts, first run modal (opens settings and keybinds popup on first boot) and added a somewhat-simple mango config editor script.
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
echo "installing pre-requisites"
sudo pacman -Syu ghostty firefox dms-shell yay git nautilus brightnessctl pipewire-pulse pipewire matugen adw-gtk-theme wl-copy hyprshot grim satty stow
yay -S mangowm-git dsearch-bin
WORKINGDIR=$(pwd)
if [ $WORKINGDIR != "/home/$(whoami)/SDG-OS"]; then
ln -sf $WORKINGDIR /home/$(whoami)
fi
stow .
echo "on" > ~/.config/SDGupdate.state
chmod -R a+x ~/.config/sdgos
echo "installation complete! you should now be able to log out and switch to \"mango\""
+2
View File
@@ -8,6 +8,8 @@ exec-once=dsearch serve --workers 1 --root ~
exec-once=systemctl --user start hyprpolkitagent exec-once=systemctl --user start hyprpolkitagent
## first-run UI ## first-run UI
exec-once=~/.config/sdgos/firstrun.sh exec-once=~/.config/sdgos/firstrun.sh
## auto-updates (toggle off by either removing ~/.config/SDGupdate.state or running "echo 'off' > ~/.config/SDGupdate.state")
exec-once=~/.config/sdgos/auto-update.sh
# UI # UI
exec-once=ghostty exec-once=ghostty
+2 -2
View File
@@ -1,6 +1,6 @@
# ! Auto-generated file. Do not edit directly. # ! Auto-generated file. Do not edit directly.
# Remove source = ./dms/colors.conf from your config to override. # Remove source = ./dms/colors.conf from your config to override.
bordercolor = 0x958e9bff bordercolor = 0x8e909cff
focuscolor = 0xd6baffff focuscolor = 0xb4c5ffff
urgentcolor = 0xffb4abff urgentcolor = 0xffb4abff
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
state=$(cat ~/.config/SDGupdate.state)
if [ "$state" == "on" ]; then
cd /home/$(whoami)/SDG-OS
git pull
mmsg -d reload-config
fi