fix script and use mandoc instead of man-db, wayclip instead of wl-clipboard
This commit is contained in:
parent
a3d2ec551f
commit
ae1dd11b5e
5 changed files with 16 additions and 10 deletions
|
@ -16,7 +16,6 @@ alias tree="tree -a -I .git -I node_modules"
|
|||
alias :q="exit"
|
||||
alias wt="curl https://wttr.in/Nottingham"
|
||||
alias fnf="fnf -l 50"
|
||||
alias exit=""
|
||||
|
||||
# application aliases
|
||||
alias v="$EDITOR"
|
||||
|
@ -34,7 +33,7 @@ alias findfiles="grep --exclude-dir={.mozilla,.cache,share,dump,env,state,node_m
|
|||
alias homefiles="find ~ -type d \( -path ~/.cargo -o -path ~/.local/share -o -path ~/.local/state/nvim -o -path ~/.mozilla -o -path ~/.npm -o -path ~/.autojump -o -path ~/.cache -o -path ~/dotfiles -o -path ~/.gnupg -o -path ~/.config/zsh/zsh-syntax-highlighting -o -path ~/.config/zsh/zsh-autosuggestions -o -path ~/.config/zsh/powerlevel10k \) -prune -o -type f -not -path '*/.git/*' -not -path '*/node_modules/*' -print | fnf"
|
||||
alias gitfolders="find . -type d -name '.git' -not -path '*nvim*' -not -path '*tmux*'"
|
||||
alias convertunix="find . -type f -print0 | xargs -0 dos2unix --"
|
||||
alias hst="fc -l 1 -1 -n | cut -c 2- | sort | uniq | fnf -l 100 | tr -d '\n' | wl-copy"
|
||||
alias hst="history | cut -c 8- | sort | uniq | fnf -l 100 | tr -d '\n' | waycopy"
|
||||
alias ncdu="ncdu --color dark -x --exclude images"
|
||||
alias lf="lfrun"
|
||||
alias s="sudo systemctl"
|
||||
|
|
|
@ -3,6 +3,7 @@ export EDITOR="nvim"
|
|||
export SUDO_EDITOR="nvim"
|
||||
export TERM="foot"
|
||||
export BROWSER="firefox"
|
||||
export MANPAGER='nvim +Man!'
|
||||
|
||||
# Adds ~/.local/bin and subfolders to $PATH
|
||||
export PATH="$PATH:$HOME/.autojump/bin:$HOME/.autojump/functions:~/.local/npm/bin:$(find ~/.local/bin -maxdepth 1 -type d -printf '%p:' | sed 's/:$//')"
|
||||
|
|
|
@ -14,9 +14,9 @@ pacman -Syu --noconfirm > /dev/null
|
|||
### Install all of the above pacakges ####
|
||||
sudo pacman -S --needed adobe-source-han-sans-{hk,jp,kr}-fonts bluez bluez-utils brightnessctl btop \
|
||||
chafa dos2unix firefox foot graphicsmagick grub-customizer grim hugo lf libliftoff libnotify \
|
||||
libwebsockets mako man-db mpv ncdu neovim newsboat noto-fonts-emoji npm ntfs-3g nvidia-open \
|
||||
libwebsockets mako mandoc mpv ncdu neovim newsboat noto-fonts-emoji npm ntfs-3g nvidia-open \
|
||||
pacman-contrib pass pipewire-pulse plymouth python-mutagen ripgrep slurp socat swappy tllist \
|
||||
tmux unzip wf-recorder wireplumber wl-clipboard wlroots xdg-desktop-portal-wlr xorg-xhost yt-dlp \
|
||||
tmux unzip wf-recorder wireplumber wlroots xdg-desktop-portal-wlr xorg-xhost yt-dlp \
|
||||
zathura-pdf-poppler zip --noconfirm > /dev/null
|
||||
|
||||
# update config
|
||||
|
@ -88,6 +88,11 @@ meson build
|
|||
ninja -C build
|
||||
sudo ninja -C build install
|
||||
cd ..
|
||||
git clone https://git.sr.ht/~night0721/wayclip
|
||||
cd wayclip
|
||||
make
|
||||
sudo make install
|
||||
cd ..
|
||||
git clone https://github.com/night0721/fnf
|
||||
cd fnf
|
||||
make
|
||||
|
|
2
.github/README.md
vendored
2
.github/README.md
vendored
|
@ -115,7 +115,7 @@ SUPER + SHIFT + S = Screenshot menu
|
|||
# Packages
|
||||
|
||||
Fonts: adobe-source-han-sans-{hk,jp,kr}-fonts noto-fonts-emoji ttf-jetbrains-mono-nerd
|
||||
Shell softwares: btop chafa kat lf mpv ncdu neovim newsboat pass ripgrep scc socat tmux tree unzip wget wf-recorder wl-clipboard wlr-randr ydotool yt-dlp zip
|
||||
Shell softwares: btop chafa kat lf mpv ncdu neovim newsboat pass ripgrep scc socat tmux tree unzip wget wf-recorder wlr-randr ydotool yt-dlp zip
|
||||
Development: npm python-mutagen
|
||||
Browser: firefox
|
||||
Enviroment: mako plymouth slurp swappy xdg-desktop-portal-wlr wlroots-nvidia xorg-xhost zathura-pdf-poppler
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
|
||||
source $HOME/.config/bash/aliases
|
||||
|
||||
auth=$EZAPIKEY
|
||||
auth="$EZAPIKEY"
|
||||
url="https://api.e-z.host/files"
|
||||
|
||||
snipping=$(printf "Select Area\nSelect Screen\nFull Screen" | wmenu -p "Snipping tool")
|
||||
if [[ $snipping == "" ]]; then
|
||||
snipping=$(echo -e "Select Area\nSelect Screen\nFull Screen" | wmenu -p "Snipping tool")
|
||||
|
||||
if [ -z $snipping ]; then
|
||||
exit 0
|
||||
fi
|
||||
PICTURE_DIR="$HOME/.nky/Photo/Me/"
|
||||
|
@ -23,7 +24,7 @@ opts_mod(){
|
|||
case $mods_la in
|
||||
"Edit screenshot") swappy -f $1;;
|
||||
"Save") cp $1 $PICTURE_DIR;;
|
||||
"Copy to clipboard") wl-copy < $1 -t image/png;;
|
||||
"Copy to clipboard") waycopy < $1 -t image/png;;
|
||||
"Upload to e-z.host")
|
||||
image_url=$(curl -X POST -F "file=@"$1 -H "key: "$auth -v "$url" 2>/dev/null)
|
||||
echo $image_url > /tmp/upload.json
|
||||
|
@ -49,7 +50,7 @@ opts_mod(){
|
|||
fi
|
||||
fi
|
||||
|
||||
cat /tmp/upload.json | jq -r ".imageUrl" | wl-copy
|
||||
cat /tmp/upload.json | jq -r ".imageUrl" | waycopy
|
||||
notify-send "Image URL copied to clipboard" -a "Grim" -i $1
|
||||
rm $1
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue