13 Commits

Author SHA1 Message Date
15fad27d78 Initial Red Hat laptop config commit 2020-10-27 16:50:13 -04:00
59794e9bdf Initial kitty config 2020-04-17 03:22:45 -04:00
e1dc984707 Twitchy game script 2020-03-17 04:50:38 -04:00
527b573d29 fzf-ranger 2019-12-31 10:32:11 -05:00
a40cdd8962 tmux: fix swapping windows keybinding 2019-12-31 08:05:47 -05:00
0194419465 fzf-vim: don't open Vim if no file is selected 2019-12-30 03:14:10 -05:00
2a60472dcb Update 2019-12-29 19:01:31 -05:00
dd5b0c8179 Merge nzxt with origin/master 2019-10-26 20:31:15 -04:00
31c621a339 Update 2019-10-07 22:46:08 -04:00
e0ddc430d4 Fix config for laptop 2019-09-06 12:35:47 -04:00
82018d00a3 Test server pages function
Highest Watson projects alias.
2019-09-05 13:45:59 -04:00
37ba6b8dcf Taskwarrior config/fxn's, liteshort fxn's
Update NZXT packages.
2019-09-05 00:48:47 -04:00
0cb1db417b Taskwarrior config 2019-09-03 13:51:23 -04:00
80 changed files with 1180 additions and 270 deletions

View File

@@ -6,30 +6,37 @@
# clear screen
c "printf '\033c'"
cpr "cp -r"
d "cd ~/Downloads && printf '\033c'"
hst "history"
nft "printf '\033c' && neofetch | lolcat"
# nft "printf '\033c' && neofetch"
# nft "printf '\033c' && neofetch | lolcat"
nft "printf '\033c' && neofetch"
fi "fish"
# reload urxvt
ru "xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
dua "sudo du -h --apparent-size | sort -h"
dua "du -ah --apparent-size | sort -h"
# list file sizes in megabytes with depth 1
# duh "sudo du -d 1 -h --apparent-size | sort -h"
# dum "sudo du -d 1 -m --apparent-size | sort -h"
duh "du -d 1 -h --apparent-size | sort -h"
dum "du -d 1 -m --apparent-size | sort -h"
# m "man"
tld "tldr"
td "tldr"
# ]]] basic #
# display [[[ #
# nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xr "xrandr"
{{ if eq .chezmoi.fullHostname "nzxt" }}
xrn "xrandr --output HDMI-0 --rotate normal && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
xrr "xrandr --output HDMI-0 --rotate right && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
{{ end }}
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xro "xrandr --output HDMI2 --off"
xrr "xrandr --output HDMI2 --auto --right-of eDP1 --scale 1.33x1.33"
xrm "xrandr --output HDMI2 --auto --same-as eDP1 --scale 1.33x1.33"
@@ -39,12 +46,17 @@ xrs "xrandr -s 0"
# ]]] display #
ngb "sudo nvim /etc/default/grub"
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
mgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
a "bat"
# a "bat"
ba "bat"
# ba "bat *"
awkp "awk -F',' '{print \$0}'"
fde "fd -e"
grep "grep --color=auto -n"
grpr "grep -r"
rg "rg -S"
rge "rg -St"
# pk "pkill -f"
cld "colordiff -wy --suppress-common-lines"
@@ -75,11 +87,15 @@ nctr "sudo systemctl restart netctl-auto@wlp4s0.service"
cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub"
xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard"
sp "mosh --ssh='ssh -p 8022' 192.168.0.12"
ssd "mosh kevin@165.22.239.234 tmux a"
sdh "mosh kevin@165.22.239.234 htop"
# digital ocean
ssd "mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a"
sdh "mosh --ssh='ssh -p 399' kevin@165.22.239.234 htop"
sfd "sftp -rP 399 kevin@165.22.239.234"
# phone
ssp "mosh --ssh='ssh -p 8022' 192.168.0.14"
sfp "sftp -rP 8022 192.168.0.14"
# test server sites
svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk"
# svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk"
# postgres ssh tunnel
sdt "ssh kevin@165.22.239.234 -L 5433:localhost:5432"
@@ -99,7 +115,7 @@ udub "udisksctl unmount -b /dev/sdc2"
# ]]] mounting #
tc "touch"
tch "touch"
vdr "vidir --verbose"
# directory-related [[[ #
@@ -108,6 +124,7 @@ vdr "vidir --verbose"
l "lsd -F --group-dirs first"
la "lsd -AF --group-dirs first"
ll "lsd -lF --group-dirs first --size short"
llr "lsd -lF --group-dirs first --size short -tr"
lla "lsd -AlF --group-dirs first --size short"
{{ else }}
l "ls"
@@ -121,6 +138,7 @@ f "cd"
fz "fzf -e"
fbg "cd ~/Pictures/Backgrounds && ranger --selectfile (fzf -e --delimiter '/' --with-nth -1)"
fnd "find . -type f -name"
p "pwd"
rmr "rm -rf"
rmd "rm ~/Downloads/*"
@@ -143,12 +161,12 @@ nbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.fullHostname }}/tar && lsd -l"
# power options [[[ #
s "systemctl suspend"
x "exit"
xx "exit"
so "xset dpms force off"
sd "tmux kill-server; systemctl poweroff"
rb "systemctl reboot"
lo "i3-msg exit"
xm "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
rb "tmux kill-server; systemctl reboot"
lgo "i3-msg exit"
x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xl "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
@@ -232,6 +250,7 @@ apu "apt upgrade"
# python [[[ #
py "python"
py2 "python2"
# pyt "printf '\033c' && pytest -vvs"
pyt "clear && tmux clear-history && pytest -vvs"
pyts "clear && tmux clear-history && pytest -vv"
@@ -243,7 +262,7 @@ spipi "sudo pip install"
# internet [[[ #
pg "ping -c 2 -W 1 8.8.8.8"
pg2 "ping -c 2 -W 1 8.8.8.8"
pgc "ping 8.8.8.8"
dh "sudo dhcpcd"
kdh "sudo killall dhcpcd"
@@ -257,6 +276,7 @@ nt "nginx -t"
# ]]] internet #
whc "which"
fl "file"
id "identify"
# rz "source ~/{{ .chezmoi.os }}-config/aliases/zsh_aliases"
@@ -269,7 +289,41 @@ mst "sudo rm ~/st/config.h && sudo bear make -C ~/st install"
# applications [[[ #
# silent="> /dev/null 2>&1& "
13 "rot13"
am "antimicro"
# task [[[ #
a "task"
aa "task add"
aal "task add proj:lnx"
aam "task add proj:ms"
aamy "task add proj:mny"
aap "task add proj:"
aacm "task add proj:codm"
aacr "task add proj:crim"
aas "task add proj:sch"
aa2 "task add proj:sch +c324"
aa8 "task add proj:sch +c384"
aay "task add proj:pey"
ac "task context"
acn "task context none && task"
ach "task context home && task"
aco "task context out && task"
acs "task context sch && task"
af "task proj:"
afcm "task proj:codm"
afcr "task proj:crim"
afs "task proj:sch"
apl "task completed"
al "task limit:15"
alg "task log"
ans "task +next"
ao "taskopen -A"
asm "task summary"
awt "task waiting"
ay "task sync"
# ]]] task #
# buku [[[ #
# b "buku"
@@ -292,29 +346,37 @@ bw "buku --immutable 1 -zw -1"
# ]]] buku #
cc "calcurse"
ccc "calcurse -D ~/.calcurse/alt-cals/class"
cci "calcurse -i"
ccs "calcurse-caldav"
chr "google-chrome"
clc "cloc ."
cv "cava"
dg "dragon-drag-and-drop -x"
dk "docker"
dki "docker images"
ffx "firefox"
fh "feh"
fi "fish"
gpd "gpg --decrypt"
gpe "gpg --encrypt --recipient"
hba "habitctl ask"
hbl "habitctl log"
h "habitctl log"
# hbe "habitctl edit"
# hbeh "habitctl edith"
htc "htop -s PERCENT_CPU"
htm "htop -s PERCENT_MEM"
i "sxiv"
# i "sxiv"
ia "sxiv -a"
it "sxiv -t *"
ki "kill -9"
ka "killall"
kd "killall Discord && killall Discord"
kf "killall firefox"
kr "killall electron"
kt "killall thunderbird"
mp "mpv --volume=50"
lo "libreoffice"
# mpv "mpv --volume=50"
# mp "mpv"
m "mpv"
mra "man ranger"
# mt "minetest"
n "nvim"
@@ -323,44 +385,59 @@ p3 "python3"
pdft "pdftotext"
pipes "pipes.sh -t 3"
py "python"
qc "qalc '"
qcg "qalculate-gtk"
q "qalc '"
qg "qalculate-gtk"
r "ranger"
rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)"
# rgc "printf '\033c' && rg"
# rgc "printf '\033c' && rg"
rgc "clear && tmux clear-history && rg"
rgc "clear && tmux clear-history && rg -S"
rx "redshift -x"
scm "sc-im"
sn "sudo nvim"
sqlb "sqlitebrowser"
ss "mosh"
stp "termdown"
# sw "swex"
t "tmux"#[[[
t "tmux"#[[[
ta "tmux a -t"
tac "tmux a -t config || tmux new -s config"
tacf "tmux a -t config || tmux new -s config"
tacm "tmux a -t codm || tmux new -s codm"
tacr "tmux a -t crimson || tmux new -s crimson"
taf "tmux a -t fortnite || tmux new -s fortnite"
taj "tmux a -t journal || tmux new -s journal"
tas "tmux a -t school || tmux new -s school"
tas2 "tmux a -t school-2 || tmux new -s school-2"
tal "tmux a"
tk "tmux kill-server"
tc "clear && tmux clear-history"
tk "tmux kill-session -t"
tks "tmux kill-server"
tl "tmux ls"
tn "tmux new -s"
tnb "tmux new -s backup"
#]]]
usn "usernames --num 20"
vmd "vimdiff"
wg "wego"
wc "weechat"
# wg "wego"
wg "curl -L wthr.ml"
wgm "curl -L wthr.ml/m"
wgt "curl -L wthr.ml/t"
ytd "youtube-dl"
z "zathura --fork"
lz "unzip -l"
trl "tar tvzf"
trx "tar xvzf"
# pass [[[ #
ps "pass"
psc "pass -c"
pse "pass edit"
psi "pass insert -m"
psg "pass generate -c"
pss "pass show"
# p "pass"
pc "pass -c"
pe "pass edit"
pi "pass insert -m"
pg "pass generate -c"
ps "pass show"
xc "xclip -selection clipboard"
yh "echo 'kevin.mok@live.ca' | xclip -selection clipboard"
@@ -377,8 +454,9 @@ w "watson"
# start [[[ #
wa "watson start"
wacm "watson start fun +cod-mobile"
wae "watson start && watson edit"
wad "watson add -f '' -t ''"
wad "watson add"
we "watson edit"
wre "watson restart"
@@ -399,12 +477,15 @@ wt "watson status"
# log/report [[[ #
wl "watson log -Gcd"
wla "watson log -Gca -p"
wlat "watson log -Gca -T"
wla "watson log -Gcap"
wlat "watson log -GcaT"
ww "watson log -Gc"
wwa "watson log -Gc | bat"
wr "watson report -Gcd"
wra "watson report -Gca -p"
wrat "watson report -Gca -T"
wra "watson report -Gcap"
wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3 | sed 's/ - /,/' | xsv table"
wrat "watson report -GcaT"
wrm "watson report -GcmT"
wrw "watson report -Gc"
# ]]] log/report #
@@ -429,18 +510,22 @@ gba "git branch --no-merged && echo '' && git branch --merged"
gbu "git branch --no-merged"
gbm "git branch --merged"
gsm "git submodule add"
gsm "git submodule"
gsma "git submodule add"
gsmi "git submodule init"
gsmp "git submodule foreach git pull"
gsmu "git submodule update --recursive --remote"
gmg "git merge"
gmgts "git merge -X theirs"
gmgt "git mergetool"
gr "git remote -v"
gra "git remote add origin"
grag "git remote add gitea git@ataraxy.tk:Kevin-Mok/.git"
# grag "git remote add gitea git@ataraxy.tk:Kevin-Mok/.git"
grr "git remote remove origin"
grs "git remote show origin"
# grs "git remote show origin"
gru "git branch --set-upstream-to=origin/master master"
# ]]] branch #
@@ -450,9 +535,17 @@ gru "git branch --set-upstream-to=origin/master master"
ga "git add -A && git status -u"
gac "git add -A && git commit -S"
gaf "git add -f"
gal "git lfs track"
# unsigned commt
gacu "git add -A && git commit"
glf "git lfs"
glfi "git lfs install"
glfp "git lfs pull"
glft "git lfs track *"
gm "git mv"
grm "git rm"
grmf "git rm -f"
grmc "git rm --cached"
@@ -471,24 +564,27 @@ gdt "git difftool -w --tool=vimdiff"
gdtc "git difftool -w --cached --tool=vimdiff"
gl "git log"
glm "git log master"
gsl "git shortlog"
# gsl "git shortlog"
# ]]] diff/log #
# pull [[[ #
gcln "git clone"
gcl "git clone"
gs "git status -u"
gf "git fetch origin"
gf "git fetch"
gfg "git fetch gitea"
gfo "git fetch origin"
gfog "git fetch orig"
gch "git checkout"
gchn "git checkout -b"
gchm "git checkout master"
gchnw "git checkout -b wip"
gchw "git checkout wip"
gchfh "git checkout HEAD --"
gchh "git checkout HEAD --"
grs "git reset --hard HEAD"
grom "git reset --hard origin/master"
gheadm1 "git reset --hard HEAD~1"
# show files in git repo
@@ -496,6 +592,7 @@ gheadm1 "git reset --hard HEAD~1"
gls "git ls-tree HEAD --name-only"
gchp "git cherry-pick"
gchpt "git cherry-pick --strategy=recursive -X theirs"
gchpc "git cherry-pick --continue"
gst "git stash"
@@ -522,7 +619,7 @@ gcap "git add -A && git commit --amend --no-edit -S && git push --force"
psgi "git add -A && git commit -m 'Update' -S && git push"
gps "git push"
gpsg "git push gitea"
gpsi "git config credential.helper store && git push"
# gpsi "git config credential.helper store && git push"
# gpsn "git push --set-upstream origin master"
gpsn "eval (git push 2>&1 | tail -n 2)"
gpsf "git push --force"
@@ -536,6 +633,9 @@ gunc "git update-index --assume-unchanged"
# coding projs [[[ #
tld "tldr"
# fsl "zathura --fork ~/coding/fastest-languages.pdf"
fsl "bat ~/Documents/fastest-languages/fastest-languages.md"
rgt "rg TODO"
# make [[[ #
@@ -574,14 +674,14 @@ upip "pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xa
ureq "pip freeze > requirements.txt"
# show last history scan
hlg "psql -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/history.sql | rg 2019 | tac"
hlg "psql -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/queries/history.sql | rg 2019 | tac"
slg "tail -n 5 $spv_dir/src/api/management/commands/update-history.log"
# scan history
# hs "$spv_dir/src/update-history.sh && cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1"
# removes all but newest file
# rmol "ls -t | tail -n +2 | xargs rm -- && l"
snw "spotify-now -i '%artist - %title'"
# snw "spotify-now -i '%artist - %title'"
svd "pg_dump spotifyvis > spotifyvis.bak"
@@ -601,7 +701,7 @@ wr0 "watson report --all --project=309 --tag=phase2"
# server [[[ #
# nd "node"
no "node"
ndm "nodemon"
knd "killall node"
mg "mongo"
@@ -629,11 +729,12 @@ gpsh "git push heroku"
# mfs [[[ #
ht "python3 -m http.server"
pyh "python -m http.server"
# j "jekyll"
# js "jekyll serve"
h "hugo"
he "hugo serve -D --disableFastRender"
hu "hugo"
hd "hugo server -D --disableFastRender --bind 192.168.0.10 --baseURL 'http://192.168.0.10:1313'"
hg "hugo serve --disableFastRender"
# ]]] mfs #
@@ -655,25 +756,46 @@ sac "source ../../bin/activate.fish"
dea "deactivate"
whe "watch echo"
vst "cp ~/Documents/workout-logs/stretching.md /tmp && nvim /tmp/stretching.md"
nst "cp ~/Documents/workout-logs/stretching.md /tmp && nvim /tmp/stretching.md"
# Red Discord bot
rde "pyenv shell red-discord-bot-test"
rbd "redbot --dev --debug"
# ]]] coding projs #
# games [[[ #
wlm "watson log --all --project=minetest"
wrm "watson report --all --project=minetest"
# wrm "watson report --all --project=minetest"
wamv "watson start minetest +video"
# minetest [[[ #
mtg "minetest"
ms "minetestserver"
msc "minetestserver --gameid minetest --worldname Creative --terminal"
# msh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal"
msh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal"
msv "minetestserver --gameid minimal --worldname Test --terminal"
mts "minetestserver"
mtsc "minetestserver --gameid minetest --worldname Creative --terminal"
# mtsh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal"
mtsh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal"
mtsv "minetestserver --gameid minimal --worldname Test --terminal"
# mtrsy "rsync -vr .minetest/ /mnt/linux-files/.minetest/"
# ]]] minetest #
tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection clipboard"
shrg "printf '¯\\\\\\\\\\_(ツ)_/¯' | xclip -selection clipboard"
dcec "mono DiscordChatExporter.Cli.exe"
dcec "mono DiscordChatExporter.Cli.exe export -t $DISCORD_TOKEN -c"
ifm "sxiv ~/Documents/fortnite/maps/boat-campfire-slurp.png"
tw "twitchy"
twa "twitchy -a"
twd "twitchy -d"
tws "twitchy -s"
twf "watch -n300 'twitchy-game Fortnite'"
# mp "mpv --video-zoom=1.5"
# ufn "source trn-api-key.fish && curl --request GET --url https://api.fortnitetracker.com/v1/profile/pc/Vole%20on%20Mobile --header 'trn-api-key: 584d8eca-30d9-4119-92d8-5067dd301118' --cookie __cfduid=d4f0daac7eee3687b481bd55dcf00f3581581900091 > stats.json"
# ]]] games #
@@ -682,16 +804,70 @@ tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection cl
# basic
# wlf "watson log --all --tag=final"
# wrf "watson report --all --tag=final"
gpa "column -ts',' ~/Documents/gpa.md"
ssc "mosh mokkar@teach.cs.utoronto.ca"
# alg course
jc "javac -d out *.java"
jr "java -cp \"$CLASSPATH:out\""
# 263
wl6 "watson log --all --project=263 --tag=a5"
wr6 "watson report --all --project=263 --tag=a5"
z6 "zathura --fork ~/school/263/Introduction-to-Algorithms-CLRs/Introduction\ to\ Algorithms\ -\ 3rd\ Edition.pdf"
pd6 "pdflatex a5"
# ]]] school #
# red-hat [[[ #
fp "fpaste"
# oc [[[ #
cra "sudo systemctl start libvirtd && crc start"
crs "crc stop"
crcc "crc console"
crcr "crc console --credentials"
o "oc"
oa "oc apply -f"
od "oc describe"
odp "oc describe pod"
odi "oc describe kogitoinfra"
odr "oc describe kogitoruntime"
odl "oc delete"
odlb "oc delete kogitobuild"
odlc "oc delete configmap"
odlp "oc delete pod"
odlpj "oc delete project"
odlr "oc delete kogitoruntime"
og "oc get pods"
ogw "oc get pods -w"
ogb "oc get kogitobuild"
ogc "oc get configmap"
ogi "oc get imagestream"
ogn "oc get"
ogr "oc get kogitoruntime"
ol "oc logs -f"
oli "oc login -u kubeadmin -p"
on "oc new-project"
op "oc project"
opa "oc projects | rg kogito"
opd "oc project default"
ot "oc status"
# ]]] oc #
jk "java -jar ~/Downloads/jenkins-cli.jar -s https://rhba-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/ -auth kmok:\$JENKINS_RHBA_TOKEN"
# kogito [[[ #
k "kogito"
kp "kogito deploy-service"
kl "kogito delete-service"
kph "kogito deploy-service hw"
klh "kogito delete-service hw"
chw "curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{\"name\" : \"john\"}' http://hw-2113.apps-crc.testing/scripts"
# do "make mod clean && DEBUG=true operator-sdk run --local --watch-namespace=3376-2"
# dop "git pull --rebase && make mod clean && DEBUG=true operator-sdk run --local --watch-namespace=3376-2"
# ]]] kogito #
po "podman"
poi "podman image"
pos "podman images"
pot "podman image tag"
# ]]] red-hat #

View File

@@ -9,15 +9,18 @@ cff ~/.config/fish
dl ~/Downloads
# dw ~/dwm
D ~/Documents
k ~/
kh ~/
lc ~/linux-config
lf /mnt/linux-files
lfv /mnt/linux-files/Videos
Lfp /mnt/linux-files/Pictures
Lfv /mnt/linux-files/Videos
me /run/media/kevin
o /
p ~/.password-store
pd ~/.password-store
P ~/Pictures
std ~/st
tm /tmp
# tm /tmp
tm ~/tmp
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
ng /etc/nginx/sites-available
@@ -28,9 +31,17 @@ sv /etc/systemd/system
# cdn [[[ #
ad ~/.task
ccd ~/.calcurse
cn ~/coding
drk ~/coding/dark-sky
hbd ~/.habitctl
ib ~/linux-config/dot_config/i3blocks/scripts
ra ~/linux-config/dot_config/ranger
rd ~/Documents/red-discord-bot
rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure
rdt ~/coding/discord-bots
rdp ~/coding/discord-bots/pinky/cogs/CogManager/cogs/adventure
sr ~/linux-config/scripts
snp ~/.vim/plugged/vim-snippets/UltiSnips
sw ~/.local/share/nvim/swap/
@@ -40,20 +51,35 @@ wd ~/.config/watson
{{ if eq .chezmoi.fullHostname "nzxt" }}
b1 ~/coding/mf-site/themes/base16
2d ~/coding/godot-demos/2d-plat
ad ~/coding/ada-mario
ada ~/coding/ada-mario
ft ~/coding/face-tracker
j ~/Documents/journal
lh ~/Documents/listening-history
mmd ~/coding/move-mouse-with-head
mfs ~/coding/mf-site
mh ~/coding/mf-site/layouts
# mg ~/coding/best-mf-site-personal
ms ~/coding/mf-site
ml ~/coding/mf-site/content/letter
# mp ~/coding/mf-site/static/pdf
pn ~/coding/red-discord-bot
sv ~/coding/spotify-lib-vis/src
svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts
swd ~/coding/swex
tb ~/coding/trapbot/src/trapbot
te ~/Documents/twitch-emotes
ur ~/coding/uranium-godot
wo ~/Documents/workout-logs
# gaming [[[ #
te ~/Pictures/twitch-emotes
mt ~/.minetest
mta ~/.minetest/clientmods/custom_aliases
mtc ~/.minetest/games/mineclone2/mods
mtm ~/.minetest/minetest
# pk ~/Downloads/gba/mgba/pokemon/emerald/1
# ]]] gaming #
{{ end }}
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
@@ -68,14 +94,18 @@ adP ~/Pictures/ada-mario
# gaming [[[ #
te ~/Documents/twitch-emote-conversion
cm ~/Documents/codm
cs ~/Documents/codm/site
csi ~/Documents/codm/site/static/images
Css ~/Pictures/screenshots/mobile/codm
mt ~/.minetest
mta ~/.minetest/clientmods/custom_aliases
mtc ~/.minetest/games/mineclone2/mods
mtm ~/.minetest/minetest
pk ~/Downloads/gba/mgba/pokemon/emerald/1
fn ~/Documents/fortnite
fnc /mnt/linux-files/Videos/yt/fortnite/clips/4
fnm ~/Documents/fortnite/pics/maps
fnn ~/Documents/fortnite/notes
fns ~/Documents/fortnite/stats/api
fnv /mnt/linux-files/Videos/personal-fortnite-games/review
tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader
# ]]] gaming #
@@ -84,25 +114,13 @@ pk ~/Downloads/gba/mgba/pokemon/emerald/1
sc ~/school
lt ~/school/latex-notes
6 ~/school/263
63 ~/school/263/a5
# 631 ~/school/263/a5/q1
# 632 ~/school/263/a5/q2
633 ~/school/263/a5/q3
63t ~/school/latex-notes/263/a5
al1 ~/school/algorithms/w1-union-find
# 309 [[[ #
0c ~/school/309-proj/css
0d ~/school/309
0j ~/school/309-proj/public/js
0l ~/school/309/l
0p ~/school/309-proj
0m ~/school/309-proj/mongo
# ]]] 309 #
# ]]] sch #
kg ~/coding/kogito
ke ~/coding/kogito/kogito-examples
keqs ~/coding/kogito/kogito-examples/process-scripts-quarkus
keqe ~/coding/kogito/kogito-examples/process-quarkus-example
# kg ~/coding/kogito/github-release-test
# ko ~/coding/kogito/kogito-cloud-operator
ko ~/go/src/github.com/kiegroup/kogito-cloud-operator
wcl ~/.weechat/logs

View File

@@ -8,7 +8,7 @@ ak ~/linux-config/dot_ssh/authorized_keys-all
d ~/linux-config/aliases/key_dirs.tmpl
dw ~/dwm/config.def.h
f ~/linux-config/aliases/key_files.tmpl
h ~/.local/share/fish/fish_history
fh ~/.local/share/fish/fish_history
n ~/linux-config/dot_vimrc.tmpl
p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt
r ~/linux-config/dot_config/ranger/rc.conf.tmpl
@@ -30,28 +30,36 @@ ng /etc/nginx/nginx.conf
# cdn [[[ #
ap ~/.task/pending.data
at ~/.task/to-add.md
bid ~/Documents/journal/todo/blog.md
cc ~/linux-config/private_dot_calcurse/conf
ci ~/linux-config/txt/ideas.md
cm ./commit-msg.txt
cmt /tmp/commit-msg.txt
el ~/Documents/twitch-emotes/links-new.md
h ~/.habitctl/log
hh ~/.habitctl/habits
hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log
id ~/Documents/journal/todo/ideas.md
ig ./.gitignore
jn ~/Documents/journal/todo/9.md
jn ~/Documents/journal/todo/2.md
jt ~/Documents/journal/todo/todo.md
lh ~/Documents/listening-history/polarbier.csv
mc ~/coding/mf-site/assets/sass/main.scss
mi ~/coding/mf-site/ideas.md
ne ~/linux-config/configs/neofetch/config.conf
re README.md
rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/adventure.py
rdc ~/Documents/red-discord-bot/commands-freq.md
td todo.md
el ~/Documents/twitch-emotes/links-new.md
tg ~/.config/watson/tags_cache
tt txt/todo.md
tm ~/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets
tp /tmp/
tw ~/linux-config/dot_taskrc
w ~/.config/watson/state.tmp
wh ~/Documents/journal/todo/work-habit.md
wt ~/.config/watson/state.tmp
# ]]] cdn #
@@ -69,6 +77,21 @@ wt ~/.config/watson/state.tmp
# ]]] 309 #
# 384
8a ~/school/384/a1/searchAgents.py
8s ~/school/384/a1/search.py
# ]]] sch #
# gaming [[[ #
cmr ~/Documents/codm/discord-recruitment.md
cra ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/attribs.json
crm ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/monsters.json
fn ~/Documents/fortnite/notes/fortnite-notes.md
fv ~/Documents/fortnite/notes/vods.md
mta ~/.minetest/clientmods/custom_aliases/init.lua
pk ~/Downloads/pokecord/pokecord2.md
tc /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader/clips.txt
# ]]] gaming #

View File

@@ -2,5 +2,6 @@ clear Lock
keycode 22 = Caps_Lock
keycode 66 = BackSpace
keycode 78 = End
pointer = 1 10 3 6 7 4 5 2 11 12 8 9

View File

@@ -5,3 +5,5 @@ keycode 110 = Delete
keycode 22 = Home
keycode 119 = End
pointer = 1 2 3 4 5 6 7 8 9 10 11 12

7
dot_Xmodmap-laptop-work Normal file
View File

@@ -0,0 +1,7 @@
clear Lock
keycode 9 = Caps_Lock
keycode 22 = BackSpace
keycode 66 = Escape
pointer = 1 2 3 4 5 6 7 8 9 10 11 12

View File

@@ -0,0 +1,7 @@
clear Lock
keycode 22 = Caps_Lock
keycode 66 = BackSpace
keycode 78 = End
pointer = 1 2 3 4 5 6 7 8 9 10 11 12

View File

@@ -1,6 +1,12 @@
/* dpi [[[ */
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
! Xft.dpi: 240
Xft.dpi: 230
{{ else }}
Xft.dpi: 135
! Xft.dpi: 170
{{ end }}
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
@@ -13,7 +19,8 @@ Xft.rgba: rgb
/* font [[[ */
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11.5
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12
{{ else }}
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15
@@ -42,8 +49,9 @@ URxvt*transparent: true
URxvt*inheritPixmap: true
! URxvt*transparent: false
! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white
URxvt*shading: 40
! URxvt*shading: 35
! URxvt*shading: 50
! URxvt*shading: 40
URxvt*shading: 35
! urxvt*blurRadius: 10
/* ]]] transparency */

View File

@@ -0,0 +1,137 @@
# fish completion for kogito -*- shell-script -*-
function __kogito_debug
set file "$BASH_COMP_DEBUG_FILE"
if test -n "$file"
echo "$argv" >> $file
end
end
function __kogito_perform_completion
__kogito_debug "Starting __kogito_perform_completion with: $argv"
set args (string split -- " " "$argv")
set lastArg "$args[-1]"
__kogito_debug "args: $args"
__kogito_debug "last arg: $lastArg"
set emptyArg ""
if test -z "$lastArg"
__kogito_debug "Setting emptyArg"
set emptyArg \"\"
end
__kogito_debug "emptyArg: $emptyArg"
set requestComp "$args[1] __complete $args[2..-1] $emptyArg"
__kogito_debug "Calling $requestComp"
set results (eval $requestComp 2> /dev/null)
set comps $results[1..-2]
set directiveLine $results[-1]
# For Fish, when completing a flag with an = (e.g., <program> -n=<TAB>)
# completions must be prefixed with the flag
set flagPrefix (string match -r -- '-.*=' "$lastArg")
__kogito_debug "Comps: $comps"
__kogito_debug "DirectiveLine: $directiveLine"
__kogito_debug "flagPrefix: $flagPrefix"
for comp in $comps
printf "%s%s\n" "$flagPrefix" "$comp"
end
printf "%s\n" "$directiveLine"
end
# This function does three things:
# 1- Obtain the completions and store them in the global __kogito_comp_results
# 2- Set the __kogito_comp_do_file_comp flag if file completion should be performed
# and unset it otherwise
# 3- Return true if the completion results are not empty
function __kogito_prepare_completions
# Start fresh
set --erase __kogito_comp_do_file_comp
set --erase __kogito_comp_results
# Check if the command-line is already provided. This is useful for testing.
if not set --query __kogito_comp_commandLine
set __kogito_comp_commandLine (commandline)
end
__kogito_debug "commandLine is: $__kogito_comp_commandLine"
set results (__kogito_perform_completion "$__kogito_comp_commandLine")
set --erase __kogito_comp_commandLine
__kogito_debug "Completion results: $results"
if test -z "$results"
__kogito_debug "No completion, probably due to a failure"
# Might as well do file completion, in case it helps
set --global __kogito_comp_do_file_comp 1
return 0
end
set directive (string sub --start 2 $results[-1])
set --global __kogito_comp_results $results[1..-2]
__kogito_debug "Completions are: $__kogito_comp_results"
__kogito_debug "Directive is: $directive"
if test -z "$directive"
set directive 0
end
set compErr (math (math --scale 0 $directive / 1) % 2)
if test $compErr -eq 1
__kogito_debug "Received error directive: aborting."
# Might as well do file completion, in case it helps
set --global __kogito_comp_do_file_comp 1
return 0
end
set nospace (math (math --scale 0 $directive / 2) % 2)
set nofiles (math (math --scale 0 $directive / 4) % 2)
__kogito_debug "nospace: $nospace, nofiles: $nofiles"
# Important not to quote the variable for count to work
set numComps (count $__kogito_comp_results)
__kogito_debug "numComps: $numComps"
if test $numComps -eq 1; and test $nospace -ne 0
# To support the "nospace" directive we trick the shell
# by outputting an extra, longer completion.
__kogito_debug "Adding second completion to perform nospace directive"
set --append __kogito_comp_results $__kogito_comp_results[1].
end
if test $numComps -eq 0; and test $nofiles -eq 0
__kogito_debug "Requesting file completion"
set --global __kogito_comp_do_file_comp 1
end
# If we don't want file completion, we must return true even if there
# are no completions found. This is because fish will perform the last
# completion command, even if its condition is false, if no other
# completion command was triggered
return (not set --query __kogito_comp_do_file_comp)
end
# Remove any pre-existing completions for the program since we will be handling all of them
# TODO this cleanup is not sufficient. Fish completions are only loaded once the user triggers
# them, so the below deletion will not work as it is run too early. What else can we do?
complete -c kogito -e
# The order in which the below two lines are defined is very important so that __kogito_prepare_completions
# is called first. It is __kogito_prepare_completions that sets up the __kogito_comp_do_file_comp variable.
#
# This completion will be run second as complete commands are added FILO.
# It triggers file completion choices when __kogito_comp_do_file_comp is set.
complete -c kogito -n 'set --query __kogito_comp_do_file_comp'
# This completion will be run first as complete commands are added FILO.
# The call to __kogito_prepare_completions will setup both __kogito_comp_results abd __kogito_comp_do_file_comp.
# It provides the program's completion choices.
complete -c kogito -n '__kogito_prepare_completions' -f -a '$__kogito_comp_results'

View File

@@ -17,40 +17,58 @@ 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
{{ end }}
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
# system[[[
set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
set -x GOPATH ~/go
set -x HASTE_SERVER https://pste.gq
set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-20.1.0
set -x GRAALVM_BIN $GRAALVM_HOME/bin
# set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk
set -x JAVA_HOME $GRAALVM_HOME
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x MAVEN_HOME /opt/maven
set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin $MAVEN_HOME/bin
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
{{ 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" }}
# 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_DIR_PREFIX ''
set SPACEFISH_ADD_NEWLINE false
set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char
set SPACEFISH_DIR_PREFIX ''
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
# causes xmodmap to have issues when opening terminal sometimes
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
{{ 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 -U BROWSER "firefox"
set -xU BROWSER "firefox"
set -xU FZF_DEFAULT_COMMAND "find ."
set -xU KOGITO_SERVICE_URL "http://example-quarkus-3376.apps-crc.testing/"
# ]]] universal var's #
@@ -70,7 +88,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"
@@ -81,10 +99,12 @@ end
abbr ab "abbr"
abbr abe "abbr -e"
abbr hm "history merge"
abbr hs "history search --show-time"
# abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
abbr f. "cd .."
abbr f.. "cd ../.."
abbr hsm "history merge"
abbr nxv "$EDITOR ~/.config/fish/fish_variables"
abbr xf "fish_config"
# ]]] fish-specific #
@@ -92,62 +112,101 @@ abbr xf "fish_config"
# fxn abbr's [[[ #
abbr ! "sudo !!"
# task [[[ #
abbr aan "task-anno"
abbr ae "task-edit"
abbr adl "task-delete"
abbr adn "task-done"
abbr adu "task-due"
abbr adr "task-due-rm"
abbr an "task-next"
abbr anr "task-next-rm"
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 asr "task-start"
abbr at "task-mod-tag"
abbr aw "task-wait"
abbr ax "task-context"
# ]]] task #
abbr ag "grep-aliases"
abbr b "buku-fzf"
abbr bf "buku-fzf fq"
abbr bq "benq-brightness"
abbr bupp "backup-phone-pics"
abbr cccs "sync-alt-cal class"
abbr cl "clip"
abbr cpc "copy cat"
abbr cpe "copy echo"
abbr cpp "copy echo (pwd)"
abbr cff "create-fish-function"
abbr ctr "systemctl-restart"
abbr def "define"
abbr do "debug-operator"
abbr dop "debug-operator pull"
abbr ens "enable-site"
abbr ev "evince-silent"
# abbr fbg "find-bg"
abbr fr "fzf-ranger"
abbr fv "fzf-vim"
abbr fvft "find-vim-filetype"
abbr fzv "fzf-vim"
# git [[[ #
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"
abbr gpngg "git-push-new-gitea gitea"
abbr gremotes "git-mult-remotes"
abbr grmb "git-delete-branch"
abbr gro "git-replace-origin"
abbr grog "git-replace-origin-gitea"
abbr gsmb "git-submodule-branch"
# ]]] git #
abbr hs "scan-history"
abbr m "man-vim"
abbr i "sxiv-silent"
# abbr m "man-vim"
abbr mn "man-vim"
abbr ma "man-vim task"
abbr mat "math"
abbr mdf "mkdir-cd"
abbr oge "oc-get-events"
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"
abbr smd "smol-delete"
abbr sml "smol-slist"
abbr smr "smol-replace"
abbr shrm "shred-rm"
abbr tac "tmux-attach config"
abbr taj "tmux-attach journal"
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"
abbr waf "watson-add-fortnite"
abbr xya "export-pkgs"
# school [[[ #
# 369
abbr grc "grep-c"
abbr grh "grep-headers"
abbr rgh "rg-headers"
abbr jcr "java-compile-run"
abbr jct "java-compile-test"
abbr rdo "redeploy-operator"
# ]]] school #
# ]]] fxn abbr's #
abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
# task sync > /dev/null 2>&1
# ~/scripts/xmodmap-custom

View File

@@ -0,0 +1,7 @@
function clip
if test (count $argv) -eq 3
ffmpeg -ss $argv[1] -i $argv[2] -codec copy $argv[3]
else
ffmpeg -ss $argv[1] -to $argv[2] -i $argv[3] -codec copy $argv[4]
end
end

View File

@@ -0,0 +1,7 @@
function debug-operator
if test (count $argv) -gt 0
git pull --rebase
end
make mod clean
and DEBUG=true operator-sdk run --local --watch-namespace=3376 &| tee debug-operator.log
end

View File

@@ -0,0 +1,6 @@
function fzf-ranger
set dir (fd -td | fzf)
if test ! -z "$dir"
ranger $dir
end
end

View File

@@ -1,3 +1,6 @@
function fzf-vim
fzf | xargs $EDITOR
set file (fzf)
if test ! -z "$file"
$EDITOR $file
end
end

View 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

View File

@@ -0,0 +1,3 @@
function git-submodule-branch
git submodule set-branch --branch $argv[2] -- $argv[1]
end

View File

@@ -0,0 +1,3 @@
function git-clone-gitea
git clone ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git
end

View File

@@ -0,0 +1,5 @@
function git-push-initial
git add -A
and git commit -S -m 'Initial commit'
and git push
end

View File

@@ -1,4 +1,4 @@
function git-push-new-gitea
git remote add gitea git@git.ataraxy.tk:Kevin-Mok/$argv[1].git
and git push --set-upstream gitea master
git remote add origin ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git
and git push --set-upstream origin master
end

View File

@@ -0,0 +1,6 @@
function git-replace-origin-gitea
git remote remove origin
and git remote add origin ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git
and git branch --set-upstream-to=origin/master master
and git push
end

View File

@@ -0,0 +1,3 @@
function mkdir-cd
mkdir -p $argv[1] && cd $argv[1]
end

View File

@@ -0,0 +1,3 @@
function oc-get-events
oc get events --field-selector involvedObject.name="$argv[1]"
end

View File

@@ -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

View File

@@ -0,0 +1,3 @@
function qalc-history
qalc $argv[1] | tee -a /home/kevin/Documents/journal/personal/calc-history.md
end

View File

@@ -0,0 +1,5 @@
function redeploy-operator
oc delete deployment kogito-operator
make deploy-operator-on-ocp
oc get pods -w
end

View File

@@ -0,0 +1,17 @@
function server-pages
set sites kevin-mok.com git.kevin-mok.com cal.khkm.tk mnpd.gq/kbg pste.gq smol.gq twem.tk
set titles "Kevin Mok" "Kevin Mok's Gitea" "Baïkal server" "kbg" "hastebin" "Kevin's URL Shortener" "Twitch Emote Links"
# set sites twem.tk
# set titles "Twitch Emote Links"
for i in (seq (count $sites))
set title (wget -qO- "$sites[$i]" | perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | recode html)
if test $title = $titles[$i]
set symbol "✓"
else
set symbol "✗"
end
printf "[$symbol] $sites[$i]\n"
end
end

View 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

View 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

View 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

View 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

View File

@@ -0,0 +1,3 @@
function sxiv-silent
sxiv $argv[1] &
end

View File

@@ -0,0 +1,4 @@
function task-anno
task $argv[1] annotate $argv[2]
and task
end

View File

@@ -0,0 +1,4 @@
function task-context
task context $argv[1]
and task
end

View File

@@ -0,0 +1,5 @@
function task-delete
task $argv[1] delete
and task sync
and task
end

View File

@@ -0,0 +1,5 @@
function task-done
task $argv[1] done
and task sync
and task
end

View File

@@ -0,0 +1,4 @@
function task-due-rm
task $argv[1] mod due:
and task
end

View File

@@ -0,0 +1,4 @@
function task-due
task $argv[1] mod due:+$argv[2]
and task
end

View File

@@ -0,0 +1,4 @@
function task-edit
task $argv[1] edit
and task
end

View File

@@ -0,0 +1,4 @@
function task-mod-pri
task $argv[2] modify pri:$argv[1]
and task
end

View File

@@ -0,0 +1,4 @@
function task-mod-proj
task $argv[1] modify project:$argv[2]
and task
end

View File

@@ -0,0 +1,4 @@
function task-mod-tag
task $argv[1] modify +$argv[2]
and task
end

View File

@@ -0,0 +1,4 @@
function task-next-rm
task $argv[1] modify -next
and task
end

View File

@@ -0,0 +1,4 @@
function task-next
task $argv[1] modify +next
and task
end

View File

@@ -0,0 +1,4 @@
function task-notes
task $argv[1] annotate Notes
and taskopen $argv[1]
end

View File

@@ -0,0 +1,4 @@
function task-start
task $argv[1] start
and task
end

View File

@@ -0,0 +1,4 @@
function task-wait
task $argv[1] mod wait:+$argv[2]
and task
end

View File

@@ -0,0 +1,3 @@
function us-to-cad
qalc "$argv[1]\$ to CAD"
end

View File

@@ -0,0 +1,7 @@
function watson-add-fortnite
if test (count $argv) -eq 4
watson add -f "2020-04-$argv[1] $argv[2]" -t "2020-04-$argv[3] $argv[4]" fun +fortnite
else
watson add -f "2020-04-$argv[1] $argv[2]" -t "2020-04-$argv[3] $argv[4]" fun +fortnite +$argv[5]
end
end

View File

@@ -1,9 +1,11 @@
# startup [[[ #
# set $term $term
# set $term urxvt
# set $term_alt st
set $term st
set $term kitty
set $term_alt urxvt
# set $term st
# set $term_alt urxvt
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
exec dunst
exec compton
@@ -13,8 +15,12 @@ exec xbacklight -set 10
# exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")"
exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
{{ end }}
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
# 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 -e fish -c "tmux-attach fortnite"'
exec --no-startup-id i3-msg 'workspace $ws1; exec $term'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
# exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy'
# exec --no-startup-id i3-msg 'workspace $ws6; exec discord'
# ]]] startup #
@@ -22,20 +28,21 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
set $mod Mod1
set $browser "firefox"
# set $browser "chromium"
# set $browser "chromium-browser"
set $scripts_path "/home/kevin/scripts"
set $sch_dir "$HOME/Documents/School"
# app shortcuts [[[ #
set $type_delay_cmd sleep .4
set $type_delay_cmd sleep .3
bindsym Control+Return exec $term
bindsym Control+Shift+Return exec st -A1
bindsym Control+$mod+Return exec $term_alt
# bindsym Control+$mod+Return exec st
# PROTIP: You can also dynamically set dmenu's colors this way:
bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
# bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
bindsym Mod4+Return exec ~/scripts/dmenu-history -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
# bindsym Mod4+Return exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
# bindsym Mod4+Return exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
@@ -47,10 +54,14 @@ bindsym Mod4+c exec $browser
# bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)"
# bindsym Mod4+e exec emacs
bindsym Mod4+e exec ~/scripts/twem
bindsym Mod4+f exec firefox
# bindsym Mod4+f exec firefox
bindsym Mod4+f exec firefox --private-window
# 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
bindsym Mod4+n exec $term -e nvim
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v'
@@ -58,28 +69,31 @@ 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+q exec qdirstat
bindsym Mod4+q exec printf 'emad1 ' | xclip -selection clipboard && $type_delay_cmd && xdotool key 'Control_L+v'
bindsym Mod4+r exec $term -e ranger
bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
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+$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 $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 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 xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+Print --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Mod4+x exec ~/scripts/xmodmap-custom
bindsym Print --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+Print --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ else }}
bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE
bindsym $mod+p --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+$mod+p --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+$mod+p --release exec "maim -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+Shift+p --release exec "maim -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ end }}
# ]]] app shortcuts #
@@ -91,13 +105,13 @@ bindsym $mod+Mod4+2 exec redshift -x && redshift -O 2000
bindsym $mod+Mod4+3 exec redshift -x && redshift -O 3000
bindsym $mod+Mod4+4 exec redshift -x && redshift -O 4000
bindsym $mod+Mod4+5 exec redshift -x && redshift -O 5000
bindsym $mod+Mod4+grave exec redshift -x
bindsym $mod+Mod4+grave exec Redshift -x
# ]]] redshift #
# backlight [[[ #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
bindsym Shift+F1 exec xbacklight -set 10
bindsym Shift+F2 exec xbacklight -set 20
bindsym Shift+F3 exec xbacklight -set 30
@@ -107,13 +121,14 @@ bindsym Shift+F6 exec xbacklight -set 60
bindsym Shift+F7 exec xbacklight -set 70
bindsym Shift+F8 exec xbacklight -set 80
bindsym Shift+F9 exec xbacklight -set 90
bindsym Shift+F0 exec xbacklight -set 100
bindsym Shift+F10 exec xbacklight -set 100
bindsym Shift+grave exec xbacklight -set 0
bindsym Control+$mod+plus exec xbacklight -inc 2
bindsym Control+$mod+minus exec xbacklight -dec 2
bindsym $mod+w exec sudo systemctl start netctl-auto@wlp3s0.service
bindsym $mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
bindsym Control+$mod+w exec sudo systemctl start netctl-auto@wlp3s0.service
bindsym Control+$mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
{{ end }}
# ]]] backlight #
@@ -163,8 +178,8 @@ for_window [class="^.*"] border pixel 3
# gaps inner $inner_gaps
# gaps outer $outer_gaps
# gaps bottom 0
gaps inner 0
gaps outer 0
# gaps inner 0
# gaps outer 0
{{ if eq .chezmoi.fullHostname "nzxt" }}
border_radius $border_radius
{{ end }}
@@ -254,7 +269,7 @@ bindsym shift+x kill
bindsym Control+$mod+t sticky toggle
# bindsym Control+$mod+a floating enable; resize set 400px 125px; move absolute position 1648 200; sticky enable
bindsym Control+$mod+a floating enable; resize set 400px 110px; move absolute position 824 992; sticky enable
bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute position 424 945; sticky enable
# for_window [class="ada-mario"] floating enable
# for_window [class="ada-mario"] move absolute position 640 0
@@ -266,22 +281,28 @@ bindsym Control+$mod+a floating enable; resize set 400px 110px; move absolute po
set $make_st_script "/home/kevin/st/make-st.sh"
# test
{{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
bindsym Control+Shift+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
bindsym Control+Shift+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
{{ else }}
bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
{{ end }}
bindsym $mod+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script
bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
{{ end }}
# ]]] backgrounds #
# ws names [[[ #
set $ws1 "1 "
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
set $secondary "HDMI2"
set $main "eDP1"
# {{ else if eq .linux_os "fedora" }}
# set $secondary "HDMI2"
# set $main "eDP-1"
{{ else if eq .chezmoi.fullHostname "nzxt" }}
set $secondary "DVI-I-1"
set $main "HDMI-0"
@@ -293,10 +314,15 @@ 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 fortnite'
bindsym Control+$mod+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach crimson'
# 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 "
workspace $ws3 output $main
# workspace $ws3 output $main
bindsym $mod+F3 workspace $ws3; exec $browser
# bindsym Mod4+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf"
# bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf fq"
@@ -304,21 +330,25 @@ bindsym $mod+F3 workspace $ws3; exec $browser
# bindsym Mod4+$mod+b layout stacked; exec $term -e fish -c "buku-fzf fq"
bindsym Mod4+b layout tabbed; exec $term -e fish -c "buku-fzf"
bindsym Mod4+$mod+b layout tabbed; exec $term -e fish -c "buku-fzf fq"
bindsym Mod4+g workspace $ws3; layout tabbed; exec gimp
set $ws4 "4 "
workspace $ws4 output $secondary
bindsym $mod+F4 workspace $ws4; exec $term
set $ws5 "5 "
workspace $ws5 output $secondary
# 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; layout tabbed; exec gimp
# bindsym Mod4+g workspace $ws5; exec mgba-qt
bindsym Mod4+i workspace $ws5; exec idea
bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest
bindsym Mod4+t workspace $ws5; exec thunderbird
# bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest
bindsym Mod4+$mod+t workspace $ws5; exec thunderbird
# bindsym Mod4+$mod+w workspace $ws5; exec $term -e twitchy
bindsym Mod4+w workspace $ws5; exec $term -e twitchy
bindsym Mod4+5 workspace $ws5; exec godot
bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e
# for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0
@@ -331,15 +361,21 @@ for_window [class="ada-mario"] move absolute position 640 0
set $ws6 "6 "
workspace $ws6 output $secondary
assign [class="Slack"] $ws6
# bindsym Mod4+$mod+d workspace $ws6; exec discord
# bindsym Mod4+d workspace $ws6; exec riot-desktop
bindsym Mod4+d workspace $ws6; exec firefox -new-window https://riot.im/app
bindsym Mod4+$mod+d workspace $ws6; exec discord
# bindsym Mod4+d workspace $ws6; exec discord
bindsym Mod4+d workspace $ws6; exec riot-desktop
# bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app/#/home
# bindsym Mod4+$mod+d workspace $ws6; exec riot-desktop
# bindsym Mod4+d workspace $ws6; exec firefox --new-window https://discordapp.com/channels/430798446723727367/443950744996020228
# bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app
bindsym Mod4+k workspace $ws6; exec slack
set $ws7 "7 "
workspace $ws7 output $secondary
# bindsym $mod+F7 workspace $ws7; exec $term
bindsym $mod+F7 workspace $ws7; exec $term -e mosh kevin@165.22.239.234 tmux a
bindsym $mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a
bindsym Mod4+a workspace $ws7; exec android-file-transfer
# bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1"
set $ws8 "8 "
@@ -362,7 +398,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
@@ -372,7 +408,7 @@ set $ws11 "11 "
workspace $ws11 output $secondary
bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
# bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m
bindsym Mod4+a workspace $ws11; exec antimicro
# bindsym Mod4+a workspace $ws11; exec antimicro
set $ws12 "12 "
bindsym $mod+F12 workspace $ws12; exec $term
@@ -433,7 +469,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
@@ -474,6 +510,9 @@ bar {
i3bar_command i3bar -t
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
font pango:$sb_font 17
{{ else if eq .linux_os "fedora" }}
# font pango:$sb_font 23
font pango:$sb_font 25
{{ else }}
# font pango:$sb_font 17
font pango:$sb_font 16

View File

@@ -42,7 +42,7 @@ DATEFMT=+%H:%M.%a-%m-%d
DATEFMT=+%H:%M
{{ end }}
# SHORTFMT=+%H:%M:%S
# SHORTFMT=+%H:%M.%a-%m-%d
SHORTFMT=+%H:%M.%a-%m-%d
HEIGHT=180
WIDTH=220

View File

@@ -15,12 +15,12 @@ color=#cbe4ff
# volume/spotify [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
[volume]
interval=once
signal=1
interval=60
{{ if eq .chezmoi.fullHostname "nzxt" }}
[spotify]
label=
LONG_NAME=
@@ -32,7 +32,7 @@ interval=5
# laptop [[[ #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
[battery]
label=⚡
interval=30
@@ -54,12 +54,8 @@ interval=5
[calendar]
interval=30
label=
{{ if eq .chezmoi.fullHostname "nzxt" }}
DATEFMT=+%H:%M
{{ else }}
DATEFMT=+%H:%M.%a-%m-%d
{{ end }}
# SHORTFMT=+%H:%M:%S
# DATEFMT=+%H:%M.%a-%m-%d
HEIGHT=180
WIDTH=220
@@ -88,7 +84,6 @@ interval=5
label=
interval=5
{{ if eq .chezmoi.fullHostname "nzxt" }}
[memory]
label=
# color=#3da061
@@ -98,6 +93,7 @@ interval=5
# name [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
[name]
label=
interval=30

View File

@@ -5,7 +5,7 @@ round()
echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc))
};
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.cache/wal/colors.sh"
cur_bl=$(xbacklight -get)
# echo "$(round "$cur_bl" 0)%"
printf "$(round "$cur_bl" 0)\n\n%s\n" "$color7"
printf " $(round "$cur_bl" 0)\n\n%s\n" "$color7"

View File

@@ -37,7 +37,7 @@ case "$BLOCK_BUTTON" in
> /dev/null"
# --close-on-unfocus \
esac
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.cache/wal/colors.sh"
echo "$LABEL$(date "$DATEFMT")"
echo "$LABEL$(date "$SHORTFMT")"
echo "$color7"

View File

@@ -1,8 +1,7 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.cache/wal/colors.sh"
idle="$(mpstat 1 1 -P ALL | sed -n -e '4{p;q}' | awk '{print $NF}')"
used=$(echo 100 - "$idle" | bc)
used_rounded=$(printf %.0f "$used")
printf "%s%%\n\n%s\n" "$used_rounded" "$color7"
printf " %s%%\n\n%s\n" "$used_rounded" "$color7"

View File

@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
TYPE="${BLOCK_INSTANCE:-mem}"
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.cache/wal/colors.sh"
awk -v type=$TYPE '
/^MemTotal:/ {

View File

@@ -1,6 +1,5 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
printf "$(date '+%H:%M.%a-%m-%d')\n\n%s\n" "$color7"
# echo "<span foreground=\"%s\">$(date '+%H:%M.%a-%m-%d')%s</span>" "$color2"
# printf "%s" "$color2"

View File

@@ -17,7 +17,7 @@ AUDIO_LOW_SYMBOL=${AUDIO_LOW_SYMBOL:-''}
AUDIO_MUTED_SYMBOL=${AUDIO_MUTED_SYMBOL:-''}
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.cache/wal/colors.sh"
# DEFAULT_COLOR=${DEFAULT_COLOR:-"#ffffff"}
DEFAULT_COLOR="$color7"
MUTED_COLOR=${MUTED_COLOR:-"#a0a0a0"}

View File

@@ -29,7 +29,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
#------------------------------------------------------------------------
QUALITY=$(sudo grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
# echo $QUALITY
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
@@ -39,7 +39,7 @@ W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
echo $QUALITY% # full text
echo $QUALITY% # short text
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.cache/wal/colors.sh"
# color
if [[ $QUALITY -lt 50 ]]; then
echo "#FF0000"

View File

@@ -0,0 +1,13 @@
include ~/.cache/wal/colors-kitty.conf
background_opacity .6
/* background_opacity .7 */
clipboard_control write-clipboard write-primary
enable_audio_bell no
# font
cursor_blink_interval 0
# font_size 12.5
# font_size 14
font_size 14.5
map ctrl+alt+up change_font_size all +1.0
map ctrl+alt+down change_font_size all -1.0

View File

@@ -1,13 +1,14 @@
# volume
WHEEL_UP add volume 1
WHEEL_DOWN add volume -1
WHEEL_UP add volume 5
WHEEL_DOWN add volume -5
v cycle mute
# speed
r set speed 1.0
g set speed 1.6
h set speed 2.4
s add speed -.2
d add speed .2
a add speed -.2
s add speed .2
# seek
Shift+RIGHT seek 1

View File

@@ -20,17 +20,17 @@ print_info() {
info "Shell" shell
info "Packages" packages
info "WM" wm
info "WM Theme" wm_theme
info "WM Theme" wm_theme
# info "Font" font
info "Theme" theme
info "Icons" icons
# info "Theme" theme
# info "Icons" icons
info "CPU" cpu
info "CPU Usage" cpu_usage
info "GPU" gpu
info "GPU Driver" gpu_driver # Linux only
# info "GPU" gpu
# info "GPU Driver" gpu_driver # Linux only
info "Memory" memory
info "Disk" disk
info "Resolution" resolution
# info "Resolution" resolution
# }}} enabled #
@@ -337,7 +337,9 @@ 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/sdc2' )
# disk_show=('/dev/sda2' )
disk_show=('/' '/home' )
# Disk subtitle.
# What to append to the Disk subtitle.

View File

@@ -665,9 +665,10 @@ set preview_images true
# * urxvt-full:
# The same as urxvt but utilizing not only the preview pane but the
# whole terminal window.
set preview_images_method w3m
# set preview_images_method w3m
# set preview_images_method ueberzug
# set preview_images_method urxvt
set preview_images_method kitty
# set preview_images_method urxvt-full
# ]]] image preview #
@@ -680,7 +681,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

View File

@@ -1,4 +1,4 @@
set recolor true
# set recolor true
# black
set recolor-darkcolor "#ffffff"
set recolor-lightcolor "#000000"

View File

@@ -1,7 +1,7 @@
[user]
email = kevin.mok@live.ca
email = me@kevin-mok.com
name = Kevin Mok
signingkey = AEA75288DC135CF5
signingkey = 6E920656BBAD3E6C
[color]
ui = auto
[core]

72
dot_taskopenrc Normal file
View File

@@ -0,0 +1,72 @@
# BROWSER='xdg-open $FILE &>/dev/null'
BROWSER='firefox'
EDITOR='nvim'
#FILE_CMD='xdg-open'
TASKBIN='task'
# If you sync tasks NOTES_FOLDER should be a location that syncs and is available to
# other computers, i.e. /users/dropbox/tasknotes
# NOTES_FOLDER to store notes in, must already exist!
NOTES_FOLDER="$HOME/.task/notes/"
# Preferred extension for tasknotes
NOTES_EXT=".md"
# Path to notes file. UUID will be replaced with the actual uuid of
# the task. If NOTES_CMD
# Default is: ${NOTES_FOLDER}UUID${NOTES_EXT}
#NOTES_FILE="$HOME/tasknotes/UUID.txt"
# Command that opens notes. UUID will be replaced with the actual uuid of
# the task.
# Default is: $EDITOR $NOTES_FILE
#NOTES_CMD="vim "$HOME/tasknotes/$UUID.txt""
# Specify the default sorting.
# Default is taskwarrior's default sorting, i.e. sorting by task IDs.
#DEFAULT_SORT="urgency-,label,annot"
# Apply a default taskwarrior filter in order to exclude certain tasks.
# Default is: status.is:pending
#DEFAULT_FILTER=
# Default command for '-i'
# Default is: ls -la
#DEFAULT-i="ls -la"
# Add some paths to the taskopen's PATH variable
#PATH_EXT=/path/to/taskopen/scripts
PATH_EXT=/usr/share/taskopen/scripts
# Regular expression that referes to the NOTES_FILE.
# Default is: Notes
#NOTES_REGEX="Notes"
# Regular expression that identifies annotations openable by BROWSER.
# Default is: www|http
#BROWSER_REGEX="www|http"
# Regular expression that identifies file paths in annotations. Will be opened by xdg-open.
# Default is: \.|\/|~
#FILE_REGEX="\.|\/|~"
# Regular expression that identifies a text annotation. Automatically triggers raw edit mode like '-r'.
#TEXT_REGEX=".*"
# Custom regular expression that specifies annotations passed to CUSTOM1_CMD, e.g:
#CUSTOM1_REGEX="Message-[Ii][Dd]:|message:"
#CUSTOM1_CMD="muttjumpwrapper"
# Custom regular expression that specifies annotations passed to CUSTOM2_CMD.
#CUSTOM2_REGEX=""
#CUSTOM2_CMD=""
# Execute an arbitrary command if there is no annotation available. The corresponding taskwarrior IDs will
# be passed as arguments, e.g. "addnote 21 42"
#NO_ANNOTATION_HOOK=addnote
# Make additional taskwarrior attributes available as sort keys and environment variables.
# E.g. TASK_ATTRIBUTES="project,tags" allows to sort by "task_project" or "task_tags" and to use
# "$TASK_PROJECT" or "$TASK_TAGS" within your (custom) commands.
#TASK_ATTRIBUTES=""

80
dot_taskrc Normal file
View File

@@ -0,0 +1,80 @@
# info {{{ #
# [Created by task 2.5.1 9/3/2019 01:25:18]
# Taskwarrior program configuration file.
# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color',
# 'man task-sync' or 'man taskrc'
# Here is an example of entries that use the default, override and blank values
# variable=foo -- By specifying a value, this overrides the default
# variable= -- By specifying no value, this means no default
# #variable=foo -- By commenting out the line, or deleting it, this uses the default
# Use the command 'task show' to see all defaults and overrides
# }}} info #
data.location=~/.task
# rc.debug=1
# Color theme (uncomment one to use){{{
#include /usr/share/doc/task/rc/light-16.theme
#include /usr/share/doc/task/rc/light-256.theme
include /usr/share/doc/task/rc/dark-16.theme
# include /usr/share/doc/task/rc/dark-256.theme
#include /usr/share/doc/task/rc/dark-red-256.theme
#include /usr/share/doc/task/rc/dark-green-256.theme
#include /usr/share/doc/task/rc/dark-blue-256.theme
#include /usr/share/doc/task/rc/dark-violets-256.theme
#include /usr/share/doc/task/rc/dark-yellow-green.theme
#include /usr/share/doc/task/rc/dark-gray-256.theme
#include /usr/share/doc/task/rc/dark-gray-blue-256.theme
#include /usr/share/doc/task/rc/solarized-dark-256.theme
#include /usr/share/doc/task/rc/solarized-light-256.theme
#include /usr/share/doc/task/rc/no-color.theme
# color.blocking=color1 on color15
# }}}
# server {{{ #
taskd.certificate=\/home\/kevin\/.task\/do.cert.pem
taskd.key=\/home\/kevin\/.task\/do.key.pem
taskd.ca=\/home\/kevin\/.task\/ca.cert.pem
taskd.server=taskd.khkm.tk:53589
taskd.credentials=Hevin\/Kevin\/eb6225dc-80fb-4721-8b03-9114c6c4423d
# }}} server #
# urgency {{{ #
urgency.due.coefficient=18
urgency.user.project.codm.coefficient=2
urgency.user.project.crim.coefficient=5
urgency.user.project.mny.coefficient=7
urgency.user.project.ms.coefficient=3
urgency.user.project.pey.coefficient=7
urgency.user.project.sch.coefficient=10
urgency.uda.priority.H.coefficient=10
urgency.uda.priority.L.coefficient=-7
urgency.uda.priority..coefficient=1
urgency.user.tag.nx.coefficient=15
# }}} urgency #
# context {{{ #
# context.home=project.not:ieas project.not:out project.not:sch tag.not:amn
context.home=project.not:ieas project.not:out
context.ieas=project:ieas
context.out=project:out
context.sch=project:sch
context=home
# context=out
# context=sch
# }}} context #
report.ready.sort=urgency-

View File

@@ -31,12 +31,12 @@ bind-key -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
bind-key -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
bind-key -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
bind-key -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
bind-key -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l"
# bind-key -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l"
bind-key -T copy-mode-vi M-h select-pane -L
bind-key -T copy-mode-vi M-j select-pane -D
bind-key -T copy-mode-vi M-k select-pane -U
bind-key -T copy-mode-vi M-l select-pane -R
bind-key -T copy-mode-vi M-\ select-pane -l
# bind-key -T copy-mode-vi M-\ select-pane -l
bind-key -n M-Enter split-window -h
# bind-key -n M-v split-window -h
@@ -57,8 +57,8 @@ bind-key -n M-a command-prompt "rename-window '%%'"
bind-key -n M-p previous-window
bind-key -n M-n next-window
bind-key -n C-Left swap-window -t -1
bind-key -n C-Right swap-window -t +1
bind-key -n C-Left swap-window -t -1\; previous-window
bind-key -n C-Right swap-window -t +1\; next-window
# }}} windows #

View File

@@ -14,7 +14,7 @@ set expandtab
" set foldmethod=indent
set foldmethod=marker
set hlsearch
set ignorecase
" set ignorecase
set linebreak
set linespace=5
set mouse=a
@@ -28,9 +28,9 @@ set tabstop=4
" set termguicolors
" set timeoutlen=350
set timeoutlen=200
" set tw=80
" set tw=75
set tw=70
" set tw=70
set tw=60
set undodir=~/.vim/undo
set undofile
" set updatetime=1000
@@ -57,21 +57,27 @@ autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif
" commands for file types [[[ "
autocmd BufNewFile,BufRead .* set syntax=sh
autocmd FileType *css,gitcommit,htmldjango,html,javascript,json,lisp,markdown,tex,text,yaml set tabstop=2 shiftwidth=2
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
autocmd FileType *css,gitcommit,haskell,htmldjango,html,javascript,json,lisp,markdown,
\racket,tex,text,yaml set tabstop=2 shiftwidth=2
" autocmd BufNewFile,BufRead *.md set filetype=markdown
" autocmd Filetype markdown set textwidth=0
" autocmd Filetype html set foldmarker=0
autocmd BufNewFile,BufRead *.gd set expandtab!
autocmd Filetype go set expandtab! sw=4
" autocmd Filetype markdown set commentstring=<!---\ %s\ -->
autocmd FileType html,javascript,python,lua set fdm=indent
autocmd Filetype Jenkinsfile,taskdata set tw=0
autocmd Filetype markdown let g:AutoPairs = {'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''", "*":"*"}
" autocmd Filetype markdown map <F8> :LivedownToggle<CR>
autocmd Filetype markdown map <F8> :InstantMarkdownPreview<CR>
autocmd Filetype markdown map <F9> :InstantMarkdownStop<CR>:InstantMarkdownPreview<CR>
autocmd Filetype markdown nnoremap <Tab> <Esc>>>A
autocmd Filetype markdown inoremap <S-Tab> <Esc><<A
autocmd Filetype markdown inoremap < <Esc><<A
autocmd Filetype markdown inoremap << <
autocmd Filetype markdown inoremap > <Esc>>>A
autocmd Filetype markdown inoremap >> >
" autocmd Filetype markdown set commentstring=<!---\ %s\ -->
" format options [[[ "
" a = auto-format paragraphs
@@ -83,12 +89,12 @@ autocmd Filetype markdown inoremap >> >
" v = break lines in insert
" w = whitespace continues paragraph
" ]]] format options "
" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw
autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw
" autocmd FileType tex,text set spell spelllang=en_us formatoptions=acjMqtvw
autocmd FileType python,lua set fdm=indent
" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw
autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw
autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR>
autocmd Filetype json set foldmethod=marker
autocmd Filetype racket set commentstring=;%s;
autocmd Filetype racket let g:AutoPairs = {'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''"}
autocmd FileType sh map <F8> :!clear && shellcheck %<CR>
autocmd FileType tex set updatetime=1000 timeoutlen=300
autocmd FileType tex map <F8> :VimtexCompile<CR>
@@ -165,11 +171,15 @@ Plug 'lervag/vimtex'
" au BufWritePost *.tex silent call Tex_RunLaTeX()
au BufWritePost *.tex silent !pkill -USR1 xdvi.bin
let g:Tex_MultipleCompileFormats = 'dvi,pdf'
let g:vimtex_view_general_viewer = 'zathura'
let g:vimtex_view_general_viewer = 'evince'
let g:vimtex_quickfix_latexlog = {
\ 'overfull' : 0,
\ 'underfull' : 0,
\ 'global' : 0,
\ 'packages' : {
\ 'biblatex' : 0,
\ 'gensymb' : 0,
\ },
\ 'references' : 0,
\ 'unused' : 0,
\}
@@ -254,7 +264,6 @@ Plug 'jiangmiao/auto-pairs'
Plug 'henrik/vim-indexed-search'
Plug 'PotatoesMaster/i3-vim-syntax'
" vim file explorer
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'terryma/vim-multiple-cursors'
" let g:multi_cursor_select_all_word_key='<C-a>'
let g:multi_cursor_exit_from_visual_mode=0
@@ -272,7 +281,7 @@ Plug 'djoshea/vim-autoread'
" Plug 'trapd00r/vim-syntax-vidir-ls'
Plug 'calviken/vim-gdscript3'
" display hex colors in Vim
Plug 'RRethy/vim-hexokinase'
" Plug 'RRethy/vim-hexokinase'
Plug 'junegunn/goyo.vim'
" prevent commands being executed through modelines "
Plug 'ciaranm/securemodelines/'
@@ -285,11 +294,11 @@ Plug 'kana/vim-textobj-user'
Plug 'rbonvall/vim-textobj-latex'
" swap words
Plug 'tommcdo/vim-exchange'
Plug 'scrooloose/nerdtree'
let NERDTreeQuitOnOpen=1
let NERDTreeShowHidden=1
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" Plug 'scrooloose/nerdtree'
" let NERDTreeQuitOnOpen=1
" let NERDTreeShowHidden=1
" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Plug 'junegunn/fzf.vim'
Plug 'christoomey/vim-tmux-navigator'
" mappings [[[ "
@@ -309,6 +318,18 @@ Plug 'christoomey/vim-tmux-navigator'
" Plug 'inkarkat/vim-mark'
" Plug 'jceb/vim-orgmode'
" let g:org_todo_keywords=['TODO', 'STARTED', '|', 'DONE']
Plug 'junegunn/vim-easy-align'
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
Plug 'wlangstroth/vim-racket'
Plug 'neovimhaskell/haskell-vim'
Plug 'masukomi/vim-markdown-folding'
autocmd FileType markdown set foldexpr=NestedMarkdownFolds()
Plug 'cespare/vim-toml'
Plug 'dpelle/vim-LanguageTool'
Plug 'martinda/Jenkinsfile-vim-syntax'
" ]]] vim-plug "
" Mappings [[[ "
@@ -380,7 +401,7 @@ nnoremap <leader>ftd /TODO<CR>
nnoremap <leader>g :YcmCompleter GoTo<CR>
" vimdiff split
nnoremap <leader>gd :Gvdiff
nnoremap <leader>gdh :Gvdiff HEAD~
nnoremap <leader>gdh :Gvdiff HEAD^
nnoremap <leader>gdm :Gvdiff master<CR>
" toggle search highlighting
nnoremap <leader>h :set hlsearch! hlsearch?<CR>
@@ -401,6 +422,8 @@ nnoremap <leader>ll Vjgq
nnoremap <leader>m :vert Man
" apply normal command to selection
vnoremap <leader>n q:anorm
" turn off autoformat"
nnoremap <leader>na :set spell spelllang=en_us formatoptions=cjMqtvw<CR>
nnoremap <leader>nt :NERDTree<CR>
" check if in neovim
nnoremap <leader>nv :echo has('nvim')<CR>
@@ -419,17 +442,19 @@ nnoremap <leader>plu :PlugUpdate<CR>
" don't break lines
nnoremap <leader>py :set tw=0<CR>
" replace in next x lines
nnoremap <leader>r q:i.,.+s///g<ESC>Fsi
" nnoremap <leader>r q:i.,.+s///g<ESC>Fsi
" replace in line
nnoremap <leader>rl q:i.s///g<left><left><left>
nnoremap <leader>r q:i.s///g<left><left><left>
" replace in visual selection
" remove italics tags
nnoremap <leader>rmi :%s/<\/\?i>//g<CR>
" reload vim config
nnoremap <leader>rv :source $MYVIMRC<CR>
vnoremap <leader>r q:is///g<ESC>3ha
" replace in entire file
nnoremap <leader>R q:i%s///g<ESC>2F/i
" nnoremap <leader>R q:i%s///g<ESC>2F/i
nnoremap <leader>ra q:i%s///g<ESC>2F/i
" remove italics tags
nnoremap <leader>rmi :%s/<\/\?i>//g<CR>
nnoremap <leader>rs :res
" reload vim config
nnoremap <leader>rv :source $MYVIMRC<CR>
vnoremap <leader>s :sort<CR>
nnoremap <leader>sc :set spell spelllang=en_us<CR>
" run current file in shell
@@ -445,6 +470,10 @@ nnoremap <leader>sys :set syn=sh<CR>
vnoremap <leader>t :!tac<CR>
" capitalize letter
nnoremap <leader>u vU
" comment visual block
" nnoremap <leader>vcc V<leader>cc
" uncomment visual block
" nnoremap <leader>vcu V<leader>cu
" horizontal split "
nnoremap <leader>vs :vs
" open vimrc in vertical split
@@ -545,12 +574,16 @@ autocmd Filetype c inoremap <localleader>uc unsigned char
autocmd BufNewFile,BufRead *.h nnoremap <localleader>x 0iextern <Esc>f{hc$;<Esc>
autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap <localleader>d Gy3kGp5e<C-V>3j<C-a>$rnj.j.j$.
autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap <localleader>n $rn
autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap <localleader>y $ry
autocmd Filetype fish inoremap <localleader>1 $argv[1]
autocmd Filetype fish inoremap <localleader>2 $argv[2]
autocmd Filetype javascript inoremap <localleader>x process.exit()
autocmd Filetype markdown inoremap <localleader>cb - [ ]
autocmd Filetype markdown inoremap <localleader>c - [ ]
autocmd Filetype markdown nnoremap <localleader>x 0f[lrx
" nnoremap <localleader>x 0f[lrx

View File

@@ -1,12 +1,14 @@
xrandr --setprovideroutputsource modesetting NVIDIA-0
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
# [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
[[ -f ~/.Xresources ]] && xrdb ~/.Xresources
# xrandr --auto
{{ if .ext_kb }}
xmodmap ~/.Xmodmap
{{ else }}
xmodmap ~/.Xmodmap-laptop
{{ end }}
redshift -O 2000
# redshift -O 2000
redshift -O 3000
xset r rate $XSET_DELAY $XSET_RATE
# exec /home/kevin/Downloads/dwm/reload-dwm.sh

View File

@@ -1,7 +1,7 @@
appearance.calendarview=monthly
appearance.compactpanels=yes
appearance.defaultpanel=calendar
appearance.layout=1
appearance.layout=3
appearance.headerline=yes
appearance.eventseparator=no
appearance.dayseparator=no
@@ -10,7 +10,7 @@ appearance.notifybar=yes
appearance.sidebarwidth=0
appearance.theme=red on default
appearance.todoview=hide-completed
appearance.headingpos=right-justified
appearance.headingpos=left-justified
daemon.enable=no
daemon.log=no
format.inputdate=1

View File

@@ -25,7 +25,7 @@ generic-redraw ^R
generic-add-appt ^A
generic-add-todo ^T
generic-prev-day T ^H
generic-next-day t ^L
generic-next-day ^L
generic-prev-week W ^K
generic-next-week w
generic-prev-month M
@@ -34,7 +34,7 @@ generic-prev-year Y
generic-next-year y
generic-scroll-down ^N
generic-scroll-up ^P
generic-goto-today ^G
generic-goto-today ^G t
generic-command :
move-right l L RGT
move-left h H LFT

View File

@@ -23,9 +23,9 @@ case $2 in
sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" --exclude=/home /
;;
full )
sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full"
;;
# full )
# sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full"
# ;;
home )
sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" /home "$backup_dest/full"
esac

View File

@@ -1,8 +1,13 @@
#!/bin/bash
#!/bin/dash
# printf 'twem.tk/.png' | xclip -selection clipboard
# for i in {1..4} ; do
# xdotool key Left
# done
sleep .3
xdotool type 'twem.tk/.png'
for i in {1..4} ; do
xdotool type 'https://twem.tk/.png'
i=0
while [ "$i" -ne 4 ]
do
xdotool key Left
i=$((i + 1))
done

View File

@@ -0,0 +1,8 @@
#!/usr/bin/fish
set TEMP_CSV /tmp/twitchy-fortnite.csv
set HEADER "Game,Channel,Viewers,Uptime,Title"
echo $HEADER > $TEMP_CSV
twitchy --non-interactive >> $TEMP_CSV
xsv search -is1 $argv[1] $TEMP_CSV | xsv sort -NRs3 | xsv table

View File

@@ -0,0 +1,11 @@
#!/bin/bash
DELAY=200
RATE=90
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
xmodmap ~/.Xmodmap-laptop &> /dev/null
{{ else }}
xmodmap ~/.Xmodmap &> /dev/null
{{ end }}
xset r rate $DELAY $RATE &> /dev/null

View File

@@ -1,4 +1,5 @@
/dev/*
/home/kevin/.cache/spotify
/lost+found
/media/*
/mnt/*

View File

@@ -48,6 +48,8 @@ doxygen
dragon-drag-and-drop-git
dunst
e2fsprogs
ecryptfs-simple
ecryptfs-utils
electrum
emacs
encfs
@@ -75,11 +77,13 @@ gimp
git
glibc
godot-bin
gotop-bin
gradle
grep
grub
gzip
habitctl-git
handbrake
hdf5
heroku-cli
hexyl
@@ -142,6 +146,7 @@ neovim
nerd-fonts-dejavu-complete
nerd-fonts-hack
netctl
nmap
nnn
noto-fonts
ntfs-3g
@@ -252,6 +257,10 @@ sysstat
systemd-numlockontty
systemd-sysvcompat
tar
task
taskopen
tasksh
tcpdump
termdown
texinfo
texlive-core
@@ -294,6 +303,7 @@ tidy
time
tmux
tor
traceroute
transmission-cli
transmission-gtk
trizen

View File

@@ -10,9 +10,11 @@ cliqz-bin
compton-tryone-git
curseradio-git
dragon-drag-and-drop-git
ecryptfs-simple
ffcast
flashplugin-focusfix
godot-bin
gotop-bin
habitctl-git
heroku-cli
htop-vim-git
@@ -46,6 +48,8 @@ spotify
spotify-now-git
steamos-xpad-dkms
systemd-numlockontty
taskopen
tasksh
texlive-local-adjustbox
texlive-local-algorithmicx
texlive-local-algorithms

View File

@@ -36,6 +36,7 @@ dmenu
doxygen
dunst
e2fsprogs
ecryptfs-utils
electrum
emacs
encfs
@@ -64,6 +65,7 @@ gradle
grep
grub
gzip
handbrake
hdf5
hexyl
highlight
@@ -109,6 +111,7 @@ neofetch
neomutt
neovim
netctl
nmap
nnn
noto-fonts
ntfs-3g
@@ -204,6 +207,8 @@ sysfsutils
sysstat
systemd-sysvcompat
tar
task
tcpdump
termdown
texinfo
texlive-core
@@ -213,6 +218,7 @@ tidy
time
tmux
tor
traceroute
transmission-cli
transmission-gtk
ttf-dejavu