Update key binds, deploy script, and remove tmux starting by default
This commit is contained in:
parent
c241b5d20f
commit
8b087082d6
6 changed files with 45 additions and 11 deletions
|
@ -1 +0,0 @@
|
||||||
/home/aselimov/projects/utility/scripts/pubs-rofi.sh
|
|
26
bin/pubs-rofi.sh
Executable file
26
bin/pubs-rofi.sh
Executable 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
|
||||||
|
|
|
@ -28,9 +28,6 @@ alt+ctrl+t
|
||||||
alt+ctrl+l
|
alt+ctrl+l
|
||||||
passmenu --type
|
passmenu --type
|
||||||
|
|
||||||
ctrl+shift+v
|
|
||||||
paste_from_primary.sh
|
|
||||||
|
|
||||||
alt+shift+s
|
alt+shift+s
|
||||||
maim -s --hidecursor | xclip -selection clipboard -t image/png
|
maim -s --hidecursor | xclip -selection clipboard -t image/png
|
||||||
|
|
||||||
|
@ -53,3 +50,11 @@ shift+alt+i
|
||||||
|
|
||||||
alt+e
|
alt+e
|
||||||
emojis
|
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'
|
||||||
|
|
|
@ -56,5 +56,6 @@ deploy_links() {
|
||||||
deploy_links "$PROJECT_ROOT/bin" "$HOME/bin" "bin"
|
deploy_links "$PROJECT_ROOT/bin" "$HOME/bin" "bin"
|
||||||
deploy_links "$PROJECT_ROOT/home" "$HOME" "home"
|
deploy_links "$PROJECT_ROOT/home" "$HOME" "home"
|
||||||
deploy_links "$PROJECT_ROOT/config" "$HOME/.config" "config"
|
deploy_links "$PROJECT_ROOT/config" "$HOME/.config" "config"
|
||||||
|
deploy_links "$PROJECT_ROOT/wallpapers" "$HOME/media/wallpapers" "wallpapers"
|
||||||
|
|
||||||
echo "All deployments complete!"
|
echo "All deployments complete!"
|
||||||
|
|
13
home/.zshrc
13
home/.zshrc
|
@ -1,9 +1,13 @@
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
HISTFILE=~/.histfile
|
HISTFILE=~/.histfile
|
||||||
HISTSIZE=1000
|
HISTSIZE=100000
|
||||||
SAVEHIST=1000
|
SAVEHIST=100000
|
||||||
setopt extendedglob notify
|
setopt extendedglob notify
|
||||||
unsetopt autocd beep
|
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
|
bindkey -v
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
# The following lines were added by compinstall
|
# 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 ddg="w3m ddg.gg"
|
||||||
alias cal="khal calendar"
|
alias cal="khal calendar"
|
||||||
#alias sxiv="sxiv-rifle"
|
#alias sxiv="sxiv-rifle"
|
||||||
|
alias clip2png="xclip -selection clipboard -target image/png -out"
|
||||||
function addbin(){
|
function addbin(){
|
||||||
ln -s $PWD/$1 /home/aselimov/bin
|
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
|
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||||
|
|
||||||
if [ -z "$TMUX" ]; then
|
|
||||||
tmux
|
|
||||||
fi
|
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
eval "$(pyenv init - zsh)"
|
eval "$(pyenv init - zsh)"
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/fuji.jpg
|
/home/aselimov/repos/SelimovDE/wallpapers/real-pics/fuji.jpg
|
|
@ -1 +1 @@
|
||||||
/home/aselimov/projects/SelimovDE/wallpapers/real-pics/sequoia.png
|
/home/aselimov/repos/SelimovDE/wallpapers/real-pics/sequoia.png
|
Loading…
Add table
Add a link
Reference in a new issue