Update key binds, deploy script, and remove tmux starting by default

This commit is contained in:
Alex Selimov 2025-09-05 23:48:15 -04:00
parent c241b5d20f
commit 8b087082d6
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
6 changed files with 45 additions and 11 deletions

View file

@ -1 +0,0 @@
/home/aselimov/projects/utility/scripts/pubs-rofi.sh

26
bin/pubs-rofi.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
#This script wraps various pub commands into a dmenu menu
function fail {
printf '%s\n' "$1" >&2
exit "${2-1}"
}
dmenu="dmenu -theme-str 'window {width: 80%;}' -i"
citekey=$(pubs list | eval "$dmenu" | cut -d ' ' -f 1 | tr -d '[]\n' )
if [ "$citekey" = "" ]; then
exit 1
fi
if [ "$1" = "open" ]; then
pubs doc open "$citekey"
elif [ "$1" = "tag" ]; then
echo $citekey| tr -d '\n'| xclip
xdotool type "$citekey"
elif [ "$1" = "url" ]; then
url=$(grep "url =" $HOME/.pubs/bib/$citekey.bib | cut -d "{" -f 2 | tr -d "{ },")
echo $url| tr -d '\n'| xclip
xdotool type "$url"
fi

View file

@ -28,9 +28,6 @@ alt+ctrl+t
alt+ctrl+l
passmenu --type
ctrl+shift+v
paste_from_primary.sh
alt+shift+s
maim -s --hidecursor | xclip -selection clipboard -t image/png
@ -53,3 +50,11 @@ shift+alt+i
alt+e
emojis
# Smart copy/paste that works everywhere
alt + c
xclip -selection primary -o | xclip -selection clipboard -i
# Pste
alt + v
sh -c 'xclip -selection clipboard -o | xclip -selection primary -i && xdotool click 2'

View file

@ -56,5 +56,6 @@ deploy_links() {
deploy_links "$PROJECT_ROOT/bin" "$HOME/bin" "bin"
deploy_links "$PROJECT_ROOT/home" "$HOME" "home"
deploy_links "$PROJECT_ROOT/config" "$HOME/.config" "config"
deploy_links "$PROJECT_ROOT/wallpapers" "$HOME/media/wallpapers" "wallpapers"
echo "All deployments complete!"

View file

@ -1,9 +1,13 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
HISTSIZE=100000
SAVEHIST=100000
setopt extendedglob notify
unsetopt autocd beep
setopt INC_APPEND_HISTORY # Write to history file immediately, not when shell exits
setopt SHARE_HISTORY # Share history between all sessions
setopt HIST_IGNORE_DUPS # Don't save duplicate commands
setopt HIST_IGNORE_SPACE # Don't save commands starting with space
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
@ -26,6 +30,7 @@ alias mergepdf="gs -dBATCH -dNOPAUSE -dQUIET -sDEVICE=pdfwrite -sOutputFile=outp
alias ddg="w3m ddg.gg"
alias cal="khal calendar"
#alias sxiv="sxiv-rifle"
alias clip2png="xclip -selection clipboard -target image/png -out"
function addbin(){
ln -s $PWD/$1 /home/aselimov/bin
}
@ -56,9 +61,7 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
if [ -z "$TMUX" ]; then
tmux
fi
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"

View file

@ -1 +1 @@
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/fuji.jpg
/home/aselimov/repos/SelimovDE/wallpapers/real-pics/fuji.jpg

View file

@ -1 +1 @@
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/sequoia.png
/home/aselimov/repos/SelimovDE/wallpapers/real-pics/sequoia.png