changes from borges

This commit is contained in:
Rudis Muiznieks 2024-04-05 12:24:01 -05:00
parent 481be6e47b
commit 1da68762e8
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
9 changed files with 61 additions and 5 deletions

View File

@ -0,0 +1,3 @@
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
fi

View File

@ -12,3 +12,6 @@ vim.api.nvim_command([[au FileType sql lua require'cmp'.setup.buffer {
-- word break and spelling in markdown files
vim.api.nvim_command('au BufRead,BufNewFile *.md set spell lbr')
-- hard wrap and spelling in gph files
vim.api.nvim_command('au BufRead,BufNewFile *.gph set spell tw=72 colorcolumn=+0')

31
nvim/spell/en.utf-8.add Normal file
View File

@ -0,0 +1,31 @@
Ruka
Suzu
Ew
HIRO
Hiro
Peggie
Hiroka
Shinobu
tataki
Kamishin
Jellinek
Uber
MLB
Gogo
Reggsignation
homie
Tsutsui
Terada
C'mon
somen
Wh
Kamishin's
Chikami
Shinjiro
Hakodate
Gah
Tomo
Tomo's
Kei
Ruka's
Ota

BIN
nvim/spell/en.utf-8.add.spl Normal file

Binary file not shown.

9
tmux/copy-cmd Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
session="$(loginctl show-session "$(loginctl | grep "$(whoami)" | awk '{print $1}')" -p Type)"
if [ "$session" = "Type=x11" ]; then
exec xsel -b -i "$@"
else
exec wl-copy "$@"
fi

9
tmux/paste-cmd Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
session="$(loginctl show-session "$(loginctl | grep "$(whoami)" | awk '{print $1}')" -p Type)"
if [ "$session" = "Type=x11" ]; then
exec xsel -b -o
else
exec wl-paste
fi

View File

@ -17,9 +17,9 @@ bind M \
set -g mouse off \;\
display 'Mouse: OFF'
set -s copy-command 'xsel -b -i'
bind ] run "tmux set-buffer -- \"$(xsel -b -o)\"; tmux paste-buffer"
bind-key -n MouseDown2Pane run "tmux set-buffer -- \"$(xsel -b -o)\"; tmux paste-buffer"
set -s copy-command '~/skynet/tmux/copy-cmd'
bind ] run "tmux set-buffer -- \"$(~/skynet/tmux/paste-cmd)\"; tmux paste-buffer"
bind-key -n MouseDown2Pane run "tmux set-buffer -- \"$(~/skynet/tmux/paste-cmd)\"; tmux paste-buffer"
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection

View File

@ -6,6 +6,7 @@ hash -d api=/home/rudism/mri/cosmic/api
hash -d gql=/home/rudism/mri/cosmic/graphql-server
hash -d as2=/home/rudism/mri/appdat/as2
hash -d oot=/home/rudism/mri/cosmic/nasa/oot/api
hash -d risk=/home/rudism/mri/cosmic/nasa/risk/api
hash -d a=/mnt/agrajag
hash -d b=/mnt/beeblebrox
@ -13,8 +14,7 @@ hash -d b=/mnt/beeblebrox
alias nasavpn='/home/rudism/src/nasavpn/nasavpn'
alias dockerrm='docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker system prune -f'
alias webcamfix='sudo modprobe v4l2loopback devices=1 video_nr=9 card_label=VirtualCam exclusive_caps=1 && ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -input_format mjpeg -i /dev/video0 -f v4l2 -pix_fmt yuv420p /dev/video9; sudo rmmod v4l2loopback'
alias walkman='sudo mount -o uid=rudism,gid=rudism UUID=3317-74BF /mnt/walkman'
alias syncmusic='rsync -av --size-only --ignore-times --no-perms --no-owner --no-group --delete /mnt/agrajag/music/ /mnt/walkman/Music'
alias syncmusic='rsync -av --size-only --ignore-times --no-perms --no-owner --no-group --delete /mnt/agrajag/music/ /mnt/usb/Music'
alias watchsync='watch -d grep -e Dirty: -e Writeback: /proc/meminfo'
# The next line updates PATH for the Google Cloud SDK.

View File

@ -11,6 +11,7 @@ autoload -Uz compinit && compinit
setopt extended_history
setopt inc_append_history
setopt share_history
setopt rmstarsilent
# load zsh plugins
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"