Compare commits
3 Commits
cd47fec705
...
97d4712554
| Author | SHA1 | Date | |
|---|---|---|---|
| 97d4712554 | |||
| 671d6220d1 | |||
| dd1341526d |
@@ -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
|
||||
|
||||
@@ -101,11 +109,17 @@ grim
|
||||
satty
|
||||
fzf
|
||||
micro
|
||||
stow
|
||||
zoxide
|
||||
zsh
|
||||
zsh-theme-powerlevel10k
|
||||
eza
|
||||
kanshi
|
||||
|
||||
|
||||
# installation of that software:
|
||||
|
||||
`sudo pacman -Syu ghostty firefox dms-shell yay git nautilus brightnessctl pipewire-pulse pipewire matugen adw-gtk-theme wl-copy hyprshot grim satty`
|
||||
`sudo pacman -Syu ghostty firefox dms-shell yay git nautilus brightnessctl pipewire-pulse pipewire matugen adw-gtk-theme wl-copy hyprshot grim satty stow zoxide zsh zsh-theme-powerlevel10k eza kanshi`
|
||||
|
||||
`yay -S mangowm-git dsearch-bin`
|
||||
|
||||
@@ -117,6 +131,60 @@ you can open the mango config editor with super+m, this opens a terminal in whic
|
||||
this script has a variable for the editor, it uses micro by default, but you can change the line "app=micro" to any editor you'd like.
|
||||
|
||||
|
||||
# ghostty config
|
||||
|
||||
SDG-OS ships with a ghostty config that syncs your theme with DMS, sets ghostty to use zsh and configure some basic keybinds for multi-window:
|
||||
ctrl+arrow keys for splitting the pane
|
||||
ctrl+r to reload the config
|
||||
|
||||
you can exit a pane by simply typing exit. panes are auto-focused with the mouse and can be resized using mouse drags.
|
||||
|
||||
# zsh config
|
||||
|
||||
zsh is set up with a couple of interesting tweaks:
|
||||
|
||||
eza replaces the standard ls command and zoxide replaces the cd command, allowing you to more easily navigate your system.
|
||||
|
||||
find has been replaced with a fzf implementation, and the command microfind will automatically open the selected file in micro. both of these have previews.
|
||||
|
||||
lastly, zsh also has some suffix aliasses, which allow you to open specific filetypes in their prefered program by just entering the file as the command.
|
||||
|
||||
# installer TUIs
|
||||
|
||||
SDG-OS comes with installer TUIs for both pacman and the AUR
|
||||
|
||||
these can be spawned with super+y for pacman or super+shift+y for AUR
|
||||
|
||||
alternatively, you can open them in the terminal using `pacgui` and `aurgui`
|
||||
|
||||
# Tips
|
||||
|
||||
SDG-OS comes with a built in tips system
|
||||
a random tip is shown when ghostty is opened as well as when the "tipme" command is ran
|
||||
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
|
||||
|
||||
anyone with an SDGCloud account can work on forks of this repository and send code in for review, just shoot me a message if you have something interesting for the config and i'll take a look at it!
|
||||
@@ -130,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.
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
theme = dankcolors
|
||||
|
||||
background-opacity = 0.7
|
||||
|
||||
command = /bin/zsh
|
||||
|
||||
initial-command = /bin/zsh -c fastfetch && echo "" && shuf -n 1 ~/.config/sdgos/tips/tips.list && echo "[SDG-OS Tips]: use the 'tipme' command for random tips" && echo "[SDG-OS Tips]: 'alltips' to see all tips in a searchable interface" && echo "[SDG-OS Tips]: or the SUPER+0 keybind to be notified of a random tip" && zsh
|
||||
|
||||
scrollback-limit = 999999
|
||||
|
||||
link-url = true
|
||||
link-previews = true
|
||||
|
||||
window-decoration = none
|
||||
|
||||
focus-follows-mouse = true
|
||||
|
||||
shell-integration = zsh
|
||||
|
||||
window-inherit-working-directory = false
|
||||
tab-inherit-working-directory = true
|
||||
split-inherit-working-directory = true
|
||||
|
||||
|
||||
|
||||
keybind = ctrl+up=new_split:up
|
||||
keybind = ctrl+down=new_split:down
|
||||
keybind = ctrl+left=new_split:left
|
||||
keybind = ctrl+right=new_split:right
|
||||
keybind = ctrl+r=reload_config
|
||||
@@ -0,0 +1,22 @@
|
||||
background = #101418
|
||||
foreground = #e0e2e8
|
||||
cursor-color = #9ecafc
|
||||
selection-background = #154974
|
||||
selection-foreground = #e0e2e8
|
||||
|
||||
palette = 0=#101418
|
||||
palette = 1=#ff729c
|
||||
palette = 2=#7efc8f
|
||||
palette = 3=#fff772
|
||||
palette = 4=#84b6ef
|
||||
palette = 5=#244a74
|
||||
palette = 6=#9ecafc
|
||||
palette = 7=#eff6ff
|
||||
palette = 8=#979da3
|
||||
palette = 9=#ff9fbb
|
||||
palette = 10=#a5ffb1
|
||||
palette = 11=#fffaa5
|
||||
palette = 12=#aed3ff
|
||||
palette = 13=#bcdbff
|
||||
palette = 14=#d4e8ff
|
||||
palette = 15=#f8fbff
|
||||
@@ -0,0 +1,22 @@
|
||||
palette = 0=#1c1e1e
|
||||
palette = 1=#ff6b5a
|
||||
palette = 2=#98be65
|
||||
palette = 3=#f2c481
|
||||
palette = 4=#51afef
|
||||
palette = 5=#dc8ef3
|
||||
palette = 6=#46d9ff
|
||||
palette = 7=#bbc2cf
|
||||
palette = 8=#2e323a
|
||||
palette = 9=#ff7665
|
||||
palette = 10=#a9cf76
|
||||
palette = 11=#f2c481
|
||||
palette = 12=#47a5e5
|
||||
palette = 13=#c678dd
|
||||
palette = 14=#4db5bd
|
||||
palette = 15=#f0f6fc
|
||||
background = #1c1e1e
|
||||
foreground = #fffcf8
|
||||
cursor-color = #bbc2cf
|
||||
cursor-text = #1c1e1e
|
||||
selection-background = #fffcf8
|
||||
selection-foreground = #2d3138
|
||||
+7
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
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
|
||||
sudo pacman -Syu ghostty firefox dms-shell yay git nautilus brightnessctl pipewire-pulse pipewire matugen adw-gtk-theme wl-copy hyprshot grim satty stow zoxide zsh zsh-theme-powerlevel10k eza kanshi
|
||||
|
||||
yay -S mangowm-git dsearch-bin
|
||||
|
||||
@@ -12,9 +12,14 @@ if [ $WORKINGDIR != "/home/$(whoami)/SDG-OS"]; then
|
||||
ln -sf $WORKINGDIR /home/$(whoami)
|
||||
fi
|
||||
|
||||
stow .
|
||||
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
|
||||
|
||||
|
||||
chmod -R a+x ~/.config/sdgos
|
||||
|
||||
|
||||
+5
-1
@@ -1,6 +1,6 @@
|
||||
# Example binds
|
||||
|
||||
bind=SUPER,R,reload_config # reload mango config
|
||||
bind=SUPER,R,reload_config
|
||||
# Actions
|
||||
|
||||
# window management
|
||||
@@ -26,6 +26,8 @@ bind=SUPER,Z,spawn_shell,dms ipc call powermenu toggle # toggle power menu
|
||||
bind=SUPER,S,spawn_shell,dms ipc call settings toggle # toggle settings
|
||||
bind=SUPER,K,spawn_shell,dms ipc call keybinds toggleWithPath mangowc ~/.config/mango/binds.conf # show binds
|
||||
bind=SUPER,M,spawn_shell,ghostty -e ~/.config/sdgos/mango-config.sh # show mango config editor
|
||||
bind=SUPER,Y,spawn_shell,ghostty -e ~/.config/sdgos/tuis/pkg-install.sh # install packages
|
||||
bind=SUPER+SHIFT,Y,spawn_shell,ghostty -e ~/.config/sdgos/tuis/aur-install.sh # install AUR packages
|
||||
|
||||
#program launchers
|
||||
bind=SUPER,RETURN,spawn_shell,ghostty
|
||||
@@ -34,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
|
||||
|
||||
|
||||
|
||||
@@ -56,6 +59,7 @@ bind=NONE,PRINT,spawn_shell,~/.config/sdgos/screenshots/mode-toggle.sh # toggle
|
||||
# Other
|
||||
bind=NONE,XF86WLAN,spawn_shell,nmcli radio wifi toggle # toggle wifi
|
||||
bind=NONE,XF86Refresh,spawn_shell,xdotool key F5 # refresh
|
||||
bind=SUPER,0,spawn_shell,notify-send "SDG-OS Tips" "$(shuf -n 1 ~/.config/sdgos/tips/tips.list | sed 's/.*: //')" # show tip
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind=SUPER,left,focusdir,left
|
||||
|
||||
@@ -11,3 +11,4 @@ source=~/.config/mango/dms/colors.conf
|
||||
source=~/.config/mango/dms/layout.conf
|
||||
source=~/.config/mango/dms/outputs.conf
|
||||
source=~/.config/mango/dms/cursor.conf
|
||||
source=~/.config/mango/dms/binds.conf
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ! Auto-generated file. Do not edit directly.
|
||||
# Remove source = ./dms/colors.conf from your config to override.
|
||||
|
||||
bordercolor = 0x8e909cff
|
||||
focuscolor = 0xb4c5ffff
|
||||
bordercolor = 0x8c9199ff
|
||||
focuscolor = 0x9ecafcff
|
||||
urgentcolor = 0xffb4abff
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
[SDG-OS Tips]: did you know? you can use SUPER+K to open the keybinds list
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+P to pin a window across workspaces
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+L to lock your session quickly
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+SPACE to open the application launcher
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+V to toggle the clipboard
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+I to toggle sleep inhibit mode
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+D to toggle the dock visibility
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+X to open the process list
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+N to open your notifications
|
||||
[SDG-OS Tips]: Did to know? You can use SUPER+S to toggle your settings menu
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+M to show the mangoWM config editor
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+Y to install packages via the GUI
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+SHIFT+Y to install AUR packages
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+R to reload your configuration
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+SHIFT+Q to exit mangoWM
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+T to float or unfloat the active window
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+F to fullscreen the active window
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+Q to close the active window
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+left/right/up/down to focus windows
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+Ctrl+left/right/up/down to swap panes
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+Alt+left/right/up/down to resize windows
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+SHIFT+[1-9] to move windows to specific workspaces
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+[1-9] to focus specific workspaces
|
||||
[SDG-OS Tips]: Did you know? You can use SUPER+SHIFT+up/down to exchange stack direction
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Arrow keys in Ghostty to split panes
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+R in Ghostty to reload the configuration
|
||||
[SDG-OS Tips]: Did you know? You can use zoxide's 'cd' integration to jump between directories you've visited before using partial names with fzf
|
||||
[SDG-OS Tips]: Did you know? You can use 'pacgui' to launch the graphical package installer
|
||||
[SDG-OS Tips]: Did you know? You can use 'aurgui' to launch the AUR installation interface
|
||||
[SDG-OS Tips]: Did you know? You can use 'find' to search files with a beautiful preview via fzf and bat
|
||||
[SDG-OS Tips]: Did you know? You can use 'microfind' to quickly search for and open a file in micro using fzf
|
||||
[SDG-OS Tips]: Did you know? You can use 'lt' to view a directory in a tree-like format
|
||||
[SDG-OS Tips]: Did you know? You can use 'l.' to show only hidden dotfiles in your current directory
|
||||
[SDG-OS Tips]: Did you know? You can use '..' or '...' to navigate up directory levels quickly
|
||||
[SDG-OS Tips]: Did you know? You can use 'update' to run a full system upgrade with sudo pacman -Syu
|
||||
[SDG-OS Tips]: Did you know? You can use 'gitpkg' to quickly count installed -git packages
|
||||
[SDG-OS Tips]: Did you know? You can use 'please' as a shortcut for 'sudo'
|
||||
[SDG-OS Tips]: Did you know? You can use 'jctl' to view the most recent system errors via journalctl
|
||||
[SDG-OS Tips]: Did you know? Most file types like .json, .md, and .toml open directly in micro whn they're called in the terminal without any command
|
||||
[SDG-OS Tips]: Did you know? common image files like .png, .jpg and .webp open directly in satty when they're called in the terminal without any command
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Ss package" to search for a package in the official repos
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Si package" to see detailed info about a package
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qdt" to list orphaned packages (no longer required)
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Rns package" to remove a package and its dependencies
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Syu --needed" to upgrade only packages with updates available
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qe" to list explicitly installed packages
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qn" to list native packages (not from AUR)
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qm" to list packages installed from AUR
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Ql package" to list all files installed by a package
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qo /path/to/file" to find which package owns a file
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Scc" to clean all cached packages (use with caution)
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Fy" to sync the file database for searching files
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Fs filename" to search for a file in all packages
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -U /path/to/package.pkg.tar.zst" to install a local package
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Sw package" to download a package without installing it
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Sc" to clean old package versions from the cache
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qk package" to check for missing files in a package
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qkk package" to check for extra files in a package
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qii package" to see extended info about an installed package
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Qs keyword" to search for installed packages matching a keyword
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --asdeps package" to install a package as a dependency
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --overwrite='*' package" to force overwrite conflicting files
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --needed package" to install a package only if not already installed
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --noconfirm package" to skip confirmation prompts
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Rc package" to remove a package and its reverse dependencies
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Sy archlinux-keyring" to update the Arch Linux keyring if pacman fails
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Syy" to force a refresh of the package database
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -Syyu" to force a full sync and upgrade (use with caution)
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --dbonly" to update the package database without upgrading
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --debug" to enable debug output for troubleshooting
|
||||
[SDG-OS Tips]: Did you know? You can use "pacman -S --overwrite='filepath'" to resolve file conflicts during installation
|
||||
[SDG-OS Tips]: Did you know? You can use "man command" to read the manual page for any command
|
||||
[SDG-OS Tips]: Did you know? You can use "tldr command" to see practical examples for a command
|
||||
[SDG-OS Tips]: Did you know? You can use "btop" to view and manage system processes interactively
|
||||
[SDG-OS Tips]: Did you know? You can use "journalctl -xe" to view system logs with details
|
||||
[SDG-OS Tips]: Did you know? You can use "df -h" to check disk space usage in a human-readable format
|
||||
[SDG-OS Tips]: Did you know? You can use "du -sh *" to check the size of files and directories in the current folder
|
||||
[SDG-OS Tips]: Did you know? You can use "ncdu" to analyze disk usage interactively
|
||||
[SDG-OS Tips]: Did you know? You can use "systemctl status" to check the status of system services
|
||||
[SDG-OS Tips]: Did you know? You can use "systemctl enable --now service" to enable and start a service immediately
|
||||
[SDG-OS Tips]: Did you know? You can use "systemctl disable --now service" to disable and stop a service immediately
|
||||
[SDG-OS Tips]: Did you know? You can use "uptime" to see how long the system has been running
|
||||
[SDG-OS Tips]: Did you know? You can use "uname -a" to see detailed system information
|
||||
[SDG-OS Tips]: Did you know? You can use "lscpu" to see detailed CPU information
|
||||
[SDG-OS Tips]: Did you know? You can use "lsblk" to list all block devices (disks and partitions)
|
||||
[SDG-OS Tips]: Did you know? You can use "free -h" to check memory usage in a human-readable format
|
||||
[SDG-OS Tips]: Did you know? You can use "dmesg" to view kernel ring buffer messages for debugging
|
||||
[SDG-OS Tips]: Did you know? You can use "strace command" to trace system calls and signals for a command
|
||||
[SDG-OS Tips]: Did you know? You can use "lsof" to list open files and processes using them
|
||||
[SDG-OS Tips]: Did you know? You can use "ss -tulnp" to list all listening ports and associated processes
|
||||
[SDG-OS Tips]: Did you know? You can use "ip a" to list all network interfaces and their details
|
||||
[SDG-OS Tips]: Did you know? You can use "ping example.com" to test network connectivity to a host
|
||||
[SDG-OS Tips]: Did you know? You can use "mtr example.com" to combine ping and traceroute for network diagnostics
|
||||
[SDG-OS Tips]: Did you know? You can use "curl ifconfig.me" to quickly check your public IP address
|
||||
[SDG-OS Tips]: Did you know? You can use "tar -czvf archive.tar.gz /path" to create a compressed tar archive
|
||||
[SDG-OS Tips]: Did you know? You can use "scp file user@host:/path" to securely copy files over SSH
|
||||
[SDG-OS Tips]: Did you know? You can use "rsync -avz source/ destination/" to sync directories efficiently
|
||||
[SDG-OS Tips]: Did you know? You can use "chmod +x script" to make a script executable
|
||||
[SDG-OS Tips]: Did you know? You can use "chown user:group file" to change the owner and group of a file
|
||||
[SDG-OS Tips]: Did you know? You can use "grep -r 'pattern' /path" to search for a text pattern in files
|
||||
[SDG-OS Tips]: Did you know? You can use "sed -i 's/old/new/g' file" to replace text in a file
|
||||
[SDG-OS Tips]: Did you know? You can use "awk '{print $1}' file" to print the first column of a file
|
||||
[SDG-OS Tips]: Did you know? You can use "xargs" to build and execute commands from standard input
|
||||
[SDG-OS Tips]: Did you know? You can use "cd foo" to jump to a directory containing "foo" in its name with zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd foo bar" to jump to a directory containing both "foo" and "bar" with zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd -" to jump back to the previous directory with zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd ~" to jump to your home directory with zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd /" to jump to the root directory with zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd .." to jump up one directory level with zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd -- list" to see your most frequently visited directories in zoxide
|
||||
[SDG-OS Tips]: Did you know? You can use "cd -- purge" to remove directories no longer on your filesystem from zoxide's database
|
||||
[SDG-OS Tips]: Did you know? You can use "cd -- query foo" to see all directories matching "foo" without jumping
|
||||
[SDG-OS Tips]: Did you know? You can use "!!" to repeat the last command in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "!$" to reference the last argument of the previous command in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "cd -" to switch to the previous directory in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "ls "/*.txt" to recursively list all .txt files in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "=command" (e.g., "=ls") to see the full path of a command in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "alt+." to insert the last argument of the previous command in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "alt+?" to search backward in zsh's history
|
||||
[SDG-OS Tips]: Did you know? You can use "fc" to edit and re-run the last command in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "history -i" to incrementally search your command history in zsh
|
||||
[SDG-OS Tips]: Did you know? you can use the command "cmdhist" to interactively search through past commands and send them back to the terminal input
|
||||
[SDG-OS Tips]: Did you know? You can use "print -z" to add a command to the buffer without executing it in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use "zsh-stat" to check your zsh version and configuration details
|
||||
[SDG-OS Tips]: Did you know? You can use "zsh-add-file" to source a file temporarily in your zsh session
|
||||
[SDG-OS Tips]: Did you know? You can use "zsh-remove-file" to unsource a file from your zsh session
|
||||
[SDG-OS Tips]: Did you know? You can use "zsh-watch" to monitor a file for changes and re-source it in zsh
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Shift+T to open a new tab in ghostty
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Shift+W to close the current tab in ghostty
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Shift+F to search for text in ghostty's scrollback
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Shift+C and Ctrl+Shift+V for copy/paste in ghostty
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Shift+P to open ghostty's command palette
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Shift++ and Ctrl+Shift+- to increase/decrease font size in ghostty
|
||||
[SDG-OS Tips]: Did you know? You can use "ls" to list files and directories in the current folder
|
||||
[SDG-OS Tips]: Did you know? You can use "pwd" to print the current working directory
|
||||
[SDG-OS Tips]: Did you know? You can use "mkdir" to create a new directory
|
||||
[SDG-OS Tips]: Did you know? You can use "cd" to change directories
|
||||
[SDG-OS Tips]: Did you know? You can use "rmdir" to delete empty directories
|
||||
[SDG-OS Tips]: Did you know? You can use "cat" to display file contents
|
||||
[SDG-OS Tips]: Did you know? You can use "cp" to copy files or directories
|
||||
[SDG-OS Tips]: Did you know? You can use "mv" to move or rename files
|
||||
[SDG-OS Tips]: Did you know? You can use "rm" to delete files permanently
|
||||
[SDG-OS Tips]: Did you know? You can use "uname" to display system information
|
||||
[SDG-OS Tips]: Did you know? You can use "locate" to find files using a database
|
||||
[SDG-OS Tips]: Did you know? You can use "touch" to create empty files
|
||||
[SDG-OS Tips]: Did you know? You can use "ln" to create links between files
|
||||
[SDG-OS Tips]: Did you know? You can use "clear" to clear the terminal screen
|
||||
[SDG-OS Tips]: Did you know? You can use "ps" to display running processes
|
||||
[SDG-OS Tips]: Did you know? You can use "man" to display command manuals
|
||||
[SDG-OS Tips]: Did you know? You can use "grep" to search text patterns in files
|
||||
[SDG-OS Tips]: Did you know? You can use "echo" to display text in the terminal
|
||||
[SDG-OS Tips]: Did you know? You can use "wget" to download files from the internet
|
||||
[SDG-OS Tips]: Did you know? You can use "whoami" to display the current user
|
||||
[SDG-OS Tips]: Did you know? You can use "sort" to sort file contents
|
||||
[SDG-OS Tips]: Did you know? You can use "cal" to display the calendar
|
||||
[SDG-OS Tips]: Did you know? You can use "whereis" to locate command files
|
||||
[SDG-OS Tips]: Did you know? You can use "df" to display disk space usage
|
||||
[SDG-OS Tips]: Did you know? You can use "wc" to count words, lines, and characters in a file
|
||||
[SDG-OS Tips]: Did you know? You can use Tab to auto-complete commands and filenames in the terminal
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+C to stop a running command in the terminal
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+Z to suspend a running command and return to the shell
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+D to exit the current shell session
|
||||
[SDG-OS Tips]: Did you know? You can use Ctrl+L to clear the terminal screen (same as `clear`)
|
||||
[SDG-OS Tips]: Did you know? You can use Up/Down Arrow to navigate through command history
|
||||
[SDG-OS Tips]: Did you know? You can use "sudo !!" to re-run the last command with sudo
|
||||
[SDG-OS Tips]: Did you know? You can use "!! | grep "pattern"" to search the output of the last command
|
||||
[SDG-OS Tips]: Did you know? You can use "> file.txt" to redirect command output to a file
|
||||
[SDG-OS Tips]: Did you know? You can use ">> file.txt" to append command output to a file
|
||||
[SDG-OS Tips]: Did you know? You can use "|" to pipe the output of one command to another (e.g., `ls | grep "file"`)
|
||||
[SDG-OS Tips]: Did you know? You can open the overview by moving your mouse to the bottom left corner of the screen.
|
||||
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Show a fuzzy-finder TUI for picking new AUR packages to install.
|
||||
|
||||
fzf_args=(
|
||||
--multi
|
||||
--preview 'clear && yay -Siia {1}'
|
||||
--preview-label='alt-p: toggle description, alt-b/B: toggle PKGBUILD, alt-j/k: scroll, tab: multi-select'
|
||||
--preview-label-pos='bottom'
|
||||
--preview-window 'left:65%:wrap'
|
||||
--bind 'alt-p:toggle-preview'
|
||||
--bind 'alt-d:preview-half-page-down,alt-u:preview-half-page-up'
|
||||
--bind 'alt-k:preview-up,alt-j:preview-down'
|
||||
--bind 'alt-b:change-preview:clear && yay -Gpa {1} | tail -n +5'
|
||||
--bind 'alt-B:change-preview:clear && yay -Siia {1}'
|
||||
--color 'pointer:green,marker:green'
|
||||
)
|
||||
|
||||
pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
||||
|
||||
if [[ -n $pkg_names ]]; then
|
||||
# Add aur/ prefix to each package name and convert to space-separated for yay
|
||||
sudo -v
|
||||
echo "$pkg_names" | sed 's/^/aur\//' | tr '\n' ' ' | xargs yay -S --noconfirm
|
||||
sudo updatedb
|
||||
echo "done installing!"
|
||||
read -n 1
|
||||
fi
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Show a fuzzy-finder TUI for picking new Arch and OPR packages to install.
|
||||
|
||||
fzf_args=(
|
||||
--multi
|
||||
--preview 'clear && pacman -Sii {1}'
|
||||
--preview-label='alt-p: toggle description, alt-j/k: scroll, tab: multi-select'
|
||||
--preview-label-pos='bottom'
|
||||
--preview-window 'left:65%:wrap'
|
||||
--bind 'alt-p:toggle-preview'
|
||||
--bind 'alt-d:preview-half-page-down,alt-u:preview-half-page-up'
|
||||
--bind 'alt-k:preview-up,alt-j:preview-down'
|
||||
--color 'pointer:green,marker:green'
|
||||
)
|
||||
|
||||
pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}")
|
||||
|
||||
if [[ -n $pkg_names ]]; then
|
||||
# Convert newline-separated selections to space-separated for yay
|
||||
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm
|
||||
echo "finished installing."
|
||||
read -n 1
|
||||
fi
|
||||
Executable
+16
@@ -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"
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
## command aliases
|
||||
alias pacgui=~/.config/sdgos/tuis/pkg-install.sh
|
||||
alias aurgui=~/.config/sdgos/tuis/aur-install.sh
|
||||
alias find="fzf --layout=reverse --preview='bat {}'"
|
||||
alias microfind='micro $(pwd)/$(fzf --layout=reverse --preview="bat {}")'
|
||||
alias ls='eza -al --color=always --group-directories-first --icons' # preferred listing
|
||||
alias la='eza -a --color=always --group-directories-first --icons' # all files and dirs
|
||||
alias ll='eza -l --color=always --group-directories-first --icons' # long format
|
||||
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
|
||||
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias ....='cd ../../..'
|
||||
alias .....='cd ../../../..'
|
||||
alias ......='cd ../../../../..'
|
||||
alias dir='dir --color=auto'
|
||||
alias vdir='vdir --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias update='sudo pacman -Syu'
|
||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l'
|
||||
alias apt='man pacman'
|
||||
alias apt-get='man pacman'
|
||||
alias please='sudo'
|
||||
alias jctl="journalctl -p 3 -xb"
|
||||
alias cmdhist='CMD=$(history -i | fzf | sed "s/.*:..//"); sleep 0.1 && wtype $CMD'
|
||||
alias tipme='shuf -n 1 ~/.config/sdgos/tips/tips.list'
|
||||
alias alltips='cat ~/.config/sdgos/tips/tips.list | fzf'
|
||||
EDITOR=micro
|
||||
IMAGEPROGRAM='satty --filename'
|
||||
TIPS=$(cat ~/.config/sdgos/tips/tips.list)
|
||||
|
||||
|
||||
## filetype aliases, default-opens them with the set program
|
||||
alias -s json=$EDITOR
|
||||
alias -s yaml=$EDITOR
|
||||
alias -s md=$EDITOR
|
||||
alias -s toml=$EDITOR
|
||||
alias -s conf=$EDITOR
|
||||
alias -s yml=$EDITOR
|
||||
alias -s txt=$EDITOR
|
||||
alias -s css=$EDITOR
|
||||
alias -s html=$EDITOR
|
||||
alias -s png=$IMAGEPROGRAM
|
||||
alias -s jpg=$IMAGEPROGRAM
|
||||
alias -s jpeg=$IMAGEPROGRAM
|
||||
alias -s webp=$IMAGEPROGRAM
|
||||
|
||||
eval "$(zoxide init zsh --cmd cd )"
|
||||
Reference in New Issue
Block a user