Merge branch 'main' into Refactoring
This commit is contained in:
commit
ea07594f50
17 changed files with 249 additions and 55 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
[submodule "config/nvim"]
|
[submodule "config/AstroNvim"]
|
||||||
path = config/AstroNvim
|
path = config/Distro-AstroNvim
|
||||||
url = https://github.com/AstroNvim/AstroNvim
|
url = https://github.com/AstroNvim/AstroNvim
|
||||||
[submodule "config/alacritty/themes/catppuccin"]
|
[submodule "config/alacritty/themes/catppuccin"]
|
||||||
path = config/alacritty/themes/catppuccin
|
path = config/alacritty/themes/catppuccin
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 5bc711b772303fe17a69dce79c4e674a686869f0
|
|
||||||
1
config/Distro-AstroNvim
Submodule
1
config/Distro-AstroNvim
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit f10b4730176b567e15911b3c1a7c5a31c82c8b8e
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
# to the user's home directory starting with `~/`.
|
# to the user's home directory starting with `~/`.
|
||||||
import:
|
import:
|
||||||
# - /path/to/alacritty.yml
|
# - /path/to/alacritty.yml
|
||||||
- ~/.config/alacritty/themes/rose-pine/dist/rose-pine-moon.yml
|
- ~/.config/alacritty/themes/catppuccin/catppuccin-macchiato.yml
|
||||||
# Any items in the `env` entry below will be added as
|
# Any items in the `env` entry below will be added as
|
||||||
# environment variables. Some entries may override variables
|
# environment variables. Some entries may override variables
|
||||||
# set by alacritty itself.
|
# set by alacritty itself.
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -27,5 +27,5 @@ sidebar_config = 1
|
||||||
|
|
||||||
; DO NOT CHANGE!
|
; DO NOT CHANGE!
|
||||||
[Backup]
|
[Backup]
|
||||||
version = 1.2.8.923.g4f94bf0d
|
version = 1.2.9.743.g85d9593d
|
||||||
with = 2.16.0
|
with = 2.16.0
|
||||||
|
|
|
||||||
149
config/starship.toml
Normal file
149
config/starship.toml
Normal file
|
|
@ -0,0 +1,149 @@
|
||||||
|
# Get editor completions based on the config schema
|
||||||
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
|
# Inserts a blank line between shell prompts
|
||||||
|
add_newline = true
|
||||||
|
|
||||||
|
# Replace the '❯' symbol in the prompt with '➜'
|
||||||
|
[character] # The name of the module we are configuring is 'character'
|
||||||
|
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[buf]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
read_only = " "
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[fossil_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[guix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[haxe]
|
||||||
|
symbol = "⌘ "
|
||||||
|
|
||||||
|
[hg_branch]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_symbol = " "
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[lua]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[memory_usage]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[meson]
|
||||||
|
symbol = "喝 "
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
Alpaquita = " "
|
||||||
|
Alpine = " "
|
||||||
|
Amazon = " "
|
||||||
|
Android = " "
|
||||||
|
Arch = " "
|
||||||
|
Artix = " "
|
||||||
|
CentOS = " "
|
||||||
|
Debian = " "
|
||||||
|
DragonFly = " "
|
||||||
|
Emscripten = " "
|
||||||
|
EndeavourOS = " "
|
||||||
|
Fedora = " "
|
||||||
|
FreeBSD = " "
|
||||||
|
Garuda = " "
|
||||||
|
Gentoo = " "
|
||||||
|
HardenedBSD = "ﲊ "
|
||||||
|
Illumos = " "
|
||||||
|
Linux = " "
|
||||||
|
Mabox = " "
|
||||||
|
Macos = " "
|
||||||
|
Manjaro = " "
|
||||||
|
Mariner = " "
|
||||||
|
MidnightBSD = " "
|
||||||
|
Mint = " "
|
||||||
|
NetBSD = " "
|
||||||
|
NixOS = " "
|
||||||
|
OpenBSD = " "
|
||||||
|
openSUSE = " "
|
||||||
|
OracleLinux = " "
|
||||||
|
Pop = " "
|
||||||
|
Raspbian = " "
|
||||||
|
Redhat = " "
|
||||||
|
RedHatEnterprise = " "
|
||||||
|
Redox = " "
|
||||||
|
Solus = "ﴱ "
|
||||||
|
SUSE = " "
|
||||||
|
Ubuntu = " "
|
||||||
|
Unknown = " "
|
||||||
|
Windows = " "
|
||||||
|
|
||||||
|
[package]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[pijul_channel]
|
||||||
|
symbol = "🪺 "
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rlang]
|
||||||
|
symbol = "ﳒ "
|
||||||
|
|
||||||
|
[ruby]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[spack]
|
||||||
|
symbol = "🅢 "
|
||||||
|
|
@ -5,25 +5,23 @@
|
||||||
#fix obvious typo's
|
#fix obvious typo's
|
||||||
alias pdw="pwd"
|
alias pdw="pwd"
|
||||||
|
|
||||||
#search content with ripgrep
|
# File Managment
|
||||||
alias rg="rg --sort path"
|
|
||||||
|
|
||||||
# prompt and do verbose
|
|
||||||
alias \
|
alias \
|
||||||
cp='cp -iv' \
|
cp='cp -iv' \
|
||||||
mv='mv -iv' \
|
mv='mv -iv' \
|
||||||
rm='rm -iv' \
|
cpr='rsync -za --partial -hh --info=progress2' \
|
||||||
md='mkdir -pv';
|
mvr='rsync -za --remove-source-files --partial -hh --info=progress2' \
|
||||||
|
sync='rsync -zau --delete --partial -hh --info=progress2' \
|
||||||
# short long and common commands
|
rm='trash -i' \
|
||||||
alias \
|
rmf='rm -rfI' \
|
||||||
mkexec='chmod +x';
|
md='mkdir -pv' \
|
||||||
|
|
||||||
# Exa for listing
|
|
||||||
alias \
|
|
||||||
ls='exa -lh --color=always --icons --git ' \
|
ls='exa -lh --color=always --icons --git ' \
|
||||||
la='exa -alh --color=always --icons --git ' \
|
la='exa -alh --color=always --icons --git ' \
|
||||||
ld='exa -la --no-permissions --no-filesize --no-time --no-time --no-user'
|
ld='exa -la --no-permissions --no-filesize --no-time --no-time --no-user' \
|
||||||
|
mkexec='chmod +x';
|
||||||
|
|
||||||
|
# Search and Query Files
|
||||||
|
alias grep="rg --sort path --context 3";
|
||||||
|
|
||||||
# Pacman
|
# Pacman
|
||||||
alias \
|
alias \
|
||||||
|
|
@ -34,13 +32,15 @@ alias \
|
||||||
pkglast="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -25 | nl"
|
pkglast="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -25 | nl"
|
||||||
|
|
||||||
|
|
||||||
alias \
|
|
||||||
reload='exec $SHELL -l' \
|
|
||||||
|
|
||||||
# Query Stuff
|
# Query Stuff
|
||||||
alias \
|
alias \
|
||||||
ip='ip -human -color -brief addr' \
|
ip='ip -human -color -brief addr' \
|
||||||
df='df -h'
|
df="duf --hide special --hide-mp '/boot,/boot/*'" \
|
||||||
|
du='dust --reverse' \
|
||||||
|
du1='dust --reverse --min-size 1M --depth 1' \
|
||||||
|
du2='dust --reverse --min-size 1M --depth 2' \
|
||||||
|
du3='dust --reverse --min-size 1M --depth 3' \
|
||||||
|
cat='bat';
|
||||||
|
|
||||||
## Music Streams
|
## Music Streams
|
||||||
lofi_url="https://youtu.be/jfKfPfyJRdk"
|
lofi_url="https://youtu.be/jfKfPfyJRdk"
|
||||||
|
|
@ -51,6 +51,10 @@ alias \
|
||||||
music-ninten='mpv "$nintendo_url" &>/dev/null &!' \
|
music-ninten='mpv "$nintendo_url" &>/dev/null &!' \
|
||||||
music-ninten-bg='ts lofi -d "mpv --no-video $nintendo_url"'
|
music-ninten-bg='ts lofi -d "mpv --no-video $nintendo_url"'
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
alias \
|
||||||
|
reload='exec $SHELL -l' \
|
||||||
|
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
# Global #
|
# Global #
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
alias \
|
alias \
|
||||||
vi='nvim' \
|
vi='NVIM_APPNAME=Distro-AstroNvim nvim' \
|
||||||
vi-astro='NVIM_APPNAME=AstroNvim nvim' \
|
vi-def='NVIM_APPNAME=AstroNvim nvim' \
|
||||||
vi-lazy='NVIM_APPNAME=LazyVim nvim'
|
vi-lazy='NVIM_APPNAME=LazyVim nvim'
|
||||||
|
|
||||||
vis() {
|
vis() {
|
||||||
|
|
|
||||||
|
|
@ -41,3 +41,10 @@ profzsh() {
|
||||||
shell=${1-$SHELL}
|
shell=${1-$SHELL}
|
||||||
ZPROF=true $shell -i -c exit
|
ZPROF=true $shell -i -c exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Pretty Help
|
||||||
|
alias bathelp='bat --plain --language=help'
|
||||||
|
help() {
|
||||||
|
"$@" --help 2>&1 | bathelp
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,20 +58,13 @@ plugins=(
|
||||||
# archlinux
|
# archlinux
|
||||||
bgnotify
|
bgnotify
|
||||||
colored-man-pages
|
colored-man-pages
|
||||||
cp # alias to use rsync to copy files
|
|
||||||
docker
|
docker
|
||||||
docker-compose
|
docker-compose
|
||||||
fd
|
fd
|
||||||
fzf
|
fzf
|
||||||
git
|
git
|
||||||
git-prompt
|
|
||||||
ripgrep
|
|
||||||
rsync
|
|
||||||
safe-paste # don't run code when pasting
|
safe-paste # don't run code when pasting
|
||||||
systemd
|
systemd
|
||||||
# tmux
|
|
||||||
# vi-mode
|
|
||||||
yarn
|
|
||||||
z
|
z
|
||||||
zsh-autocomplete
|
zsh-autocomplete
|
||||||
zsh-autopair
|
zsh-autopair
|
||||||
|
|
@ -121,3 +114,5 @@ fi
|
||||||
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
atim/lazygit
|
atim/lazygit
|
||||||
|
atim/starship
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
dnf-plugin-system-upgrade
|
dnf-plugin-system-upgrade
|
||||||
|
duf
|
||||||
exa
|
exa
|
||||||
fd-find
|
fd-find
|
||||||
flatpak
|
flatpak
|
||||||
|
|
@ -11,6 +12,8 @@ neovim
|
||||||
nodejs
|
nodejs
|
||||||
remove-retired-packages
|
remove-retired-packages
|
||||||
ripgrep
|
ripgrep
|
||||||
|
sd
|
||||||
|
starship
|
||||||
tealdeer
|
tealdeer
|
||||||
tmux
|
tmux
|
||||||
tree-sitter-cli
|
tree-sitter-cli
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,7 @@ for path in "${SOURCES[@]}"; do
|
||||||
delete_old "$path"
|
delete_old "$path"
|
||||||
done
|
done
|
||||||
|
|
||||||
sync
|
# Sync to MEGA
|
||||||
|
# sync
|
||||||
|
|
||||||
echo -e "${GRN}Backups done!${RST}"
|
echo -e "${GRN}Backups done!${RST}"
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,62 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
path="$1"
|
set -euo pipefail
|
||||||
imgs=($PWD/$path/*)
|
|
||||||
|
|
||||||
imv "${imgs[@]}" &
|
SCAN_DIR=${HOME}/Drives/Stuff/Pictures/Waifus
|
||||||
imv_pid=$!
|
OUPUT_DIR=${HOME}/Drives/Stuff/Pictures/Wallpapers
|
||||||
|
# SCAN_DIR=${HOME}/Pictures/Screenshots
|
||||||
|
|
||||||
echo $imv_pid
|
franchises=(
|
||||||
imv-msg $imv_pid close all
|
Mario
|
||||||
|
Zelda
|
||||||
|
Persona
|
||||||
|
)
|
||||||
|
|
||||||
for file in "${imgs[@]}"; do
|
orientations=(
|
||||||
echo $file
|
Portrait
|
||||||
imv-msg $imv_pid open "$file"
|
Landscape
|
||||||
read "test"
|
)
|
||||||
|
|
||||||
|
# TODO: give option to exit script while inside fzf
|
||||||
|
get_fzf() {
|
||||||
|
# run inside subshell because fzf exit with 1 when no mach has been selected
|
||||||
|
output="$(
|
||||||
|
printf "%s\n" "$@" | fzf \
|
||||||
|
--reverse \
|
||||||
|
--height '10' \
|
||||||
|
--print-query \
|
||||||
|
--cycle \
|
||||||
|
--bind \
|
||||||
|
"alt-1:pos(1)+accept,alt-2:pos(2)+accept,alt-3:pos(3)+accept,alt-4:pos(4)+accept,alt-5:pos(5)+accept,alt-6:pos(6)+accept,alt-7:pos(7)+accept,alt-8:pos(8)+accept,alt-9:pos(9)+accept,alt-0:pos(10)+accept"
|
||||||
|
)"
|
||||||
|
echo "$output"
|
||||||
|
}
|
||||||
|
|
||||||
|
readarray -td '' wallpapers < <(
|
||||||
|
fd -ap -e jpg -e jpeg -e png -e webp \
|
||||||
|
--max-depth 2 \
|
||||||
|
--print0 \
|
||||||
|
--base-directory "$SCAN_DIR"
|
||||||
|
)
|
||||||
|
|
||||||
|
# open all images in imv
|
||||||
|
imv "${wallpapers[@]}" &
|
||||||
|
pid=$!
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
for dir in "${orientations[@]}"; do
|
||||||
|
mkdir -p "$OUPUT_DIR/$dir"
|
||||||
done
|
done
|
||||||
|
|
||||||
imv-msg $imv_pid close all
|
for img in "${wallpapers[@]}"; do
|
||||||
|
orientation=$(get_fzf "${orientations[@]}")
|
||||||
|
franchise=$(get_fzf "${franchises[@]}")
|
||||||
|
|
||||||
# while true; do
|
cp "$img" "$OUPUT_DIR/$orientation"
|
||||||
# # Some custom logic
|
|
||||||
# # ...
|
echo "$img $orientation $franchise"
|
||||||
#
|
imv-msg "$pid" next
|
||||||
# # Close all open files
|
done
|
||||||
# imv-msg $imv_pid close all
|
|
||||||
# # Open some new files
|
imv-msg "$pid" close all
|
||||||
# imv-msg $imv_pid open ~/new_path
|
|
||||||
# done
|
|
||||||
|
|
|
||||||
2
setup.sh
2
setup.sh
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
REPO="https://git.panconpalta.win/aleidk/dots"
|
REPO="git@codeberg.org:aleidk/dots.git"
|
||||||
DOTS="$HOME/Repos/Private/dots"
|
DOTS="$HOME/Repos/Private/dots"
|
||||||
CONFIG="$HOME/.config"
|
CONFIG="$HOME/.config"
|
||||||
BINS="$HOME/.local/bin"
|
BINS="$HOME/.local/bin"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue