Update
This commit is contained in:
@@ -17,14 +17,15 @@ set -x GPG_TTY (tty)
|
||||
|
||||
set -U fish_greeting
|
||||
|
||||
# spv
|
||||
# spv[[[
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
|
||||
set -U mfs_dir "/home/kevin/coding/mf-site"
|
||||
source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
|
||||
abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
|
||||
{{ end }}
|
||||
{{ end }}#]]]
|
||||
|
||||
# system[[[
|
||||
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
|
||||
set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
|
||||
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
|
||||
@@ -32,27 +33,34 @@ set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
|
||||
set -x HASTE_SERVER https://pste.gq
|
||||
{{ if eq .chezmoi.fullHostname "nzxt" }}
|
||||
set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
|
||||
status --is-interactive; and source (pyenv init -|psub)
|
||||
{{ end }}
|
||||
#]]]
|
||||
|
||||
{{ if eq .linux_os "termux" }}
|
||||
# set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
|
||||
# space prompt[[[
|
||||
set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
|
||||
# set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
|
||||
set SPACEFISH_DIR_PREFIX ''
|
||||
set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
|
||||
set SPACEFISH_DIR_TRUNC 0
|
||||
set SPACEFISH_DIR_TRUNC_REPO false
|
||||
set SPACEFISH_VI_MODE_INSERT ''
|
||||
set SPACEFISH_VI_MODE_NORMAL '[n] '
|
||||
set SPACEFISH_VI_MODE_SUFFIX ''
|
||||
{{ end }}
|
||||
#]]]
|
||||
|
||||
# pass[[[
|
||||
set -x PASSWORD_STORE_CLIP_TIME 120
|
||||
set -xU XSET_RATE 90
|
||||
set -xU XSET_DELAY 200
|
||||
{{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
|
||||
xset r rate $XSET_DELAY $XSET_RATE
|
||||
{{ end }}
|
||||
{{ end }}#]]]
|
||||
|
||||
# set -U BROWSER "chromium"
|
||||
set -xU BROWSER "firefox"
|
||||
|
||||
set -xU FZF_DEFAULT_COMMAND "find ."
|
||||
|
||||
# ]]] universal var's #
|
||||
|
||||
# fish-specific [[[ #
|
||||
@@ -71,7 +79,7 @@ chezmoi apply
|
||||
{{ if not (eq .linux_os "termux") }}
|
||||
~/scripts/sync-shortcuts
|
||||
{{ end }}
|
||||
source ~/.config/fish/key_abbr.fish > /dev/null
|
||||
# source ~/.config/fish/key_abbr.fish > /dev/null
|
||||
set -U fish_fxn_dir "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
|
||||
# set -U fish_fxn_dir "~/.config/fish/functions"
|
||||
abbr ff "cd $fish_fxn_dir"
|
||||
@@ -109,10 +117,12 @@ abbr ant "task-notes"
|
||||
abbr apr "task-mod-pri"
|
||||
abbr aprl "task-mod-pri L"
|
||||
abbr aprm "task-mod-pri M"
|
||||
abbr aprn "task-mod-pri ''"
|
||||
abbr aprh "task-mod-pri H"
|
||||
abbr apj "task-mod-proj"
|
||||
abbr at "task-mod-tag"
|
||||
abbr asr "task-start"
|
||||
abbr at "task-mod-tag"
|
||||
abbr aw "task-wait"
|
||||
abbr ax "task-context"
|
||||
|
||||
# ]]] task #
|
||||
@@ -131,7 +141,7 @@ abbr def "define"
|
||||
abbr ens "enable-site"
|
||||
abbr ev "evince-silent"
|
||||
# abbr fbg "find-bg"
|
||||
abbr fv "fzf-vim"
|
||||
abbr fn "fzf-vim"
|
||||
abbr fvft "find-vim-filetype"
|
||||
# git [[[ #
|
||||
|
||||
@@ -157,6 +167,7 @@ abbr pgr "grep-pdf"
|
||||
abbr pgrf "grep-pdf-file"
|
||||
abbr png "git-push-new-gitea"
|
||||
abbr pst "pastebin"
|
||||
abbr qh "qalc-history"
|
||||
abbr rf "refresh-config"
|
||||
abbr rs "redshift-set"
|
||||
abbr sma "smol-add"
|
||||
@@ -167,6 +178,7 @@ abbr shrm "shred-rm"
|
||||
abbr shs "scan-history"
|
||||
abbr svp "server-pages"
|
||||
abbr thes "thesaurus"
|
||||
abbr usc "us-to-cad"
|
||||
abbr ut "unix-timestamp"
|
||||
abbr uzr "unzip-rm"
|
||||
abbr vsnp "vim-snippet"
|
||||
|
||||
0
dot_config/fish/functions/fish_mode_prompt.fish
Normal file
0
dot_config/fish/functions/fish_mode_prompt.fish
Normal file
3
dot_config/fish/functions/git-log-short.fish
Normal file
3
dot_config/fish/functions/git-log-short.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function git-log-short
|
||||
git log --pretty="%C(Yellow)%h %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s"
|
||||
end
|
||||
@@ -1,5 +1,6 @@
|
||||
function pastebin
|
||||
# cat $argv[1] | curl -F 'sprunge=<-' http://sprunge.us
|
||||
# set -x HASTE_SERVER https://pste.gq
|
||||
cat $argv[1] | haste --raw
|
||||
# cat $argv[1] | haste --raw
|
||||
cat $argv[1] | haste
|
||||
end
|
||||
|
||||
3
dot_config/fish/functions/qalc-history.fish
Normal file
3
dot_config/fish/functions/qalc-history.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function qalc-history
|
||||
qalc $argv[1] | tee -a /home/kevin/Documents/journal/personal/calc-history.md
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
function task-next-rm
|
||||
task $argv[1] modify -nx
|
||||
task $argv[1] modify -next
|
||||
and task
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function task-next
|
||||
task $argv[1] modify +nx
|
||||
task $argv[1] modify +next
|
||||
and task
|
||||
end
|
||||
|
||||
4
dot_config/fish/functions/task/task-wait.fish
Normal file
4
dot_config/fish/functions/task/task-wait.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-wait
|
||||
task $argv[1] mod wait:+$argv[2]
|
||||
and task
|
||||
end
|
||||
3
dot_config/fish/functions/us-to-cad.fish
Normal file
3
dot_config/fish/functions/us-to-cad.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function us-to-cad
|
||||
qalc "$argv[1]\$ to CAD"
|
||||
end
|
||||
@@ -16,6 +16,7 @@ exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-e
|
||||
# exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null
|
||||
exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
|
||||
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
|
||||
exec --no-startup-id i3-msg 'workspace $ws6; exec discord'
|
||||
|
||||
# ]]] startup #
|
||||
|
||||
@@ -50,7 +51,9 @@ bindsym Mod4+c exec $browser
|
||||
bindsym Mod4+e exec ~/scripts/twem
|
||||
bindsym Mod4+f exec firefox
|
||||
# bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard
|
||||
bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
|
||||
bindsym Mod4+h exec sleep .2 && xdotool type '.hint'
|
||||
bindsym Mod4+$mod+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
|
||||
bindsym Mod4+$mod+i exec sleep .2 && xdotool type '.info latest'
|
||||
# bindsym Mod4+m exec $term -e ~/scripts/vim-man
|
||||
bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com'
|
||||
# bindsym Mod4+$mod+m exec pass -c uoft/markus
|
||||
@@ -60,20 +63,21 @@ bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail &&
|
||||
bindsym Mod4+$mod+o exec xset dpms force off
|
||||
# bindsym Mod4+p workspace $ws4; exec pgadmin3
|
||||
# bindsym Mod4+p exec pycharm
|
||||
bindsym Mod4+p exec passmenu
|
||||
bindsym Mod4+p exec sleep .2 && xdotool type '.catch '
|
||||
bindsym Mod4+$mod+p exec passmenu
|
||||
# bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)"
|
||||
bindsym Mod4+q exec qdirstat
|
||||
bindsym Mod4+r exec $term -e ranger
|
||||
bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
|
||||
bindsym Mod4+$mod+s exec $type_delay_cmd && xdotool type 'https://smol.gq/'
|
||||
bindsym Mod4+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v'
|
||||
# bindsym Mod4+u exec printf 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
|
||||
bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca'
|
||||
# bindsym Mod4+$mod+u exec pass -c uoft/acorn
|
||||
bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
|
||||
bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)"
|
||||
bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp
|
||||
# bindsym Mod4+x exec $swex
|
||||
bindsym Control+$mod+x exec $type_delay_cmd && xdotool type 'http://codm.ataraxy.tk/'
|
||||
bindsym Mod4+z exec cliqz
|
||||
{{ if .ext_kb }}
|
||||
bindsym Mod4+x exec ~/scripts/xmodmap-custom
|
||||
@@ -299,6 +303,9 @@ bindsym $mod+F1 workspace $ws1; exec $term
|
||||
set $ws2 "2 "
|
||||
workspace $ws2 output $secondary
|
||||
bindsym $mod+F2 workspace $ws2; exec $term
|
||||
# bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach codm'
|
||||
bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach crimson'
|
||||
bindsym Control+$mod+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach codm'
|
||||
|
||||
set $ws3 "3 "
|
||||
# set $ws3 "3 "
|
||||
@@ -319,6 +326,7 @@ set $ws5 "5 "
|
||||
workspace $ws5 output $secondary
|
||||
assign [class="Steam"] $ws5
|
||||
bindsym $mod+F5 workspace $ws5; exec $browser
|
||||
bindsym $mod+Mod4+F5 workspace $ws5; exec firefox --private-window
|
||||
# bindsym Mod4+g workspace $ws5; layout stacking; exec $term -e steam
|
||||
bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp
|
||||
# bindsym Mod4+g workspace $ws5; exec mgba-qt
|
||||
@@ -337,8 +345,10 @@ for_window [class="ada-mario"] move absolute position 640 0
|
||||
set $ws6 "6 "
|
||||
workspace $ws6 output $secondary
|
||||
assign [class="Slack"] $ws6
|
||||
# bindsym Mod4+d workspace $ws6; exec discord
|
||||
bindsym Mod4+d workspace $ws6; exec riot-desktop
|
||||
# bindsym Mod4+$mod+d workspace $ws6; exec discord
|
||||
# bindsym Mod4+d workspace $ws6; exec riot-desktop
|
||||
bindsym Mod4+d workspace $ws6; exec discord
|
||||
bindsym Mod4+$mod+d workspace $ws6; exec riot-desktop
|
||||
# bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app/#/home
|
||||
bindsym Mod4+k workspace $ws6; exec slack
|
||||
|
||||
@@ -368,7 +378,7 @@ workspace $ws10 output $secondary
|
||||
set $hp 2
|
||||
# bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 0
|
||||
bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 1
|
||||
bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava
|
||||
# bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava
|
||||
# bindsym Mod4+h workspace $ws10; exec $term -e alsamixer -c $hp
|
||||
bindsym Mod4+s workspace $ws10; exec spotify
|
||||
|
||||
|
||||
@@ -337,7 +337,7 @@ public_ip_host="http://ident.me"
|
||||
# 'Disk (/): 74G / 118G (66%)'
|
||||
#
|
||||
# disk_show=('/' '/home' '/mnt/linux-files' )
|
||||
disk_show=('/dev/sda1' '/dev/sda3' '/dev/sdc2' )
|
||||
disk_show=('/dev/sda1' '/dev/sda3' '/dev/sdb2' )
|
||||
|
||||
# Disk subtitle.
|
||||
# What to append to the Disk subtitle.
|
||||
|
||||
@@ -680,7 +680,8 @@ map rr source ~/.config/ranger/rc.conf
|
||||
|
||||
# backgrounds [[[ #
|
||||
|
||||
map w shell /usr/bin/wal -i %f && sudo ~/st/make-st.sh
|
||||
# map w shell /usr/bin/wal -i %f && sudo ~/st/make-st.sh
|
||||
map w shell /usr/bin/wal -i %f
|
||||
map bde shell mv %f /home/kevin/Pictures/Backgrounds/dim/editing
|
||||
map bdn shell mv %f /home/kevin/Pictures/Backgrounds/dim/non-editing
|
||||
map bbe shell mv %f /home/kevin/Pictures/Backgrounds/bright/editing
|
||||
|
||||
Reference in New Issue
Block a user