This commit is contained in:
kokopi-dev
2025-12-07 13:40:44 +09:00
parent 7aea541045
commit 5a1ff168ee
9 changed files with 153 additions and 114 deletions

View File

@@ -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

View File

@@ -1,10 +0,0 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
# bspwm with X startup
# exec startx
export XCURSOR_THEME=Cappuccin-Mocha-Dark
exec Hyprland

View File

@@ -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 ."

20
bashrc/bash_profile Normal file
View File

@@ -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

58
bashrc/bashrc Normal file
View File

@@ -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 ."

65
bashrc/fdignore Normal file
View File

@@ -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

View File

@@ -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

View File

@@ -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