From 5a1ff168ee115ea56264d1f5cc43a1c31ed66591 Mon Sep 17 00:00:00 2001 From: kokopi-dev Date: Sun, 7 Dec 2025 13:40:44 +0900 Subject: [PATCH] cleanup --- README.md | 12 ++++++-- {arch => X11}/install_ref | 0 bashrc/.bash_profile | 10 ------ bashrc/.bashrc | 31 ------------------- bashrc/bash_profile | 20 ++++++++++++ bashrc/bashrc | 58 ++++++++++++++++++++++++++++++++++ bashrc/fdignore | 65 +++++++++++++++++++++++++++++++++++++++ grub/README.md | 7 ----- grub/default.grub | 64 -------------------------------------- 9 files changed, 153 insertions(+), 114 deletions(-) rename {arch => X11}/install_ref (100%) delete mode 100644 bashrc/.bash_profile delete mode 100644 bashrc/.bashrc create mode 100644 bashrc/bash_profile create mode 100644 bashrc/bashrc create mode 100644 bashrc/fdignore delete mode 100644 grub/README.md delete mode 100644 grub/default.grub diff --git a/README.md b/README.md index c543254..8d5ddc9 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,17 @@ Main repo is self hosted on gitea # Dotfiles +A lot of custom stuff, use as reference. -This is a work in progress, check back for updates. Might look into making a changelog. -Each folder should have a README of some tips. +## Mangowc Setup (2025) (mango/) +- Shell: bash +- WM: mangowc +- Terminal: ghostty +- Editor: neovim +- File Explorer: thunar +- Menus: rofi +- Statusbar: waybar +- Password Manager: pass (syncpass) ## Hyprland Setup (2025) (hyprland/) - Shell: bash diff --git a/arch/install_ref b/X11/install_ref similarity index 100% rename from arch/install_ref rename to X11/install_ref diff --git a/bashrc/.bash_profile b/bashrc/.bash_profile deleted file mode 100644 index df43c3e..0000000 --- a/bashrc/.bash_profile +++ /dev/null @@ -1,10 +0,0 @@ -# -# ~/.bash_profile -# - -[[ -f ~/.bashrc ]] && . ~/.bashrc - -# bspwm with X startup -# exec startx -export XCURSOR_THEME=Cappuccin-Mocha-Dark -exec Hyprland diff --git a/bashrc/.bashrc b/bashrc/.bashrc deleted file mode 100644 index 678e5c0..0000000 --- a/bashrc/.bashrc +++ /dev/null @@ -1,31 +0,0 @@ -# base commands to be copied - -# basic -alias ls='ls --color=auto' -alias ll='ls -l' -alias lll='ls -la' -alias v='nvim' -alias ..='cd ..' -alias ux='chmod u+x' -alias venva='source venv/bin/activate' -alias mkdir='mkdir -p' -function fsize() { - du -sh "$1" -} - -# basic enhanced -alias ll='exa -lg --icons' -alias lll='exa -lga' -alias cat='bat --style=header,grid' - -# git -alias gadd='git add' -alias gdiff='git diff' -alias mpush='git push origin master' -alias gstat='git status' -function gcom() { - GITMESSAGE="$*" - git commit -m "$GITMESSAGE" -} - -export FZF_CTRL_T_COMMAND="fd --type f --type d --hidden --follow --exclude .git --exclude venv --exclude node_modules --exclude .cache --exclude cache --exclude __pycache__ --exclude pkg --exclude .vim --search-path ." diff --git a/bashrc/bash_profile b/bashrc/bash_profile new file mode 100644 index 0000000..2c0336f --- /dev/null +++ b/bashrc/bash_profile @@ -0,0 +1,20 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +# env +export GTK_THEME=tokyonight-dark +export XCURSOR_THEME=catppuccin-mocha-dark-cursors + +# bspwm +# exec startx + +# hyprland +# exec Hyprland + +# mangowc +if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then + exec mango +fi diff --git a/bashrc/bashrc b/bashrc/bashrc new file mode 100644 index 0000000..cb8343a --- /dev/null +++ b/bashrc/bashrc @@ -0,0 +1,58 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# navigation +PS1='[\u@\h \W]\$ ' +alias ls='ls --color=auto' +alias ll="ls -l" +alias ..="cd .." +alias ll='exa -lg --icons' +alias lll='exa -lga' +alias cat='bat --style=header,grid' + +# git +alias gadd='git add' +alias gdiff='git diff' +alias mpush='git push origin master' +alias gstat='git status' +function gcom() { + GITMESSAGE="$*" + git commit -m "$GITMESSAGE" +} + +# utility +alias grep='grep --color=auto' +alias v="nvim" +alias ziptar="tar -zcvf" +alias unziptar="tar -xvzf" +alias ux='chmod u+x' +alias mkdir='mkdir -p' +alias diff='difft' +function filesize() { + du -sh "$1" +} + +# custom binaries +export PATH="$PATH:$HOME/.local/bin" + +# version managers/language binaries +export PATH="$HOME/go/bin:$PATH" # golang +export PATH="$HOME/.bun/bin:$PATH" # bun js +eval "$(fnm env --use-on-cd)" # node +## python +export PYENV_ROOT="$HOME/.pyenv" +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init - bash)" + +# misc +eval "$(starship init bash)" + +bind 'TAB:menu-complete' +bind 'set show-all-if-ambiguous on' + +eval "$(fzf --bash)" +export FZF_CTRL_T_COMMAND="fd --type f --type d --hidden --follow --search-path ." diff --git a/bashrc/fdignore b/bashrc/fdignore new file mode 100644 index 0000000..824adab --- /dev/null +++ b/bashrc/fdignore @@ -0,0 +1,65 @@ +dist +build +target +out +.pnpm-store +.npm-cache +bower_components +vendor +.venv +env +.pytest_cache +.mypy_cache +.ruff_cache +.tox +*.egg-info +.eggs +.git +go/telemetry +venv +node_modules +.cache +cache +__pycache__ +pkg +.vim +.themes +.cargo +.config/discord +.npm +.mozilla +.rustup +.bun +.yarn +.gnupg +.pyenv +Dygma +Bazecor +.anthy +.fzf +.atlas +.password-store +pnpm +.local/state +virtualenv +logs +*.log +*.png +*.jpg +*.webp +*.mp3 +*.mp4 +*.gif +*.svg +*.ico +*.pdf +*.zip +*.tar.gz +*.rar +*.dmg +*.iso +*.mov +*.avi +*.mkv +*.wav +*.flac diff --git a/grub/README.md b/grub/README.md deleted file mode 100644 index ec1f5da..0000000 --- a/grub/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Grub - -Current kernel parameters are specifically for the zenbook - -`default.grub` -> `/etc/default/grub` - -`sudo grub-mkconfig -o /boot/grub/grub.cfg` -> save config changes/kernel params diff --git a/grub/default.grub b/grub/default.grub deleted file mode 100644 index e33d434..0000000 --- a/grub/default.grub +++ /dev/null @@ -1,64 +0,0 @@ -# GRUB boot loader configuration - -GRUB_DEFAULT=0 -GRUB_TIMEOUT=5 -GRUB_DISTRIBUTOR="Arch" -GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet splash resume=UUID=73516262-7c1a-4fcf-946d-e8ff434cab26 iommu=soft" -GRUB_CMDLINE_LINUX="" -GRUB_WALLPAPER="/grub/abs8.png" - -# Preload both GPT and MBR modules so that they are not missed -GRUB_PRELOAD_MODULES="part_gpt part_msdos" - -# Uncomment to enable booting from LUKS encrypted devices -#GRUB_ENABLE_CRYPTODISK=y - -# Set to 'countdown' or 'hidden' to change timeout behavior, -# press ESC key to display menu. -GRUB_TIMEOUT_STYLE=menu - -# Uncomment to use basic console -GRUB_TERMINAL_INPUT=console - -# Uncomment to disable graphical terminal -#GRUB_TERMINAL_OUTPUT=console - -# The resolution used on graphical terminal -# note that you can use only modes which your graphic card supports via VBE -# you can see them in real GRUB with the command `videoinfo' -GRUB_GFXMODE=1920x1080x32,auto - -# Uncomment to allow the kernel use the same resolution used by grub -GRUB_GFXPAYLOAD_LINUX=keep - -# Uncomment if you want GRUB to pass to the Linux kernel the old parameter -# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" -#GRUB_DISABLE_LINUX_UUID=true - -# Uncomment to disable generation of recovery mode menu entries -GRUB_DISABLE_RECOVERY=true - -# Uncomment and set to the desired menu colors. Used by normal and wallpaper -# modes only. Entries specified as foreground/background. -#GRUB_COLOR_NORMAL="light-blue/black" -#GRUB_COLOR_HIGHLIGHT="light-cyan/blue" - -# Uncomment one of them for the gfx desired, a image background or a gfxtheme -#GRUB_BACKGROUND="/path/to/wallpaper" -#GRUB_THEME="/path/to/gfxtheme" - -# Uncomment to get a beep at GRUB start -#GRUB_INIT_TUNE="480 440 1" - -# Uncomment to make GRUB remember the last selection. This requires -# setting 'GRUB_DEFAULT=saved' above. -#GRUB_SAVEDEFAULT=true - -# Uncomment to disable submenus in boot menu -#GRUB_DISABLE_SUBMENU=y - -# Probing for other operating systems is disabled for security reasons. Read -# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this -# functionality install os-prober and uncomment to detect and include other -# operating systems. -GRUB_DISABLE_OS_PROBER=false