Organize/source fish functions in dirs
- mpv config - 369-a3 fish functions
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,8 +1,11 @@
|
|||||||
|
mpv/.config/mpv/watch_later/*
|
||||||
|
|
||||||
*.html
|
*.html
|
||||||
*.sw*
|
*.sw*
|
||||||
|
|
||||||
|
cp-*
|
||||||
commit-msg.txt
|
commit-msg.txt
|
||||||
core
|
core
|
||||||
cp-*
|
|
||||||
ideas.md
|
ideas.md
|
||||||
temp.sh
|
temp.sh
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ tl "tldr"
|
|||||||
|
|
||||||
nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
|
nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
|
||||||
|
|
||||||
vgb "sni /etc/default/grub"
|
vgb "sudo nvim /etc/default/grub"
|
||||||
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||||
|
|
||||||
bt "bat"
|
bt "bat"
|
||||||
@@ -27,6 +27,7 @@ cld "colordiff -y --suppress-common-lines"
|
|||||||
|
|
||||||
mkpk "makepkg -sri"
|
mkpk "makepkg -sri"
|
||||||
ex "chmod 777"
|
ex "chmod 777"
|
||||||
|
ex "chmod 777"
|
||||||
|
|
||||||
# systemctl {{{ #
|
# systemctl {{{ #
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ nbu "cd /run/media/kevin/backup-hd/nzxt/tar && lsd -l"
|
|||||||
|
|
||||||
s "systemctl suspend"
|
s "systemctl suspend"
|
||||||
sd "sudo shutdown 0"
|
sd "sudo shutdown 0"
|
||||||
reb "sudo shutdown -r 0"
|
rb "sudo shutdown -r 0"
|
||||||
lo "i3-msg exit"
|
lo "i3-msg exit"
|
||||||
x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
|
x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
|
||||||
X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
|
X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
|
||||||
@@ -100,10 +101,10 @@ vlh "alsamixer -c 2"
|
|||||||
# pacman {{{ #
|
# pacman {{{ #
|
||||||
|
|
||||||
pc "sudo pacman -S"
|
pc "sudo pacman -S"
|
||||||
|
pcq "sudo pacman -Qi"
|
||||||
pcr "sudo pacman -Rns"
|
pcr "sudo pacman -Rns"
|
||||||
pcud "sudo pacman -Sy"
|
pcud "sudo pacman -Sy"
|
||||||
pcug "sudo pacman -Syu"
|
pcug "sudo pacman -Syu"
|
||||||
pcv "sudo pacman -Q"
|
|
||||||
xpc "pacman -Qqne > ~/linux-config/txt/nzxt-pkgs.txt && pacman -Qqme > ~/linux-config/txt/nzxt-aur.txt "
|
xpc "pacman -Qqne > ~/linux-config/txt/nzxt-pkgs.txt && pacman -Qqme > ~/linux-config/txt/nzxt-aur.txt "
|
||||||
# tri "trizen -S --noconfirm"
|
# tri "trizen -S --noconfirm"
|
||||||
tri "trizen -S --noedit"
|
tri "trizen -S --noedit"
|
||||||
@@ -142,9 +143,10 @@ cv "cava"
|
|||||||
fh "feh"
|
fh "feh"
|
||||||
gpd "gpg --decrypt"
|
gpd "gpg --decrypt"
|
||||||
gpe "gpg --encrypt --recipient"
|
gpe "gpg --encrypt --recipient"
|
||||||
hc "htop -s PERCENT_CPU"
|
htc "htop -s PERCENT_CPU"
|
||||||
# h "htop -s PERCENT_MEM"
|
htm "htop -s PERCENT_MEM"
|
||||||
kd "killall Discord && killall Discord"
|
kd "killall Discord && killall Discord"
|
||||||
|
mp "mpv --volume=50"
|
||||||
mra "man ranger"
|
mra "man ranger"
|
||||||
n "nvim"
|
n "nvim"
|
||||||
nd "node"
|
nd "node"
|
||||||
@@ -365,6 +367,8 @@ ma "printf '\033c' && bear make"
|
|||||||
mc "bear make clean"
|
mc "bear make clean"
|
||||||
|
|
||||||
rms "rm swapfile.*"
|
rms "rm swapfile.*"
|
||||||
|
wl6 "watson log --all --project=369 --tag=a3"
|
||||||
|
wr6 "watson report --all --project=369 --tag=a3"
|
||||||
|
|
||||||
# a2 {{{ #
|
# a2 {{{ #
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ bind \cr forward-word
|
|||||||
# fish-specific
|
# fish-specific
|
||||||
set -U fish_fxn_dir "/home/kevin/linux-config/fish/.config/fish/functions"
|
set -U fish_fxn_dir "/home/kevin/linux-config/fish/.config/fish/functions"
|
||||||
abbr ff "cd $fish_fxn_dir"
|
abbr ff "cd $fish_fxn_dir"
|
||||||
|
for fxn in (find $fish_fxn_dir -name '*.fish')
|
||||||
|
source $fxn
|
||||||
|
end
|
||||||
source /home/kevin/.config/fish/key_abbr.fish
|
source /home/kevin/.config/fish/key_abbr.fish
|
||||||
abbr xf "fish_config"
|
abbr xf "fish_config"
|
||||||
abbr f. "cd .."
|
abbr f. "cd .."
|
||||||
@@ -43,7 +46,9 @@ set -xU XSET_DELAY 200
|
|||||||
# fxn abbr's
|
# fxn abbr's
|
||||||
abbr ag "grep-aliases"
|
abbr ag "grep-aliases"
|
||||||
abbr bq "benq-brightness"
|
abbr bq "benq-brightness"
|
||||||
abbr cf "create-fish-function"
|
abbr cpc "copy cat"
|
||||||
|
abbr cpe "copy echo"
|
||||||
|
abbr cff "create-fish-function"
|
||||||
abbr ev "evince-silent"
|
abbr ev "evince-silent"
|
||||||
# git {{{ #
|
# git {{{ #
|
||||||
|
|
||||||
@@ -68,6 +73,10 @@ abbr grh "grep-headers"
|
|||||||
abbr rgh "rg-headers"
|
abbr rgh "rg-headers"
|
||||||
|
|
||||||
abbr r6 "run-a3"
|
abbr r6 "run-a3"
|
||||||
|
abbr r6f "run-a3-file"
|
||||||
|
abbr r6c "run-a3-custom"
|
||||||
|
abbr g6 "gdb-a3"
|
||||||
|
abbr g6b "gdb-a3-break"
|
||||||
|
|
||||||
# abbr cs "carsim"
|
# abbr cs "carsim"
|
||||||
# abbr ga2 "gdb-a2"
|
# abbr ga2 "gdb-a2"
|
||||||
|
|||||||
7
fish/.config/fish/functions/369/a3/gdb-a3-break.fish
Normal file
7
fish/.config/fish/functions/369/a3/gdb-a3-break.fish
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
function gdb-a3-break
|
||||||
|
printf '\033c'
|
||||||
|
and bear make
|
||||||
|
and gdb -ex "b pagetable.c:147" \
|
||||||
|
-ex "run" \
|
||||||
|
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
|
||||||
|
end
|
||||||
6
fish/.config/fish/functions/369/a3/gdb-a3-custom.fish
Normal file
6
fish/.config/fish/functions/369/a3/gdb-a3-custom.fish
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
function gdb-a3-custom
|
||||||
|
printf '\033c'
|
||||||
|
and bear make
|
||||||
|
gdb -ex "run" -ex "bt" \
|
||||||
|
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-custom-2.ref -m 1 -s 10 -a rand
|
||||||
|
end
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
function gdb-a3
|
function gdb-a3
|
||||||
# gdb -ex "b safeStopSign.c:96" -ex "run" \
|
printf '\033c'
|
||||||
|
and bear make
|
||||||
gdb -ex "run" -ex "bt" \
|
gdb -ex "run" -ex "bt" \
|
||||||
# gdb -ex "run" \
|
|
||||||
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
|
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
|
||||||
end
|
end
|
||||||
9
fish/.config/fish/functions/369/a3/run-a3-custom.fish
Normal file
9
fish/.config/fish/functions/369/a3/run-a3-custom.fish
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
function run-a3-custom
|
||||||
|
printf '\033c'
|
||||||
|
# and bear make clean
|
||||||
|
and bear make
|
||||||
|
# and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-custom.ref -m 5 -s 50 -a rand
|
||||||
|
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-custom-2.ref -m 1 -s 10 -a rand
|
||||||
|
|
||||||
|
# rm swapfile.*
|
||||||
|
end
|
||||||
9
fish/.config/fish/functions/369/a3/run-a3-file.fish
Normal file
9
fish/.config/fish/functions/369/a3/run-a3-file.fish
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
function run-a3-file
|
||||||
|
printf '\033c'
|
||||||
|
# and bear make clean
|
||||||
|
and bear make
|
||||||
|
# and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand > task-1.out
|
||||||
|
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand > task-1.out 2>&1
|
||||||
|
|
||||||
|
# rm swapfile.*
|
||||||
|
end
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
function run-a3
|
function run-a3
|
||||||
printf '\033c'
|
printf '\033c'
|
||||||
|
# and bear make clean
|
||||||
and bear make
|
and bear make
|
||||||
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
|
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
|
||||||
|
|
||||||
rm swapfile.*
|
# rm swapfile.*
|
||||||
end
|
end
|
||||||
1
fish/.config/fish/functions/compile_commands.json
Normal file
1
fish/.config/fish/functions/compile_commands.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# startup {{{ #
|
# startup {{{ #
|
||||||
# set $browser "firefox"
|
set $browser "firefox"
|
||||||
set $browser "chromium"
|
# set $browser "chromium"
|
||||||
set $def_term "urxvt"
|
set $def_term "urxvt"
|
||||||
set $scripts_path "/home/kevin/linux-config/scripts"
|
set $scripts_path "/home/kevin/linux-config/scripts"
|
||||||
exec redshift -O 2000
|
exec redshift -O 2000
|
||||||
|
|||||||
23
mpv/.config/mpv/input.conf
Normal file
23
mpv/.config/mpv/input.conf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# volume
|
||||||
|
WHEEL_UP add volume 1
|
||||||
|
WHEEL_DOWN add volume -1
|
||||||
|
|
||||||
|
# speed
|
||||||
|
r set speed 1.0
|
||||||
|
g set speed 1.5
|
||||||
|
s add speed -.25
|
||||||
|
d add speed .25
|
||||||
|
|
||||||
|
# seek
|
||||||
|
Shift+RIGHT seek 1
|
||||||
|
Shift+LEFT seek -1
|
||||||
|
RIGHT seek 5
|
||||||
|
LEFT seek -5
|
||||||
|
UP seek 10
|
||||||
|
DOWN seek -10
|
||||||
|
Shift+UP seek 60
|
||||||
|
Shift+DOWN seek -60
|
||||||
|
|
||||||
|
# mark
|
||||||
|
m revert-seek mark # mark position for revert-seek
|
||||||
|
Shift+m revert-seek
|
||||||
@@ -21,7 +21,7 @@ print_info() {
|
|||||||
info "Packages" packages
|
info "Packages" packages
|
||||||
info "WM" wm
|
info "WM" wm
|
||||||
info "WM Theme" wm_theme
|
info "WM Theme" wm_theme
|
||||||
info "Font" font
|
# info "Font" font
|
||||||
info "Theme" theme
|
info "Theme" theme
|
||||||
info "Icons" icons
|
info "Icons" icons
|
||||||
info "CPU" cpu
|
info "CPU" cpu
|
||||||
@@ -336,7 +336,8 @@ public_ip_host="http://ident.me"
|
|||||||
# disk_show=('/'):
|
# disk_show=('/'):
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
# 'Disk (/): 74G / 118G (66%)'
|
||||||
#
|
#
|
||||||
disk_show=('/' '/home' '/mnt/linux-files' )
|
# disk_show=('/' '/home' '/mnt/linux-files' )
|
||||||
|
disk_show=('/dev/sda1' '/dev/sda3' '/dev/sdc2' )
|
||||||
|
|
||||||
# Disk subtitle.
|
# Disk subtitle.
|
||||||
# What to append to the Disk subtitle.
|
# What to append to the Disk subtitle.
|
||||||
@@ -547,8 +548,11 @@ bar_color_total="distro"
|
|||||||
# off: 'info'
|
# off: 'info'
|
||||||
cpu_display="off"
|
cpu_display="off"
|
||||||
memory_display="off"
|
memory_display="off"
|
||||||
|
# cpu_display="barinfo"
|
||||||
|
# memory_display="barinfo"
|
||||||
battery_display="off"
|
battery_display="off"
|
||||||
disk_display="off"
|
disk_display="off"
|
||||||
|
# disk_display="barinfo"
|
||||||
|
|
||||||
|
|
||||||
# Backend Settings
|
# Backend Settings
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ case $1 in
|
|||||||
devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
|
devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
|
||||||
;;
|
;;
|
||||||
line-out )
|
line-out )
|
||||||
# devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
|
devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
|
||||||
devicename="alsa_output.pci-0000_00_14.2.iec958-stereo"
|
# devicename="alsa_output.pci-0000_00_14.2.iec958-stereo"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# if [ "$1" = "dac" ]; then
|
# if [ "$1" = "dac" ]; then
|
||||||
|
|||||||
2
stow.sh
2
stow.sh
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
stow git i3 i3blocks input neofetch ranger shell vim x zathura
|
stow git i3 i3blocks input mpv neofetch ranger shell vim x zathura
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/home/kevin/.cache
|
/home/kevin/.cache
|
||||||
/home/kevin/.local/share/Steam
|
/home/kevin/.local/share/Steam
|
||||||
/home/kevin/coding/linux-*
|
|
||||||
/home/kevin/VirtualBox VMs
|
|
||||||
/lost+found
|
/lost+found
|
||||||
/mnt
|
/mnt
|
||||||
/proc
|
/proc
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ o /
|
|||||||
p /home/kevin/.password-store
|
p /home/kevin/.password-store
|
||||||
P /home/kevin/Pictures
|
P /home/kevin/Pictures
|
||||||
tm /tmp
|
tm /tmp
|
||||||
|
lfv /mnt/linux-files/Videos
|
||||||
|
|
||||||
# }}} sys *
|
# }}} sys *
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ autocmd VimLeave *.tex !tex-clean %
|
|||||||
|
|
||||||
autocmd BufNewFile,BufRead watson*.fish set tabstop=2 shiftwidth=2 expandtab
|
autocmd BufNewFile,BufRead watson*.fish set tabstop=2 shiftwidth=2 expandtab
|
||||||
autocmd BufRead commit-msg.txt set filetype=gitcommit tw=72
|
autocmd BufRead commit-msg.txt set filetype=gitcommit tw=72
|
||||||
autocmd BufWritePost key_* !sync-shortcuts
|
" autocmd BufWritePost key_* !sync-shortcuts
|
||||||
|
autocmd BufNewFile,BufRead key_* map <F1> !sync-shortcuts
|
||||||
|
|
||||||
" }}} commands for specific files "
|
" }}} commands for specific files "
|
||||||
|
|
||||||
@@ -247,6 +248,7 @@ nnoremap <leader>f q/p<CR>
|
|||||||
nnoremap <leader>fc /[<>=\|]\{7\}<CR>
|
nnoremap <leader>fc /[<>=\|]\{7\}<CR>
|
||||||
" reload folds
|
" reload folds
|
||||||
nnoremap <leader>ff :set foldmethod=marker<CR> zM
|
nnoremap <leader>ff :set foldmethod=marker<CR> zM
|
||||||
|
nnoremap <leader>fi :YcmCompleter FixIt<CR>
|
||||||
" find copied text
|
" find copied text
|
||||||
nnoremap <leader>ft /TODO<CR>
|
nnoremap <leader>ft /TODO<CR>
|
||||||
nnoremap <leader>g :YcmCompleter GoTo<CR>
|
nnoremap <leader>g :YcmCompleter GoTo<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user