diff --git a/README.md b/README.md index 5fa6285..0613250 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ # SDG-OS -mangoWC dotfiles with DMS integration +mangoWC dotfiles with DMS integration as well as a couple of other things. + +custom stuff: +- pacman and AUR TUIs +- tips +- auto-update +- mango configuration manager TUI +- project manager TUI +- screenshots scripts ## auto-install @@ -157,6 +165,25 @@ you can also see all tips via fzf using the "alltips" command lastly, you'll get a notification popup with a random tip when you press SUPER+0 +# project manager TUI + +SDG-OS comes with an interactive script bound to super+shift+tab, this will preview the paths to all of the git repositories within your projects directory (default ~/projects) + +on the right side, you'll see the contents of that git repository as well as the README.md file. + +when you select a repository, the screen will close and in its place, an instance of VSCode opens with that repository already selected. + +to change your projects dir, you can do the following: + +`echo "MyProjects/Subdir" > ~/.config/projectdir.state` + +this will set your projects dir to /home/YourUserName/MyProjects/Subdir + +you cannot set the projects dir outside of your home folder, it is also not advised to set it directly to your home folder as including .local will cause it to include all your AUR packages. + + + + # contributing @@ -171,6 +198,8 @@ just message me on discord lmao. # Updates: +18-05-2026 - added tips, better ghostty and zsh configuration and a project manager TUI to open your github repo's in VSCode. + 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. diff --git a/ghostty/themes/dankcolors b/ghostty/themes/dankcolors index 577f4ea..2e43346 100644 --- a/ghostty/themes/dankcolors +++ b/ghostty/themes/dankcolors @@ -1,22 +1,22 @@ -background = #0e141c -foreground = #dde3ee -cursor-color = #a1c9ff -selection-background = #004880 -selection-foreground = #dde3ee +background = #101418 +foreground = #e0e2e8 +cursor-color = #9ecafc +selection-background = #154974 +selection-foreground = #e0e2e8 -palette = 0=#0e141c -palette = 1=#ff729b -palette = 2=#7fff91 +palette = 0=#101418 +palette = 1=#ff729c +palette = 2=#7efc8f palette = 3=#fff772 -palette = 4=#87b4f2 -palette = 5=#264876 -palette = 6=#a1c9ff +palette = 4=#84b6ef +palette = 5=#244a74 +palette = 6=#9ecafc palette = 7=#eff6ff -palette = 8=#999ea5 +palette = 8=#979da3 palette = 9=#ff9fbb -palette = 10=#a5ffb2 +palette = 10=#a5ffb1 palette = 11=#fffaa5 -palette = 12=#afd1ff -palette = 13=#bdd9ff -palette = 14=#d4e6ff +palette = 12=#aed3ff +palette = 13=#bcdbff +palette = 14=#d4e8ff palette = 15=#f8fbff diff --git a/install.sh b/install.sh index 6fa741d..fd66aa0 100644 --- a/install.sh +++ b/install.sh @@ -15,6 +15,8 @@ fi stow . -t /home/$(whoami)/.config/ echo "on" > ~/.config/SDGupdate.state +echo "projects" > ~/.config/projectdir.state +mkdir -p ~/projects echo "source /home/$(whoami)/.config/sdgos/zshconfig.zsh" >> ~/.zshrc diff --git a/mango/binds.conf b/mango/binds.conf index 8e3ca1b..902841e 100644 --- a/mango/binds.conf +++ b/mango/binds.conf @@ -36,6 +36,7 @@ bind=SUPER,E,spawn,nautilus ~ bind=SUPER,B,spawn,firefox bind=SUPER,N,spawn_shell,dms ipc call notepad open # open notes bind=SUPER+SHIFT,M,spawn,firefox --new-window https://mangowm.github.io/docs/configuration +bind=SUPER+SHIFT,TAB,spawn_shell,ghostty -e ~/.config/sdgos/tuis/project-select.sh # summon project selection TUI diff --git a/mango/dms/colors.conf b/mango/dms/colors.conf index 1a64ac7..8324447 100644 --- a/mango/dms/colors.conf +++ b/mango/dms/colors.conf @@ -1,6 +1,6 @@ # ! Auto-generated file. Do not edit directly. # Remove source = ./dms/colors.conf from your config to override. -bordercolor = 0x8b919cff -focuscolor = 0xa1c9ffff +bordercolor = 0x8c9199ff +focuscolor = 0x9ecafcff urgentcolor = 0xffb4abff diff --git a/sdgos/tuis/project-select.sh b/sdgos/tuis/project-select.sh new file mode 100755 index 0000000..b3805ef --- /dev/null +++ b/sdgos/tuis/project-select.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +dirstate=$(cat ~/.config/projectdir.state) + +DIR=/home/$(whoami)/$dirstate + +# Find directories containing a '.git' folder and get their absolute paths +REPOS=$(find "$(realpath "$DIR")" -maxdepth 5 -name ".git" -type d -exec dirname {} \; | xargs -I {} readlink -f {}) + +SELECTED=$(echo "$REPOS" | fzf --layout=reverse --preview="clear && eza -al --color=always --group-directories-first --icons {} && echo "-----------------------------------------------------" && cat {}/README.md ") + +echo $SELECTED + +CMD="code-oss -n $SELECTED" + +mmsg -d spawn_shell,"$CMD" \ No newline at end of file