Taskwarrior config/fxn's, liteshort fxn's
Update NZXT packages.
This commit is contained in:
@@ -22,6 +22,7 @@ set -U fish_greeting
|
||||
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 }}
|
||||
|
||||
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
|
||||
@@ -84,6 +85,7 @@ abbr hs "history search --show-time"
|
||||
abbr f. "cd .."
|
||||
abbr f.. "cd ../.."
|
||||
abbr hsm "history merge"
|
||||
abbr nxv "$EDITOR ~/.config/fish/fish_variables"
|
||||
abbr xf "fish_config"
|
||||
|
||||
# ]]] fish-specific #
|
||||
@@ -91,9 +93,20 @@ abbr xf "fish_config"
|
||||
# fxn abbr's [[[ #
|
||||
|
||||
abbr ! "sudo !!"
|
||||
# task [[[ #
|
||||
|
||||
abbr aan "task-anno"
|
||||
abbr ae "task-edit"
|
||||
abbr ad "task-done"
|
||||
abbr ap "task-mod-pri"
|
||||
abbr adl "task-delete"
|
||||
abbr adn "task-done"
|
||||
abbr an "task-next"
|
||||
abbr apr "task-mod-pri"
|
||||
abbr apj "task-mod-proj"
|
||||
abbr at "task-mod-tag"
|
||||
abbr asr "task-start"
|
||||
abbr ax "task-context"
|
||||
|
||||
# ]]] task #
|
||||
abbr ag "grep-aliases"
|
||||
abbr b "buku-fzf"
|
||||
abbr bf "buku-fzf fq"
|
||||
@@ -115,14 +128,17 @@ abbr fzv "fzf-vim"
|
||||
abbr gcamp "git-amend-push"
|
||||
abbr gclg "git-clone-gitea"
|
||||
abbr gdf "git-diff-files"
|
||||
abbr gpsi "git-push-initial"
|
||||
abbr gpsmt "git-push-multiple"
|
||||
abbr gpng "git-push-new-gitea gitea"
|
||||
abbr gpngo "git-push-new-gitea origin"
|
||||
abbr gremotes "git-mult-remotes"
|
||||
abbr grmb "git-delete-branch"
|
||||
abbr gro "git-replace-origin"
|
||||
|
||||
# ]]] git #
|
||||
abbr svs "scan-history"
|
||||
abbr m "man-vim"
|
||||
abbr ma "man-vim task"
|
||||
abbr mat "math"
|
||||
abbr pgr "grep-pdf"
|
||||
abbr pgrf "grep-pdf-file"
|
||||
@@ -130,7 +146,12 @@ abbr png "git-push-new-gitea"
|
||||
abbr pst "pastebin"
|
||||
abbr rf "refresh-config"
|
||||
abbr rs "redshift-set"
|
||||
abbr sma "smol-add"
|
||||
abbr smd "smol-delete"
|
||||
abbr sml "smol-slist"
|
||||
abbr smr "smol-replace"
|
||||
abbr shrm "shred-rm"
|
||||
abbr svs "scan-history"
|
||||
abbr tac "tmux-attach config"
|
||||
abbr taj "tmux-attach journal"
|
||||
abbr thes "thesaurus"
|
||||
@@ -153,10 +174,5 @@ abbr jct "java-compile-test"
|
||||
|
||||
# ]]] fxn abbr's #
|
||||
|
||||
abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
|
||||
|
||||
# task sync > /dev/null 2>&1
|
||||
# causes xmodmap to have issues when opening terminal sometimes (with Alt key?)
|
||||
# sleep .2 && xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
|
||||
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
|
||||
~/scripts/xmodmap-custom
|
||||
|
||||
5
dot_config/fish/functions/git/git-push-initial.fish
Executable file
5
dot_config/fish/functions/git/git-push-initial.fish
Executable file
@@ -0,0 +1,5 @@
|
||||
function git-push-initial
|
||||
git add -A
|
||||
and git commit -S -m 'Initial commit'
|
||||
and git push
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
function git-push-new-gitea
|
||||
git remote add gitea ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[1].git
|
||||
and git push --set-upstream gitea master
|
||||
git remote add $argv[1] ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[2].git
|
||||
and git push --set-upstream $argv[1] master
|
||||
end
|
||||
|
||||
10
dot_config/fish/functions/smol/smol-add.fish
Normal file
10
dot_config/fish/functions/smol/smol-add.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
function smol-add
|
||||
if test (count $argv) -eq 2
|
||||
curl -d 'format=json' \
|
||||
-d "long=$argv[1]" \
|
||||
-d "short=$argv[2]" \
|
||||
https://smol.gq | jq .
|
||||
else
|
||||
curl -d 'format=json' -d "long=$argv[1]" https://smol.gq | jq .
|
||||
end
|
||||
end
|
||||
12
dot_config/fish/functions/smol/smol-delete.fish
Normal file
12
dot_config/fish/functions/smol/smol-delete.fish
Normal file
@@ -0,0 +1,12 @@
|
||||
function smol-delete
|
||||
# delete and show
|
||||
set userpass (pass show technology/linux/liteshort)
|
||||
set url https://smol.gq
|
||||
curl -u $userpass -d 'format=json' \
|
||||
-d 'api=delete' \
|
||||
-d "short=$argv[1]" \
|
||||
$url | jq .
|
||||
and curl -u $userpass -d 'format=json' \
|
||||
-d 'api=listshort' \
|
||||
$url | jq .
|
||||
end
|
||||
11
dot_config/fish/functions/smol/smol-replace.fish
Normal file
11
dot_config/fish/functions/smol/smol-replace.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
function smol-replace
|
||||
curl -u (pass show technology/linux/liteshort) \
|
||||
-d 'format=json' \
|
||||
-d 'api=delete' \
|
||||
-d "long=$argv[1]" \
|
||||
https://smol.gq | jq .
|
||||
and curl -d 'format=json' \
|
||||
-d "long=$argv[1]" \
|
||||
-d "short=$argv[2]" \
|
||||
https://smol.gq | jq .
|
||||
end
|
||||
6
dot_config/fish/functions/smol/smol-slist.fish
Normal file
6
dot_config/fish/functions/smol/smol-slist.fish
Normal file
@@ -0,0 +1,6 @@
|
||||
function smol-slist
|
||||
curl -u (pass show technology/linux/liteshort) \
|
||||
-d 'format=json' \
|
||||
-d 'api=listshort' \
|
||||
https://smol.gq | jq .
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-anno.fish
Normal file
4
dot_config/fish/functions/task/task-anno.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-anno
|
||||
task $argv[1] annotate $argv[2]
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-context.fish
Normal file
4
dot_config/fish/functions/task/task-context.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-context
|
||||
task context $argv[1]
|
||||
and task
|
||||
end
|
||||
5
dot_config/fish/functions/task/task-delete.fish
Normal file
5
dot_config/fish/functions/task/task-delete.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
function task-delete
|
||||
task $argv[1] delete
|
||||
and task sync
|
||||
and task
|
||||
end
|
||||
@@ -1,4 +1,5 @@
|
||||
function task-done
|
||||
task $argv[1] done
|
||||
and task sync
|
||||
and task
|
||||
end
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
function task-edit
|
||||
task $argv[1] edit
|
||||
and task
|
||||
end
|
||||
|
||||
4
dot_config/fish/functions/task/task-mod-proj.fish
Normal file
4
dot_config/fish/functions/task/task-mod-proj.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-mod-proj
|
||||
task $argv[1] modify project:$argv[2]
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-mod-tag.fish
Normal file
4
dot_config/fish/functions/task/task-mod-tag.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-mod-tag
|
||||
task $argv[1] modify +$argv[2]
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-next.fish
Normal file
4
dot_config/fish/functions/task/task-next.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-next
|
||||
task $argv[1] modify +next
|
||||
and task
|
||||
end
|
||||
4
dot_config/fish/functions/task/task-start.fish
Normal file
4
dot_config/fish/functions/task/task-start.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function task-start
|
||||
task $argv[1] start
|
||||
and task
|
||||
end
|
||||
@@ -1,9 +1,9 @@
|
||||
# startup [[[ #
|
||||
|
||||
# set $term $term
|
||||
# set $term_alt st
|
||||
set $term st
|
||||
set $term_alt urxvt
|
||||
set $term urxvt
|
||||
set $term_alt st
|
||||
# set $term st
|
||||
# set $term_alt urxvt
|
||||
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
|
||||
exec dunst
|
||||
exec compton
|
||||
@@ -63,6 +63,7 @@ bindsym Mod4+p exec passmenu
|
||||
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+$mod+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'
|
||||
@@ -433,7 +434,7 @@ bindsym $mod+Shift+5 move container to workspace $ws15; workspace $ws15
|
||||
bindsym Control+$mod+r exec i3-msg restart
|
||||
bindsym $mod+Shift+c reload
|
||||
# bindsym $mod+Control+r reload
|
||||
bindsym $mod+Control+u exec xrdb ~/.Xresources
|
||||
bindsym $mod+Control+u exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null
|
||||
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym Control+$mod+s exec systemctl suspend
|
||||
|
||||
Reference in New Issue
Block a user