1 Commits

Author SHA1 Message Date
15fad27d78 Initial Red Hat laptop config commit 2020-10-27 16:50:13 -04:00
102 changed files with 905 additions and 7443 deletions

View File

@@ -13,6 +13,6 @@ txt/
.xinitrc .xinitrc
.Xresources .Xresources
{{ end }} {{ end }}
{{ if not (eq .chezmoi.hostname "x1-carbon") }} {{ if not (eq .chezmoi.fullHostname "x1-carbon") }}
.Xmodmap-laptop .Xmodmap-laptop
{{ end }} {{ end }}

File diff suppressed because it is too large Load Diff

View File

@@ -1,39 +1,30 @@
# vim: fdm=marker ft=sh.go-template syntax=sh # vim: fdm=marker ft=sh.go-template syntax=sh
# sys [[[ # # sys [[[ #
bg ~/Pictures/Backgrounds bg ~/Pictures/Backgrounds
cf ~/linux-config/dot_config cf ~/linux-config/dot_config
cfg ~/.config cfd ~/.config
cff ~/.config/fish cff ~/.config/fish
ch ~/Documents/chat
da /mnt/ipad/DCIM/101APPLE
dl ~/Downloads dl ~/Downloads
# dw ~/dwm # dw ~/dwm
D ~/Documents D ~/Documents
# k ~/ kh ~/
lc ~/linux-config lc ~/linux-config
lf /mnt/linux-files lf /mnt/linux-files
lf2 /mnt/linux-files-2 Lfp /mnt/linux-files/Pictures
lfp /mnt/linux-files/Pictures Lfv /mnt/linux-files/Videos
lfp2 /mnt/linux-files-2/Pictures
lfv /mnt/linux-files/Videos
lfv2 /mnt/linux-files-2/Videos
lfv2s /mnt/linux-files-2/Videos/shows
lfy /mnt/linux-files/Videos/yt
me /run/media/kevin me /run/media/kevin
o / o /
pd ~/.password-store pd ~/.password-store
pfp ~/Pictures/profile-pics
P ~/Pictures P ~/Pictures
ssu ~/Pictures/screenshots/desktop/unsorted
std ~/st std ~/st
# tm /tmp # tm /tmp
tm ~/tmp tm ~/tmp
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }} {{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
ng /etc/nginx/sites-available ng /etc/nginx/sites-available
# sv /etc/systemd/system sv /etc/systemd/system
{{ end }} {{ end }}
# ]]] sys # # ]]] sys #
@@ -41,73 +32,49 @@ ng /etc/nginx/sites-available
# cdn [[[ # # cdn [[[ #
ad ~/.task ad ~/.task
bm ~/Documents/bookmarks
ccd ~/.calcurse ccd ~/.calcurse
cms ~/Documents/codm/site
cn ~/coding cn ~/coding
# dn ~/Downloads
drk ~/coding/dark-sky drk ~/coding/dark-sky
ffx ~/linux-config/dot_config/fish/functions
hbd ~/.habitctl hbd ~/.habitctl
ib ~/linux-config/dot_config/i3blocks/scripts ib ~/linux-config/dot_config/i3blocks/scripts
mbd ~/coding/minikube
pig ~/coding/pigallery
mbk ~/coding/minikube-kompose
ms ~/coding/mf-site
msr ~/coding/mf-site/static/pdf
pr ~/coding/pull-requests
ra ~/linux-config/dot_config/ranger ra ~/linux-config/dot_config/ranger
rd ~/Documents/red-discord-bot rd ~/Documents/red-discord-bot
rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure
rdt ~/coding/discord-bots rdt ~/coding/discord-bots
rdp ~/coding/discord-bots/pinky/cogs/CogManager/cogs/adventure rdp ~/coding/discord-bots/pinky/cogs/CogManager/cogs/adventure
sr ~/linux-config/scripts sr ~/linux-config/scripts
vsnps ~/.vim/plugged/vim-snippets/UltiSnips snp ~/.vim/plugged/vim-snippets/UltiSnips
sw ~/.local/share/nvim/swap/ sw ~/.local/share/nvim/swap/
tfd ~/coding/terraform
ttd ~/.timetrace
ttdr ~/.timetrace/records
tx ~/linux-config/txt tx ~/linux-config/txt
wd ~/.config/watson wd ~/.config/watson
{{ if eq .chezmoi.hostname "nzxt" }} {{ if eq .chezmoi.fullHostname "nzxt" }}
b1 ~/coding/mf-site/themes/base16 b1 ~/coding/mf-site/themes/base16
2d ~/coding/godot-demos/2d-plat 2d ~/coding/godot-demos/2d-plat
ada ~/coding/ada-mario ada ~/coding/ada-mario
# ft ~/coding/face-tracker ft ~/coding/face-tracker
hv ~/Documents/hevin
hvs ~/Documents/hevin/shopping
j ~/Documents/journal j ~/Documents/journal
jt ~/Documents/journal/todo/24 lh ~/Documents/listening-history
# lh ~/Documents/listening-history
mmd ~/coding/move-mouse-with-head mmd ~/coding/move-mouse-with-head
mh ~/coding/mf-site/layouts
ms ~/coding/mf-site ms ~/coding/mf-site
msl ~/coding/mf-site/content/letter ml ~/coding/mf-site/content/letter
# mp ~/coding/mf-site/static/pdf # mp ~/coding/mf-site/static/pdf
pk ~/Documents/journal/packing-lists
pn ~/coding/red-discord-bot pn ~/coding/red-discord-bot
# rs ~/coding/rarity-surf/backend/rarity_check/project
rsf ~/coding/rarity-surf/frontend
rsc ~/coding/rarity-surf/backend/rarity_check/project/management/commands
# rsm ~/coding/rarity-surf/backend/rarity_check/project/migrations
sl ~/Documents/sleep
sv ~/coding/spotify-lib-vis/src sv ~/coding/spotify-lib-vis/src
svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts
swd ~/coding/swex swd ~/coding/swex
# tb ~/coding/trapbot/src/trapbot tb ~/coding/trapbot/src/trapbot
tb ~/coding/twitter-bot
ur ~/coding/uranium-godot ur ~/coding/uranium-godot
# wo ~/Documents/workout-logs wo ~/Documents/workout-logs
# gaming [[[ # # gaming [[[ #
te ~/Pictures/twitch-emotes te ~/Pictures/twitch-emotes
# mt ~/.minetest mt ~/.minetest
# mta ~/.minetest/clientmods/custom_aliases mta ~/.minetest/clientmods/custom_aliases
# mtc ~/.minetest/games/mineclone2/mods mtc ~/.minetest/games/mineclone2/mods
# mtm ~/.minetest/minetest mtm ~/.minetest/minetest
# pk ~/Downloads/gba/mgba/pokemon/emerald/1 # pk ~/Downloads/gba/mgba/pokemon/emerald/1
@@ -115,7 +82,7 @@ te ~/Pictures/twitch-emotes
{{ end }} {{ end }}
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
adb ~/coding/ada-mario/build adb ~/coding/ada-mario/build
adm ~/coding/ada-mario/media adm ~/coding/ada-mario/media
adp ~/coding/ada-mario-presentation adp ~/coding/ada-mario-presentation
@@ -123,173 +90,37 @@ ads ~/coding/ada-mario/scripts
adP ~/Pictures/ada-mario adP ~/Pictures/ada-mario
{{ end }} {{ end }}
# ]]] cdn # # ]]] cdn #
# gaming [[[ # # gaming [[[ #
lfo /mnt/linux-files/Videos/obs cm ~/Documents/codm
lfo2 /mnt/linux-files-2/Videos/obs
pxv /mnt/linux-files/Videos/pixel
tk ~/Documents/totk
tkp ~/Pictures/totk
# codm [[[ #
# cm ~/Documents/codm
cs ~/Documents/codm/site cs ~/Documents/codm/site
csi ~/Documents/codm/site/static/images csi ~/Documents/codm/site/static/images
Css ~/Pictures/screenshots/mobile/codm Css ~/Pictures/screenshots/mobile/codm
# ]]] codm #
# fortnite [[[ #
fn ~/Documents/fortnite fn ~/Documents/fortnite
fnc /mnt/linux-files/Videos/yt/fortnite/clips/4 fnc /mnt/linux-files/Videos/yt/fortnite/clips/4
fni /mnt/ipad/DCIM/100APPLE
fnm ~/Documents/fortnite/pics/maps fnm ~/Documents/fortnite/pics/maps
fnn ~/Documents/fortnite/notes fnn ~/Documents/fortnite/notes
fnp ~/Documents/fortnite/pics
fns ~/Documents/fortnite/stats/api fns ~/Documents/fortnite/stats/api
fnsp ~/Documents/fortnite/stats/pics
fnv /mnt/linux-files/Videos/personal-fortnite-games/review fnv /mnt/linux-files/Videos/personal-fortnite-games/review
fnv2 /mnt/linux-files-2/Videos/ipad/fortnite/name
tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader
# ]]] fortnite #
pgv /mnt/linux-files/Videos/pokemon-go
tr ~/.local/share/Terraria
dc ~/Documents/chat/discord
twt ~/Documents/twitter
sdv ~/Documents/stardew-valley-aha
wo ~/Documents/workout-logs/7
dap /mnt/linux-files-2/Pictures/ipad
dau /mnt/linux-files-2/Videos/ipad/unsorted
sdvm ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods/
sdvss ~/.local/share/StardewValley/Screenshots/
sdvsv ~/.config/StardewValley/Saves/Hevintales_355084144/
sdvsvg ~/Documents/stardew-valley-sdv-saves/hevintales
snp ~/Documents/marvel-snap
snpv /mnt/linux-files-2/Videos/ipad/marvel-snap
# ]]] gaming # # ]]] gaming #
# pey [[[ #
atx ~/Documents/ataraxy-venture
em ~/Documents/emails
li ~/Documents/linkedin
lim ~/Documents/linkedin/msgs
rh ~/Documents/red-hat
rhc ~/Documents/red-hat/chat
rhe ~/Documents/red-hat/emails
rhl ~/Documents/red-hat/learned
sa ~/coding/rhcsa-notes
wcl ~/.weechat/logs
ep ~/Documents/expenses
# kogito [[[ #
kg ~/coding/kogito
kap ~/coding/kogito/kogito-apps
kdo ~/coding/kogito/kie-docs
kdoa ~/coding/kogito/kie-docs/doc-content/kogito-docs/src/main/asciidoc
kex ~/coding/kogito/kogito-examples
keh ~/coding/kogito/kogito-examples/process-scripts-quarkus/target
kep ~/coding/kogito/kogito-examples/process-postgresql-persistence-quarkus
kfl ~/coding/kogito/kogito-apps
kh ~/coding/kogito/kogito-helm-charts
kho ~/coding/kogito/kogito-helm-chart-old
ki ~/coding/kogito/kogito-images
kj ~/coding/kogito/jenkins-test
kjb ~/coding/kogito/jenkins-test-bot
kjf ~/coding/kogito/jenkins-test/full
kl ~/coding/kogito/shared-libraries
# operator [[[ #
ko ~/go/src/github.com/kiegroup/kogito-operator
kor ~/go/src/github.com/kiegroup/rhpam-kogito-operator
# koc ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command
koc ~/coding/kogito/kogito-operator
kod ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command/deploy
koe ~/go/src/github.com/kiegroup/kogito-operator/examples
kore ~/go/src/github.com/kiegroup/rhpam-kogito-operator/example
kof ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command/flag
# kor ~/go/src/github.com/kiegroup/kogito-operator/pkg/controller/kogitoruntime
kou ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command/util
ko2 ~/coding/kogito/kogito-operator-2
# ]]] operator #
kob ~/coding/kogito-operator-onboarding
kot ~/coding/kogito/optaplanner
kp ~/coding/kogito/kogito-pipelines
kp2 ~/coding/kogito/kogito-pipelines-2
kpr ~/coding/pull-requests/red-hat
kprh ~/coding/pull-requests/red-hat/helm
kr ~/coding/kogito/kogito-runtimes
krj ~/coding/kogito/kogito-runtimes/jenkins-spock-tests
ky ~/coding/kogito/kogito-kmok-yamls
gos ~/go/src
# ]]] kogito #
vb ~/coding/VileBot/vilebot
vbs ~/coding/VileBot/vilebot/src/main/java/com/oldterns/vilebot
# dv ~/coding/devops-sre-knowledge
nxo ~/coding/kogito/nexus-operator
# ]]] pey #
# nft [[[ #
cvt ~/Pictures/profile-pics/conviction
# mb ~/coding/mint-bot
pdg ~/Pictures/profile-pics/pudgy-penguins/test
pfps ~/Pictures/profile-pics/sappy-seals
pfpk ~/Pictures/profile-pics/gm-cafe/keek
pfpr ~/Pictures/profile-pics/reddit-avatars
nft ~/Documents/nft
# ]]] nft #
# sch [[[ # # sch [[[ #
sc ~/school sc ~/school
lt ~/school/latex-notes lt ~/school/latex-notes
ltc ~/coding/leetcode
jf ~/school/job-fair
jh ~/school/job-hunt
jhi ~/school/job-hunt/interview-questions
# ]]] sch # # ]]] sch #
# personal [[[ # kg ~/coding/kogito
ke ~/coding/kogito/kogito-examples
lw ~/Documents/lawrence keqs ~/coding/kogito/kogito-examples/process-scripts-quarkus
keqe ~/coding/kogito/kogito-examples/process-quarkus-example
hih /mnt/linux-files-2/Videos/hot-in-herre # kg ~/coding/kogito/github-release-test
bb /mnt/linux-files-2/Pictures/bball # ko ~/coding/kogito/kogito-cloud-operator
dh ~/Pictures/drake-hoodie ko ~/go/src/github.com/kiegroup/kogito-cloud-operator
ets /mnt/linux-files-2/Videos/eras-taylor-swift-movie wcl ~/.weechat/logs
mj /mnt/linux-files-2/Pictures/midjourney/results
mt /mnt/linux-files-2/Pictures/mutant-tees
sm /mnt/linux-files-2/Videos/sam-smith/named
wg /mnt/linux-files-2/Pictures/weed-grow-23
sdc /run/media/kevin/6339-3234
# ]]] personal #

View File

@@ -3,16 +3,14 @@
# sys [[[ # # sys [[[ #
3 ~/linux-config/dot_config/i3/config.tmpl 3 ~/linux-config/dot_config/i3/config.tmpl
3b ~/linux-config/dot_config/i3blocks/i3blocks.conf.tmpl
a ~/linux-config/aliases/key_aliases.tmpl a ~/linux-config/aliases/key_aliases.tmpl
ak ~/linux-config/dot_ssh/authorized_keys-all ak ~/linux-config/dot_ssh/authorized_keys-all
d ~/linux-config/aliases/key_dirs.tmpl d ~/linux-config/aliases/key_dirs.tmpl
dw ~/dwm/config.def.h dw ~/dwm/config.def.h
f ~/linux-config/aliases/key_files.tmpl f ~/linux-config/aliases/key_files.tmpl
fh ~/.local/share/fish/fish_history fh ~/.local/share/fish/fish_history
hc ~/Documents/hevin/cleaning.md
n ~/linux-config/dot_vimrc.tmpl n ~/linux-config/dot_vimrc.tmpl
pkg ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt
r ~/linux-config/dot_config/ranger/rc.conf.tmpl r ~/linux-config/dot_config/ranger/rc.conf.tmpl
sr ~/linux-config/configs/ranger/shortcuts.conf sr ~/linux-config/configs/ranger/shortcuts.conf
ss ~/.shortcuts ss ~/.shortcuts
@@ -33,7 +31,6 @@ ng /etc/nginx/nginx.conf
# cdn [[[ # # cdn [[[ #
ap ~/.task/pending.data ap ~/.task/pending.data
aw ~/Documents/journal/todo/24/aws.md
at ~/.task/to-add.md at ~/.task/to-add.md
bid ~/Documents/journal/todo/blog.md bid ~/Documents/journal/todo/blog.md
cc ~/linux-config/private_dot_calcurse/conf cc ~/linux-config/private_dot_calcurse/conf
@@ -46,17 +43,15 @@ hh ~/.habitctl/habits
hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log
id ~/Documents/journal/todo/ideas.md id ~/Documents/journal/todo/ideas.md
ig ./.gitignore ig ./.gitignore
jt ~/Documents/journal/todo/24/4.md jn ~/Documents/journal/todo/2.md
k ~/linux-config/dot_config/kitty/kitty.conf jt ~/Documents/journal/todo/todo.md
lh ~/Documents/listening-history/polarbier.csv lh ~/Documents/listening-history/polarbier.csv
mc ~/coding/mf-site/assets/sass/main.scss mc ~/coding/mf-site/assets/sass/main.scss
mi ~/coding/mf-site/ideas.md mi ~/coding/mf-site/ideas.md
msr ~/coding/mf-site/content/resume/_index.md
ne ~/linux-config/configs/neofetch/config.conf ne ~/linux-config/configs/neofetch/config.conf
re README.md re README.md
rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/adventure.py rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/adventure.py
rdc ~/Documents/red-discord-bot/commands-freq.md rdc ~/Documents/red-discord-bot/commands-freq.md
sl ~/Documents/sleep/sleep.md
td todo.md td todo.md
tg ~/.config/watson/tags_cache tg ~/.config/watson/tags_cache
tt txt/todo.md tt txt/todo.md
@@ -65,65 +60,38 @@ tp /tmp/
tw ~/linux-config/dot_taskrc tw ~/linux-config/dot_taskrc
w ~/.config/watson/state.tmp w ~/.config/watson/state.tmp
wh ~/Documents/journal/todo/work-habit.md wh ~/Documents/journal/todo/work-habit.md
wt ~/.config/watson/state.tmp
# ]]] cdn # # ]]] cdn #
# sch [[[ # # sch [[[ #
4d ~/school/494/design/acanet-voting-design.md # 309 [[[ #
4dme ~/school/494/design/meetings/panos.md
4dmd ~/school/494/design/provotu/modify.md 0c ~/school/309-proj/sass/main.scss
pvc ~/coding/dao-voting/provotum-v2/contracts/contracts/FiniteField/Ballot.sos 0h ~/school/309-proj/public/js/helpers.js
0i ~/school/309-proj/public/index.html
0m ~/school/309-proj/public/js/main.js
0f ~/school/309-proj/public/js/food.js
0s ~/school/309-proj/server.js
0t ~/school/309-proj/public/js/stores.js
# ]]] 309 #
# 384
8a ~/school/384/a1/searchAgents.py
8s ~/school/384/a1/search.py
# ]]] sch # # ]]] sch #
# gaming [[[ # # gaming [[[ #
bn ~/Documents/discord-burners/burners.md
cmr ~/Documents/codm/discord-recruitment.md cmr ~/Documents/codm/discord-recruitment.md
cra ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/attribs.json 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 crm ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/monsters.json
fn ~/Documents/fortnite/notes/fortnite-notes.md fn ~/Documents/fortnite/notes/fortnite-notes.md
fb ~/Documents/fortnite/notes/building-drills.md
fw ~/Documents/fortnite/notes/warmup.md
fp ~/Documents/fortnite/notes/post.md
fv ~/Documents/fortnite/notes/vods.md fv ~/Documents/fortnite/notes/vods.md
mta ~/.minetest/clientmods/custom_aliases/init.lua mta ~/.minetest/clientmods/custom_aliases/init.lua
cmr ~/Documents/codm/discord-recruitment.md
nb ~/Documents/chat/discord/pistol.md
pk ~/Downloads/pokecord/pokecord2.md pk ~/Downloads/pokecord/pokecord2.md
sdv ~/Documents/stardew-valley-sdv/notes.md
snp ~/Documents/marvel-snap/strats.md
tc /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader/clips.txt tc /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader/clips.txt
tdb ~/Documents/journal/todo/b.md
# ]]] gaming # # ]]] gaming #
# pey [[[ #
dv ~/coding/devops-sre-knowledge/devops-sre-learned.md
j Jenkinsfile.
jd Jenkinsfile.deploy
klg ~/coding/kogito/shared-libraries/vars/githubscm.groovy
klm ~/coding/kogito/shared-libraries/vars/maven.groovy
kob ~/coding/kogito-operator-onboarding/README.md
kpr ~/coding/kogito/kogito-pipelines/Jenkinsfile.pr-bdd-tests
krt /home/kevin/coding/kogito/kogito-runtimes/jenkins-spock-tests/src/test/vars/JenkinsfilePromote.groovy
rd ~/Documents/red-hat/dates.md
rm ~/Documents/red-hat/meeting.md
rt ~/Documents/red-hat/todo.md
lip ~/Documents/linkedin/linkedin-profile.md
jhi ~/school/job-hunt/info.md
# ]]] pey #
ej ~/Documents/emojis/emojis.md
nf ~/Documents/twitter/nft-24.md
ra ~/Documents/chat/reddit/avatar.md
ds ~/Documents/nft/deep-sea-research.md
wd ~/Documents/journal/personal/weed.md
wo ~/Documents/workout-logs/7/running.md
str ~/Documents/workout-logs/stretching.md

View File

@@ -1,9 +1,7 @@
clear Lock clear Lock
keycode 9 = Caps_Lock keycode 22 = Caps_Lock
keycode 22 = BackSpace keycode 66 = BackSpace
keycode 66 = Escape keycode 78 = End
pointer = 1 2 3 6 7 4 5 10 11 12 8 9 pointer = 1 10 3 6 7 4 5 2 11 12 8 9
! side thumb button as middle click
! pointer = 1 10 3 6 7 4 5 2 11 12 8 9

View File

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

View File

@@ -1,9 +0,0 @@
clear Lock
keycode 115 = BackSpace
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

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

View File

@@ -1,12 +1,9 @@
/* dpi [[[ */ /* dpi [[[ */
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
! Xft.dpi: 230
Xft.dpi: 235
! Xft.dpi: 240 ! Xft.dpi: 240
Xft.dpi: 230
{{ else }} {{ else }}
! Xft.dpi: 90
! Xft.dpi: 100
Xft.dpi: 135 Xft.dpi: 135
! Xft.dpi: 170 ! Xft.dpi: 170
{{ end }} {{ end }}
@@ -21,25 +18,21 @@ Xft.rgba: rgb
/* font [[[ */ /* font [[[ */
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ 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=10 URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11.5
! URxvt*cursorBlink: 0 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12
URxvt*cursorBlink: False
{{ else }} {{ else }}
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=14 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=14
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12 URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
URxvt.font: xft:Hack Nerd Font Mono:size=11
{{ end }} {{ end }}
! URxvt.font: xft:Hack:size=18 ! URxvt.font: xft:Hack:size=18
/* resize [[[ */ /* resize [[[ */
! URxvt.resize-font.step: 4 URxvt.resize-font.step: 4
URxvt.resize-font.step: 2
URxvt.keysym.C-S-Down: resize-font:smaller URxvt.keysym.C-S-Down: resize-font:smaller
URxvt.keysym.C-S-Up: resize-font:bigger URxvt.keysym.C-S-Up: resize-font:bigger
URxvt.keysym.C-S-equal: resize-font:reset URxvt.keysym.C-S-equal: resize-font:reset
@@ -74,14 +67,9 @@ URxvt.scrollBar: false
/* Clickable URLs [[[ */ /* Clickable URLs [[[ */
URxvt.perl-ext-common: default,matcher,resize-font URxvt.perl-ext-common: default,matcher,resize-font
URxvt.url-launcher: /usr/bin/firefox URxvt.url-launcher: /usr/bin/xdg-open
! URxvt.url-launcher: firefox
URxvt.matcher.button: 1 URxvt.matcher.button: 1
/* ]]] Clickable URLs */ /* ]]] Clickable URLs */
Sxiv.background: #000000
Sxiv.foreground: #00C0FF
Sxiv.font: Hack-9
! vim: fdm=marker ft=xdefaults.go-template ! vim: fdm=marker ft=xdefaults.go-template

View File

@@ -204,4 +204,4 @@ fi
# Both PC/Laptop }}} # Both PC/Laptop }}}
[ -f ~/.fzf.bash ] && source ~/.fzf.bash [ -f ~/.fzf.bash ] && source ~/.fzf.bash
source /home/kevin/aliases/.key_aliases source ~/aliases/.key_aliases

View File

@@ -1,327 +0,0 @@
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "300x5-30+20"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = no
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
# to the font height and padding.
notification_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 2
# Padding between text and separator.
padding = 8
# Horizontal padding.
horizontal_padding = 8
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 3
# Defines color of the frame around the notification window.
frame_color = "#aaaaaa"
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort messages by urgency.
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# Transient notifications ignore this setting.
idle_threshold = 120
### Text ###
# font = Monospace 8
font = Hack Nerd Font Mono 8
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = yes
# When word_wrap is set to no, specify where to ellipsize long lines.
# Possible values are "start", "middle" and "end".
ellipsize = middle
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Merge multiple notifications with the same content
stack_duplicates = true
# Hide the count of merged notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Align icons left/right/off
icon_position = off
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32
# Paths to default icons.
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification.
close = ctrl+space
# Close all notifications.
close_all = ctrl+shift+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1". Make sure this key actually exists on your keyboard layout,
# e.g. check output of 'xmodmap -pke'
history = ctrl+grave
# Context menu.
context = ctrl+shift+period
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#222222"
foreground = "#888888"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
background = "#285577"
foreground = "#ffffff"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
# Messages can be matched by "appname", "summary", "body", "icon", "category",
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
# "background", "new_icon" and "format".
# Shell-like globbing will get expanded.
#
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format
# to "".
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
# vim: ft=cfg

File diff suppressed because it is too large Load Diff

View File

@@ -1,178 +0,0 @@
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# fish completion for minikube -*- shell-script -*-
function __minikube_debug
set file "$BASH_COMP_DEBUG_FILE"
if test -n "$file"
echo "$argv" >> $file
end
end
function __minikube_perform_completion
__minikube_debug "Starting __minikube_perform_completion with: $argv"
set args (string split -- " " "$argv")
set lastArg "$args[-1]"
__minikube_debug "args: $args"
__minikube_debug "last arg: $lastArg"
set emptyArg ""
if test -z "$lastArg"
__minikube_debug "Setting emptyArg"
set emptyArg \"\"
end
__minikube_debug "emptyArg: $emptyArg"
if not type -q "$args[1]"
# This can happen when "complete --do-complete minikube" is called when running this script.
__minikube_debug "Cannot find $args[1]. No completions."
return
end
set requestComp "$args[1] __complete $args[2..-1] $emptyArg"
__minikube_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")
__minikube_debug "Comps: $comps"
__minikube_debug "DirectiveLine: $directiveLine"
__minikube_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 __minikube_comp_results
# 2- Set the __minikube_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 __minikube_prepare_completions
# Start fresh
set --erase __minikube_comp_do_file_comp
set --erase __minikube_comp_results
# Check if the command-line is already provided. This is useful for testing.
if not set --query __minikube_comp_commandLine
# Use the -c flag to allow for completion in the middle of the line
set __minikube_comp_commandLine (commandline -c)
end
__minikube_debug "commandLine is: $__minikube_comp_commandLine"
set results (__minikube_perform_completion "$__minikube_comp_commandLine")
set --erase __minikube_comp_commandLine
__minikube_debug "Completion results: $results"
if test -z "$results"
__minikube_debug "No completion, probably due to a failure"
# Might as well do file completion, in case it helps
set --global __minikube_comp_do_file_comp 1
return 1
end
set directive (string sub --start 2 $results[-1])
set --global __minikube_comp_results $results[1..-2]
__minikube_debug "Completions are: $__minikube_comp_results"
__minikube_debug "Directive is: $directive"
set shellCompDirectiveError 1
set shellCompDirectiveNoSpace 2
set shellCompDirectiveNoFileComp 4
set shellCompDirectiveFilterFileExt 8
set shellCompDirectiveFilterDirs 16
if test -z "$directive"
set directive 0
end
set compErr (math (math --scale 0 $directive / $shellCompDirectiveError) % 2)
if test $compErr -eq 1
__minikube_debug "Received error directive: aborting."
# Might as well do file completion, in case it helps
set --global __minikube_comp_do_file_comp 1
return 1
end
set filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) % 2)
set dirfilter (math (math --scale 0 $directive / $shellCompDirectiveFilterDirs) % 2)
if test $filefilter -eq 1; or test $dirfilter -eq 1
__minikube_debug "File extension filtering or directory filtering not supported"
# Do full file completion instead
set --global __minikube_comp_do_file_comp 1
return 1
end
set nospace (math (math --scale 0 $directive / $shellCompDirectiveNoSpace) % 2)
set nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) % 2)
__minikube_debug "nospace: $nospace, nofiles: $nofiles"
# Important not to quote the variable for count to work
set numComps (count $__minikube_comp_results)
__minikube_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.
__minikube_debug "Adding second completion to perform nospace directive"
set --append __minikube_comp_results $__minikube_comp_results[1].
end
if test $numComps -eq 0; and test $nofiles -eq 0
__minikube_debug "Requesting file completion"
set --global __minikube_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 __minikube_comp_do_file_comp)
end
# Since Fish completions are only loaded once the user triggers them, we trigger them ourselves
# so we can properly delete any completions provided by another script.
# The space after the the program name is essential to trigger completion for the program
# and not completion of the program name itself.
complete --do-complete "minikube " > /dev/null 2>&1
# Using '> /dev/null 2>&1' since '&>' is not supported in older versions of fish.
# Remove any pre-existing completions for the program since we will be handling all of them.
complete -c minikube -e
# The order in which the below two lines are defined is very important so that __minikube_prepare_completions
# is called first. It is __minikube_prepare_completions that sets up the __minikube_comp_do_file_comp variable.
#
# This completion will be run second as complete commands are added FILO.
# It triggers file completion choices when __minikube_comp_do_file_comp is set.
complete -c minikube -n 'set --query __minikube_comp_do_file_comp'
# This completion will be run first as complete commands are added FILO.
# The call to __minikube_prepare_completions will setup both __minikube_comp_results and __minikube_comp_do_file_comp.
# It provides the program's completion choices.
complete -c minikube -n '__minikube_prepare_completions' -f -a '$__minikube_comp_results'

View File

@@ -1,51 +1,12 @@
# vim: fdm=marker ft=fish.go-template # vim: fdm=marker ft=fish.go-template
# aliases [[[ #
# personal [[[ #
# dirs [[[ #
abbr cvt "cd ~/Pictures/profile-pics/conviction"
abbr ets "cd /mnt/linux-files-2/Videos/eras-taylor-swift-movie"
abbr hv "cd /mnt/linux-files-2/Pictures/hevin"
abbr hvn "cd ~/coding/hevin-nft"
abbr lon "libreoffice ~/Documents/expenses/net-worth.ods &"
abbr lfs2 "cd /mnt/linux-files-2/Videos/shows"
abbr mj "cd /mnt/linux-files-2/Pictures/midjourney"
abbr pdg "cd ~/Pictures/profile-pics/pudgy-penguins/test"
abbr snp "cd /mnt/linux-files-2/Videos/ipad/marvel-snap"
abbr tr "cd ~/.local/share/Terraria"
abbr da "cd /mnt/ipad/DCIM/102APPLE"
# ]]] dirs #
abbr ncy "nvim ~/Documents/journal/hobbies/courtyard-drop.md"
abbr njt "nvim ~/Documents/journal/todo/24/2.md"
abbr rsn "rsync -e 'ssh -p 399' -r . 165.22.239.234:/home/kevin/hevin/art -acvv"
# ]]] personal #
# school [[[ #
abbr js "cd ~/Documents/job-search"
abbr ssad "ssh -i ~/coding/aws.pem admin@ec2-18-223-241-198.us-east-2.compute.amazonaws.com"
abbr ssa "ssh kevin@ec2-18-223-241-198.us-east-2.compute.amazonaws.com"
# ]]] school #
# abbr nej "nvim ~/Documents/emojis.md"
# ]]] aliases #
# login to X [[[ # # login to X [[[ #
{{ if eq .chezmoi.username "kevin" }} {{ if eq .chezmoi.username "kevin" }}
if status is-login if status is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1 if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty exec startx -- -keeptty
end end
end end
set -x GPG_TTY (tty) set -x GPG_TTY (tty)
{{ end }} {{ end }}
@@ -56,38 +17,31 @@ set -x GPG_TTY (tty)
set -U fish_greeting set -U fish_greeting
{{ if eq .chezmoi.hostname "nzxt" }} # spv[[[
{{ if eq .chezmoi.fullHostname "nzxt" }}
set -U spv_dir "/home/kevin/coding/spotify-lib-vis" set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
set -U mfs_dir "/home/kevin/coding/mf-site" set -U mfs_dir "/home/kevin/coding/mf-site"
source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender" abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"
{{ end }}#]]] {{ end }}#]]]
# system [[[ # system[[[
set -x HASTE_SERVER https://pste.gq set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
{{ if eq .chezmoi.hostname "nzxt" }}
# set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
{{ end }}
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x GOPATH ~/go set -x GOPATH ~/go
# set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin set -x HASTE_SERVER https://pste.gq
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-20.1.0
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
# Java [[[ #
set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-21.1.0
set -x GRAALVM_BIN $GRAALVM_HOME/bin set -x GRAALVM_BIN $GRAALVM_HOME/bin
set -x JAVA_HOME $GRAALVM_HOME
# set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk # set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk
# set -x JAVA_HOME /usr/lib/jvm/java-8-openjdk # for shared libs set -x JAVA_HOME $GRAALVM_HOME
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x PATH $JAVA_HOME/bin $PATH 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
# ]]] Java # set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
{{ if eq .chezmoi.fullHostname "nzxt" }}
# system ]]] set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
status --is-interactive; and source (pyenv init -|psub)
{{ end }}
#]]]
# space prompt[[[ # 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 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
@@ -105,40 +59,16 @@ set SPACEFISH_VI_MODE_SUFFIX ''
set -x PASSWORD_STORE_CLIP_TIME 120 set -x PASSWORD_STORE_CLIP_TIME 120
set -xU XSET_RATE 90 set -xU XSET_RATE 90
set -xU XSET_DELAY 200 set -xU XSET_DELAY 200
{{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }} {{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
xset r rate $XSET_DELAY $XSET_RATE xset r rate $XSET_DELAY $XSET_RATE
{{ end }}#]]] {{ end }}#]]]
# [[[ universal var's #
set -xU BROWSER "firefox"
# set -U BROWSER "chromium" # set -U BROWSER "chromium"
set -xU BROWSER "firefox"
set -xU FZF_DEFAULT_COMMAND "find ." set -xU FZF_DEFAULT_COMMAND "find ."
set -x LAPTOP_IP "192.168.0.19" set -xU KOGITO_SERVICE_URL "http://example-quarkus-3376.apps-crc.testing/"
set -x PHONE_IP "192.168.0.101"
set -x PIXEL_IP "192.168.0.18"
set -x WORK_LAPTOP_IP "kmok@192.168.0.11"
{{ if eq .chezmoi.hostname "nzxt" }}
# set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc
status --is-interactive; and source (pyenv init -|psub)
{{ end }}
set -xU MINIKUBE_IP "http://192.168.49.2"
set -xU LOCAL_KOGITO_SERVICE_PORT "32000"
# set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT"
set -x FLASK_DEBUG 1
set -x DB_NAME "covid_monitor"
set -x FULLNODE_API_INFO wss://api.chain.love
set -x IPAD_IMG 18
source /home/kevin/coding/aws.fish
# ]]] universal var's # # ]]] universal var's #
@@ -154,12 +84,12 @@ builtin cd $last_dir && ls > /dev/null
bind \ce edit_command_buffer bind \ce edit_command_buffer
bind \cr forward-word bind \cr forward-word
# chezmoi apply chezmoi apply
{{ if not (eq .linux_os "termux") }} {{ if not (eq .linux_os "termux") }}
~/scripts/sync-shortcuts ~/scripts/sync-shortcuts
{{ end }} {{ 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 "{{ .chezmoi.homedir }}/linux-config/dot_config/fish/functions"
# set -U fish_fxn_dir "~/.config/fish/functions" # set -U fish_fxn_dir "~/.config/fish/functions"
abbr ff "cd $fish_fxn_dir" abbr ff "cd $fish_fxn_dir"
for fxn in (find $fish_fxn_dir -name '*.fish') for fxn in (find $fish_fxn_dir -name '*.fish')
@@ -184,7 +114,7 @@ abbr xf "fish_config"
abbr ! "sudo !!" abbr ! "sudo !!"
# task [[[ # # task [[[ #
abbr aan "task-anno ''" abbr aan "task-anno"
abbr ae "task-edit" abbr ae "task-edit"
abbr adl "task-delete" abbr adl "task-delete"
abbr adn "task-done" abbr adn "task-done"
@@ -201,44 +131,36 @@ abbr aprh "task-mod-pri H"
abbr apj "task-mod-proj" abbr apj "task-mod-proj"
abbr asr "task-start" abbr asr "task-start"
abbr at "task-mod-tag" abbr at "task-mod-tag"
abbr atj "task-mod-tag jira"
abbr aw "task-wait" abbr aw "task-wait"
abbr ax "task-context" abbr ax "task-context"
# ]]] task # # ]]] task #
abbr ag "grep-aliases" abbr ag "grep-aliases"
abbr bk "buku-fzf" abbr b "buku-fzf"
abbr bkf "buku-fzf fq" abbr bf "buku-fzf fq"
abbr bq "benq-brightness" abbr bq "benq-brightness"
abbr bn "discord-burner"
abbr bun "backup nzxt"
abbr bupp "backup-phone-pics" abbr bupp "backup-phone-pics"
abbr ca "cad-to-us"
abbr cccs "sync-alt-cal class" abbr cccs "sync-alt-cal class"
abbr cl "clip" abbr cl "clip"
abbr cli "clip-ipad"
abbr cpc "copy cat" abbr cpc "copy cat"
abbr cpe "copy echo" abbr cpe "copy echo"
abbr cpp "copy echo (pwd)" abbr cpp "copy echo (pwd)"
abbr cff "create-fish-function" abbr cff "create-fish-function"
abbr ctr "systemctl-restart" abbr ctr "systemctl-restart"
abbr def "define" abbr def "define"
abbr drs "dump-rarity-check" abbr do "debug-operator"
abbr fd1 "fd --changed-within 1d" abbr dop "debug-operator pull"
abbr ens "enable-site" abbr ens "enable-site"
abbr ev "evince-silent" abbr ev "evince-silent"
abbr ff "fzf-cd"
# abbr fbg "find-bg" # abbr fbg "find-bg"
# abbr fr "fzf-ranger" abbr fr "fzf-ranger"
abbr fv "fzf-vim" abbr fv "fzf-vim"
abbr fvft "find-vim-filetype" abbr fvft "find-vim-filetype"
abbr gif "video-to-gif"
# git [[[ # # git [[[ #
abbr gcamp "git-amend-push" abbr gcamp "git-amend-push"
abbr gclg "git-clone-gitea" abbr gclg "git-clone-gitea"
abbr gdf "git-diff-files" abbr gdf "git-diff-files"
abbr gpsd "git-push-diff-name"
abbr gpsi "git-push-initial" abbr gpsi "git-push-initial"
abbr gpsmt "git-push-multiple" abbr gpsmt "git-push-multiple"
abbr gpng "git-push-new-gitea" abbr gpng "git-push-new-gitea"
@@ -251,26 +173,18 @@ abbr gsmb "git-submodule-branch"
# ]]] git # # ]]] git #
abbr i "sxiv-silent" abbr i "sxiv-silent"
abbr lo "libreoffice-silent" # abbr m "man-vim"
abbr mn "man-vim"
abbr ma "man-vim task" abbr ma "man-vim task"
abbr mat "math" abbr mat "math"
abbr mi "mpv-ipad"
abbr mn "man-vim"
abbr mdf "mkdir-cd" abbr mdf "mkdir-cd"
abbr mps "mpv-sub" abbr oge "oc-get-events"
abbr mtm "maven-test-method"
abbr pgr "grep-pdf" abbr pgr "grep-pdf"
abbr pgrf "grep-pdf-file" abbr pgrf "grep-pdf-file"
abbr pst "pastebin" abbr pst "pastebin"
abbr qh "qalc-history" abbr qh "qalc-history"
abbr qu "qalc-update"
abbr re "reminder ''"
abbr rf "refresh-config" abbr rf "refresh-config"
abbr rl "readlink-cp" abbr rs "redshift-set"
abbr rds "redshift-set"
abbr rmi "rm-ipad"
abbr rsi "rsync-ipad-vid"
abbr scf "scp-vid fn"
abbr sma "smol-add" abbr sma "smol-add"
abbr smd "smol-delete" abbr smd "smol-delete"
abbr sml "smol-slist" abbr sml "smol-slist"
@@ -278,35 +192,21 @@ abbr smr "smol-replace"
abbr shrm "shred-rm" abbr shrm "shred-rm"
abbr shs "scan-history" abbr shs "scan-history"
abbr svp "server-pages" abbr svp "server-pages"
abbr ta "tmux-attach"
abbr taa "tmux-attach atx"
abbr taf "tmux-attach fn"
abbr tam "tmux-attach misc"
abbr tan "tmux-attach nft"
abbr tan2 "tmux-attach nft-2"
abbr tao "tmux-attach obs"
abbr thes "thesaurus" abbr thes "thesaurus"
# abbr usc "us-to-cad" abbr usc "us-to-cad"
abbr us "us-to-cad"
abbr ut "unix-timestamp" abbr ut "unix-timestamp"
abbr uzr "unzip-rm" abbr uzr "unzip-rm"
abbr vsnp "vim-snippet" abbr vsnp "vim-snippet"
abbr wga "wget-all" abbr waf "watson-add-fortnite"
abbr wag "watson-add-game"
abbr waf "watson-add-game fortnite"
abbr wap "watson-add-game pokemon-go"
abbr wgn "wget-name"
abbr xya "export-pkgs" abbr xya "export-pkgs"
# school [[[ # # school [[[ #
abbr rdo "redeploy-operator"
# ]]] school # # ]]] school #
# ]]] fxn abbr's # # ]]] fxn abbr's #
# task sync > /dev/null 2>&1 # task sync > /dev/null 2>&1
source /home/kevin/.config/fish/key_abbr.fish > /dev/null
# wal -r
cat /home/kevin/.cache/wal/sequences
# ~/scripts/xmodmap-custom # ~/scripts/xmodmap-custom

View File

@@ -1,3 +0,0 @@
function cad-to-us
qalc "$argv[1]CAD to \$"
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

@@ -1,15 +0,0 @@
function discord-burner
# echo nordvpn connect ca1$argv[1] && curl ifconfig.me
# nordvpn connect ca1$argv[1] && \
# nordvpn connect ca10$argv[1]
# nordvpn connect
# curl ifconfig.me
if test (count $argv) -gt 1
firefox -P discord-$argv[2] $argv[1] &
else
firefox -P discord-$argv[1] &
end
# for i in (seq $argv[1] $argv[2])
# firefox -P discord-$i $argv[3] &
# end
end

View File

@@ -1,3 +0,0 @@
function dump-rarity-check
pg_dump -U rarity_check rarity_check > $argv[1].sql
end

View File

@@ -1,4 +0,0 @@
function fzf-cd
set dir (fd -td | fzf)
cd $dir
end

View File

@@ -1,3 +0,0 @@
function git-push-diff-name
git push -f origin HEAD:$argv[1]
end

View File

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

View File

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

View File

@@ -1,3 +0,0 @@
function mpv-ipad
mpv IMG_$IPAD_IMG$argv[1].MP4
end

View File

@@ -1,3 +0,0 @@
function rm-ipad
rm IMG_$IPAD_IMG$argv[1].MP4
end

View File

@@ -1,3 +0,0 @@
function rsync-ipad-vid
rsync --ignore-existing -Ptr IMG_$IPAD_IMG$argv[1].MP4 /mnt/linux-files-2/Videos/ipad/fortnite/name
end

View File

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

View File

@@ -1,4 +0,0 @@
function maven-test-method
mvn "-Dtest=$argv[1]#*$argv[2]*" clean test
# mvn "-Dtest=$argv[1]#*$argv[2]*" test
end

View File

@@ -1,3 +0,0 @@
function mpv-sub
mpv $argv[1] --sub-file=$argv[2]
end

View File

@@ -1,3 +0,0 @@
function mute-video
ffmpeg -i $argv[1] -c copy -an $argv[2]
end

View File

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

View File

@@ -1,3 +0,0 @@
function qalc-update
qalc -e "$argv[1]USD to CAD"
end

View File

@@ -1,3 +0,0 @@
function readlink-cp
readlink -f $argv[1] | xclip -selection clipboard
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

@@ -1,13 +0,0 @@
function refresh-config
chezmoi apply
and echo 'Applied chezmoi.'
# and tmux source-file ~/.tmux.conf
# and echo 'Sourced tmux config.'
sync-shortcuts
echo 'Synced shortcuts.'
source ~/.config/fish/key_abbr.fish > /dev/null
and echo 'Sourced shortcuts.'
and echo 'Reloading fish.'
and exec fish
end

View File

@@ -1,3 +0,0 @@
function reminder
termdown $argv[2] && notify-send $argv[1]
end

View File

@@ -2,7 +2,6 @@ function scan-history
sudo systemctl start postgresql.service sudo systemctl start postgresql.service
# and systemctl status postgresql.service # and systemctl status postgresql.service
and source $spv_dir/src/scripts/api-keys.sh and source $spv_dir/src/scripts/api-keys.sh
# and $spv_dir/src/scripts/update-history-2.sh
and $spv_dir/src/scripts/update-history.sh and $spv_dir/src/scripts/update-history.sh
and cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1 and cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1
end end

View File

@@ -1,7 +0,0 @@
function scp-vid
set dest_dir "/mnt/linux-files/Videos/personal-fortnite-games/review"
if test $argv[1] = 'pogo'
set dest_dir "/mnt/linux-files/Videos/pokemon-go"
end
scp -P 8022 192.168.0.18:/data/data/com.termux/files/home/storage/dcim/\'Screen\ recordings\'/$argv[2] $dest_dir
end

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +0,0 @@
function video-to-gif
# ffmpeg -i $argv[1] -filter_complex "[0:v]setpts=0.5*PTS,fps=24,split [a][b];[a] palettegen [p];[b][p] paletteuse" $argv[2]
ffmpeg -i $argv[1] -filter_complex "[0:v]fps=24,split [a][b];[a] palettegen [p];[b][p] paletteuse" $argv[2]
end

View File

@@ -1,10 +0,0 @@
function vpn-red-hat
if test $argv[1] = 'up'
sudo systemctl start NetworkManager.service
and sleep 3
and nmcli con up id "1 - Red Hat Global VPN" --ask
else if test $argv[1] = 'down'
nmcli con down id "1 - Red Hat Global VPN"
and sudo systemctl stop NetworkManager.service
end
end

View File

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

View File

@@ -1,11 +0,0 @@
function watson-add-game
set year_month (date -u +"%Y-%m")
set start_time "$year_month-$argv[2] $argv[3]"
set end_time "$year_month-$argv[4] $argv[5]"
if test (count $argv) -eq 5
watson add -f $start_time -t $end_time fun +$argv[1]
else
watson add -f $start_time -t $end_time fun +$argv[1] +$argv[6]
end
end

View File

@@ -1,5 +0,0 @@
function wget-all
for url in $argv
wget $url
end
end

View File

@@ -1,3 +0,0 @@
function wget-name
wget $argv[1] -O $argv[2]
end

View File

@@ -1,31 +1,26 @@
# startup [[[ # # startup [[[ #
# set $term urxvt
# set $term_alt st
set $term kitty set $term kitty
set $term_alt urxvt set $term_alt urxvt
# set $term urxvt
# set $term_alt kitty
# set $term st # set $term st
{{ if eq .chezmoi.hostname "x1-carbon" }}
set $term urxvt
set $term_alt kitty
# set $term_alt st
# set $term_alt urxvt # set $term_alt urxvt
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
exec dunst exec dunst
exec compton exec compton
exec imwheel exec imwheel
exec numlockx on exec numlockx on
exec xbacklight -set 10 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/kevin/Pictures/Backgrounds/dim/non-editing\")"
exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
{{ end }} {{ end }}
# exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null # exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null
# exec --no-startup-id i3-msg 'workspace $ws1; exec $term'
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"' # 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 $ws3; exec $browser'
# exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy'
# exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' # exec --no-startup-id i3-msg 'workspace $ws6; exec discord'
# exec --no-startup-id i3-msg workspace $ws6; exec discord
# exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school'
# ]]] startup # # ]]] startup #
@@ -33,9 +28,7 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
set $mod Mod1 set $mod Mod1
set $browser "firefox" set $browser "firefox"
set $browser_secondary "chromium" # set $browser "chromium-browser"
# set $browser "chromium"
# set $browser_secondary "firefox"
set $scripts_path "/home/kevin/scripts" set $scripts_path "/home/kevin/scripts"
set $sch_dir "$HOME/Documents/School" set $sch_dir "$HOME/Documents/School"
@@ -48,7 +41,8 @@ bindsym Control+Shift+Return exec st -A1
bindsym Control+$mod+Return exec $term_alt bindsym Control+$mod+Return exec $term_alt
# bindsym Control+$mod+Return exec st # bindsym Control+$mod+Return exec st
# PROTIP: You can also dynamically set dmenu's colors this way: # 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 -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
# bindsym Mod4+Return exec dmenu_run # bindsym Mod4+Return exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications # There also is the (new) i3-dmenu-desktop which only displays applications
@@ -56,43 +50,34 @@ bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" -
# installed. # installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# bindsym Mod4+b layout tabbed; exec zathura # bindsym Mod4+b layout tabbed; exec zathura
# bindsym Mod4+c exec $browser bindsym Mod4+c exec $browser
# bindsym Mod4+$mod+c exec chatterino
bindsym Mod4+c exec chatterino
bindsym Mod4+$mod+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 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 emacs
# bindsym Mod4+e exec ~/scripts/twem 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+f exec firefox --private-window
# bindsym Mod4+f exec firefox --private-window google.ca
# bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard # bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard
# bindsym Mod4+h exec sleep .2 && xdotool type '.hint' 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+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
# bindsym Mod4+$mod+h exec sleep .2 && xdotool type '.hint'
bindsym Mod4+$mod+i exec sleep .2 && xdotool type '.info latest' bindsym Mod4+$mod+i exec sleep .2 && xdotool type '.info latest'
bindsym Mod4+l exec ~/scripts/dmenu-twitch
# bindsym Mod4+m exec $term -e ~/scripts/vim-man # bindsym Mod4+m exec $term -e ~/scripts/vim-man
bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com' bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com'
# bindsym Mod4+$mod+m exec pass -c uoft/markus # bindsym Mod4+$mod+m exec pass -c uoft/markus
bindsym Mod4+n exec $term -e nvim bindsym Mod4+n exec $term -e nvim
# bindsym Mod4+$mod+o exec xset dpms force off
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v' bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v'
bindsym $mod+Mod4+o workspace $ws11; exec obs # bindsym Mod4+o exec $type_delay_cmd && xdotool key 'Control_L+v'
bindsym Mod4+$mod+o exec xset dpms force off
# bindsym Mod4+p workspace $ws4; exec pgadmin3 # bindsym Mod4+p workspace $ws4; exec pgadmin3
# bindsym Mod4+p exec pycharm # bindsym Mod4+p exec pycharm
bindsym Mod4+p exec passmenu bindsym Mod4+p exec sleep .2 && xdotool type '.catch '
# # 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+$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+q exec printf 'emad1 ' | xclip -selection clipboard && $type_delay_cmd && xdotool key 'Control_L+v'
bindsym Mod4+r exec $type_delay_cmd && xdotool type 'kmok@redhat.com' bindsym Mod4+r exec $term -e ranger
bindsym Mod4+$mod+r exec pass show -c career/redhat && $type_delay_cmd && xdotool key 'Control_L+v' bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
# bindsym Mod4+$mod+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+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+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+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca'
# bindsym Mod4+$mod+u exec pass -c uoft/acorn # bindsym Mod4+$mod+u exec pass -c uoft/acorn
# bindsym Mod4+w exec notify-send "watson status" "$(watson status)" # bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
@@ -101,27 +86,16 @@ bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp
# bindsym Mod4+x exec $swex # bindsym Mod4+x exec $swex
bindsym Control+$mod+x exec $type_delay_cmd && xdotool type 'http://codm.ataraxy.tk/' bindsym Control+$mod+x exec $type_delay_cmd && xdotool type 'http://codm.ataraxy.tk/'
bindsym Mod4+z exec cliqz bindsym Mod4+z exec cliqz
bindsym Pause exec ~/scripts/twem
# screenshot [[[ #
set $screenshot_folder "/home/kevin/Pictures/screenshots/desktop/unsorted"
set $scripts_path "/home/kevin/scripts"
{{ if .ext_kb }} {{ if .ext_kb }}
# bindsym Mod4+x exec ~/scripts/xmodmap-custom bindsym Mod4+x exec ~/scripts/xmodmap-custom
bindsym Mod4+x exec notify-send "xmodmap" "$(~/scripts/xmodmap-custom)" bindsym Print --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
# bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)" bindsym Control+Print --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
# bindsym Print --release exec "scrot -s $screenshot_folder/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Print --release exec "maim -su | tee ~/Pictures/screenshots/desktop/unsorted/screenshot-$(date +%F_%T).png | xclip -selection clipboard -t image/png"
bindsym Control+Print --release exec "scrot -u ~/Pictures/screenshots/desktop/unsorted/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ else }} {{ else }}
bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE
bindsym Control+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 "maim -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+Shift+p --release exec "maim -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ end }} {{ end }}
# ]]] screenshot #
# ]]] app shortcuts # # ]]] app shortcuts #
# redshift [[[ # # redshift [[[ #
@@ -131,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+3 exec redshift -x && redshift -O 3000
bindsym $mod+Mod4+4 exec redshift -x && redshift -O 4000 bindsym $mod+Mod4+4 exec redshift -x && redshift -O 4000
bindsym $mod+Mod4+5 exec redshift -x && redshift -O 5000 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 # # ]]] redshift #
# backlight [[[ # # backlight [[[ #
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
bindsym Shift+F1 exec xbacklight -set 10 bindsym Shift+F1 exec xbacklight -set 10
bindsym Shift+F2 exec xbacklight -set 20 bindsym Shift+F2 exec xbacklight -set 20
bindsym Shift+F3 exec xbacklight -set 30 bindsym Shift+F3 exec xbacklight -set 30
@@ -148,6 +122,7 @@ bindsym Shift+F7 exec xbacklight -set 70
bindsym Shift+F8 exec xbacklight -set 80 bindsym Shift+F8 exec xbacklight -set 80
bindsym Shift+F9 exec xbacklight -set 90 bindsym Shift+F9 exec xbacklight -set 90
bindsym Shift+F10 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+plus exec xbacklight -inc 2
bindsym Control+$mod+minus exec xbacklight -dec 2 bindsym Control+$mod+minus exec xbacklight -dec 2
@@ -158,11 +133,8 @@ bindsym Control+$mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
# ]]] backlight # # ]]] backlight #
for_window [class="chatterino"] floating enable
for_window [class="Peek"] floating enable for_window [class="Peek"] floating enable
for_window [title="Qalculate!"] floating enable for_window [title="Qalculate!"] floating enable
for_window [window_role="alert"] floating enable
no_focus [window_role="alert"]
# ]]] applications # # ]]] applications #
@@ -206,10 +178,10 @@ for_window [class="^.*"] border pixel 3
# gaps inner $inner_gaps # gaps inner $inner_gaps
# gaps outer $outer_gaps # gaps outer $outer_gaps
# gaps bottom 0 # gaps bottom 0
gaps inner 0 # gaps inner 0
gaps outer 0 # gaps outer 0
{{ if eq .chezmoi.hostname "nzxt" }} {{ if eq .chezmoi.fullHostname "nzxt" }}
# border_radius $border_radius border_radius $border_radius
{{ end }} {{ end }}
# other gaps [[[ # # other gaps [[[ #
@@ -266,7 +238,7 @@ bindsym $mod+minus move workspace to output left
bindsym $mod+plus move workspace to output right bindsym $mod+plus move workspace to output right
# move focused window # move focused window
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
bindsym Control+Shift+h move left 50px bindsym Control+Shift+h move left 50px
bindsym Control+Shift+j move down 50px bindsym Control+Shift+j move down 50px
bindsym Control+Shift+k move up 50px bindsym Control+Shift+k move up 50px
@@ -309,7 +281,7 @@ bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute po
set $make_st_script "/home/kevin/st/make-st.sh" set $make_st_script "/home/kevin/st/make-st.sh"
# test # test
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ 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+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+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 bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
@@ -325,83 +297,58 @@ bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Back
# ws names [[[ # # ws names [[[ #
set $ws1 "1 " set $ws1 "1 "
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
set $secondary "HDMI2" set $secondary "HDMI2"
set $main "eDP1" set $main "eDP1"
{{ else if eq .chezmoi.hostname "nzxt" }} # {{ 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 $secondary "DVI-I-1"
set $main "HDMI-0" set $main "HDMI-0"
{{ end }} {{ end }}
# workspace $ws1 output $main workspace $ws1 output $main
workspace $ws1 output $secondary
bindsym $mod+F1 workspace $ws1; exec $term bindsym $mod+F1 workspace $ws1; exec $term
bindsym Mod4+$mod+F1 workspace $ws1; exec chatterino
bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach school'
# bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach nft'
set $ws2 "2 " set $ws2 "2 "
set $work_laptop_ip "192.168.0.11"
workspace $ws2 output $secondary workspace $ws2 output $secondary
bindsym $mod+F2 workspace $ws2; exec $term bindsym $mod+F2 workspace $ws2; exec $term
# bindsym Control+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt # 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+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach fortnite'
# bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach nft-2' 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 school-2' # bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach crimson'
bindsym $mod+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt-2 # bindsym Control+$mod+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach codm'
# ws3 [[[ #
set $ws3 "3 " set $ws3 "3 "
# set $ws3 "3 " # set $ws3 "3 "
# workspace $ws3 output $main # workspace $ws3 output $main
# bindsym $mod+F3 workspace $ws3; exec $browser bindsym $mod+F3 workspace $ws3; exec $browser
# bindsym $mod+F3 exec $browser; move container to workspace $ws3; workspace $ws3
bindsym $mod+F3 exec $browser
bindsym Control+Shift+F3 workspace $ws3; exec firefox -P work
# bindsym Mod4+$mod+F3 workspace $ws3; exec $browser_secondary
bindsym Mod4+$mod+F3 workspace $ws3; exec firefox -P default
# bindsym Mod4+$mod+F3 workspace $ws3; exec firefox -P work
# bindsym Mod4+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf" # 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" # bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf fq"
# bindsym Mod4+b layout stacked; exec $term -e fish -c "buku-fzf" # bindsym Mod4+b layout stacked; exec $term -e fish -c "buku-fzf"
# bindsym Mod4+$mod+b layout stacked; exec $term -e fish -c "buku-fzf fq" # 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+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+$mod+b layout tabbed; exec $term -e fish -c "buku-fzf fq"
# bindsym Mod4+g workspace $ws3; layout tabbed; exec gimp bindsym Mod4+g workspace $ws3; layout tabbed; exec gimp
# ]]] ws3 # set $ws4 "4 "
set $ws4 "4 󱓧"
workspace $ws4 output $secondary workspace $ws4 output $secondary
# bindsym $mod+F4 workspace $ws4; exec $term bindsym $mod+F4 workspace $ws4; exec $term
# bindsym Control+Shift+F4 workspace $ws4; exec $term -e fish -c 'tmux-attach misc'
bindsym $mod+F4 workspace $ws4; exec $term -e fish -c 'tmux-attach misc'
# bindsym Mod4+$mod+F4 workspace $ws4; exec urxvt -e ranger $screenshot_folder
bindsym Mod4+$mod+F4 workspace $ws4; exec kitty ranger $screenshot_folder
bindsym Mod4+e workspace $ws4; exec libreoffice ~/Documents/expenses/investments.ods
bindsym Mod4+g workspace $ws4; layout tabbed; exec gimp
# ws5 [[[ #
set $ws5 "5 " set $ws5 "5 "
# workspace $ws5 output $secondary # workspace $ws5 output $secondary
assign [class="Steam"] $ws5 assign [class="Steam"] $ws5
bindsym $mod+F5 workspace $ws5; exec $browser bindsym $mod+F5 workspace $ws5; exec $browser
# bindsym $mod+Mod4+F5 workspace $ws5; exec firefox -P work bindsym $mod+Mod4+F5 workspace $ws5; exec firefox --private-window
bindsym $mod+Mod4+F5 workspace $ws5; exec firefox -P nft
# bindsym $mod+Mod4+F5 workspace $ws5; exec firefox --private-window
bindsym Control+Shift+F5 workspace $ws5; exec firefox -P work
bindsym Mod4+f workspace $ws5; exec firefox --private-window google.ca
bindsym $mod+Shift+F5 workspace $ws5; exec chromium
# bindsym Mod4+g workspace $ws5; layout stacking; exec $term -e steam # 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+g workspace $ws5; exec mgba-qt
# bindsym Mod4+i workspace $ws5; exec idea bindsym Mod4+i workspace $ws5; exec idea
# bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest # 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+t workspace $ws5; exec thunderbird
# bindsym Mod4+$mod+w workspace $ws5; exec $term -e twitchy # bindsym Mod4+$mod+w workspace $ws5; exec $term -e twitchy
# bindsym Mod4+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+5 workspace $ws5; exec godot
bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e 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 # for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0
@@ -411,30 +358,23 @@ for_window [class="ada-mario"] floating enable
# for_window [class="ada-mario"] move absolute position 930 480 # for_window [class="ada-mario"] move absolute position 930 480
for_window [class="ada-mario"] move absolute position 640 0 for_window [class="ada-mario"] move absolute position 640 0
# ]]] ws5 #
# ws6 [[[ #
set $ws6 "6 " set $ws6 "6 "
workspace $ws6 output $secondary workspace $ws6 output $secondary
assign [class="Slack"] $ws6 assign [class="Slack"] $ws6
bindsym Mod4+d workspace $ws6; exec discord # bindsym Mod4+$mod+d workspace $ws6; exec discord
bindsym Mod4+$mod+d workspace $ws6; exec element-desktop # bindsym Mod4+d workspace $ws6; exec riot-desktop
# bindsym Mod4+d workspace $ws6; exec firefox -new-window https://riot.im/app 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+$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 bindsym Mod4+k workspace $ws6; exec slack
# bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat'
bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat'
# bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'tmux-attach weechat'
# ]]] ws6 #
set $ws7 "7 " set $ws7 "7 "
workspace $ws7 output $secondary workspace $ws7 output $secondary
# bindsym $mod+F7 workspace $ws7; exec $term # bindsym $mod+F7 workspace $ws7; exec $term
# bindsym $mod+F7 workspace $ws7; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt bindsym $mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a
bindsym $mod+F7 workspace $ws7; exec $term
bindsym Mod4+$mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a
bindsym $mod+Shift+F7 workspace $ws7; exec chromium https://txstreet.com/v/eth
bindsym Mod4+a workspace $ws7; exec android-file-transfer bindsym Mod4+a workspace $ws7; exec android-file-transfer
# bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1" # bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1"
@@ -444,8 +384,6 @@ workspace $ws8 output $secondary
# bindsym $mod+F8 workspace $ws8; exec $term # bindsym $mod+F8 workspace $ws8; exec $term
# bindsym $mod+F8 workspace $ws8; exec $term -e tmux a -t journal # bindsym $mod+F8 workspace $ws8; exec $term -e tmux a -t journal
bindsym $mod+F8 workspace $ws8; exec $term -e fish -c 'tmux-attach journal' bindsym $mod+F8 workspace $ws8; exec $term -e fish -c 'tmux-attach journal'
bindsym Mod4+$mod+F8 workspace $ws8; exec libreoffice ~/Documents/sit-stand/sit-stand.ods
bindsym $mod+Shift+F8 workspace $ws8; exec libreoffice ~/Documents/red-hat/workday.ods
set $ws9 "9 " set $ws9 "9 "
workspace $ws9 output $secondary workspace $ws9 output $secondary
@@ -462,18 +400,13 @@ set $hp 2
bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 1 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+h workspace $ws10; exec $term -e alsamixer -c $hp
# bindsym Mod4+s workspace $ws10; exec ~/scripts/spotify-clean
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify
set $ws11 "11 " set $ws11 "11 "
# set $ws11 "11 📊" # set $ws11 "11 📊"
# assign [class="Summoners War Exporter"] $ws11 # assign [class="Summoners War Exporter"] $ws11
workspace $ws11 output $secondary workspace $ws11 output $secondary
# bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_MEM
# bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
bindsym Control+Shift+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach backup'
bindsym Mod4+t workspace $ws11; exec nordvpn connect && transmission-gtk
# bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m # bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m
# bindsym Mod4+a workspace $ws11; exec antimicro # bindsym Mod4+a workspace $ws11; exec antimicro
@@ -549,9 +482,8 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
# bar vars [[[ # # bar vars [[[ #
# set $sb_font Hack NF Bold # set $sb_font Hack NF Bold
set $sb_font Hack Nerd Font Mono Bold
# set $sb_font EmojiOne # set $sb_font EmojiOne
# set $sb_font DejaVuSansMono Nerd Font Mono Bold set $sb_font DejaVuSansMono Nerd Font Mono Bold
set $black #000000 set $black #000000
set $white #ffffff set $white #ffffff
for_window [class="Yad"] floating enable for_window [class="Yad"] floating enable
@@ -576,11 +508,14 @@ set $bar_trans 00
set $main_ws_trans aa set $main_ws_trans aa
bar { bar {
i3bar_command i3bar -t i3bar_command i3bar -t
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
font pango:$sb_font 17 font pango:$sb_font 17
{{ else if eq .linux_os "fedora" }}
# font pango:$sb_font 23
font pango:$sb_font 25
{{ else }} {{ else }}
font pango:$sb_font 17 # font pango:$sb_font 17
# font pango:$sb_font 16 font pango:$sb_font 16
{{ end }} {{ end }}
colors { colors {
# 0 (transparent) -> 255 (opaque) in hex # 0 (transparent) -> 255 (opaque) in hex
@@ -595,8 +530,7 @@ bar {
tray_output none tray_output none
# status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf # status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
status_command 2>/tmp/i3blocks.err i3blocks -vvv -c ~/.config/i3blocks/i3blocks.conf | tee /tmp/i3blocks.out status_command 2>/tmp/i3blocks.err i3blocks -vvv -c ~/.config/i3blocks/i3blocks.conf | tee /tmp/i3blocks.out
# output $main output $main
output $secondary
wheel_up_cmd nop wheel_up_cmd nop
wheel_down_cmd nop wheel_down_cmd nop
} }
@@ -605,31 +539,29 @@ bar {
# secondary bar [[[ # # secondary bar [[[ #
# bar { bar {
# output $secondary output $secondary
# {{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
# font pango:$sb_font 18 font pango:$sb_font 18
# {{ else }} {{ else }}
# font pango:$sb_font 21 font pango:$sb_font 20
# # font pango:$sb_font 20 {{ end }}
# # font pango:$sb_font 17 # output $main
# {{ end }} i3bar_command i3bar -t
# # output $main colors {
# i3bar_command i3bar -t background $black$bar_trans
# colors { # border, bg, text color
# background $black$bar_trans # focused_workspace $inactive_ws_bg $bg $focused_ws_text
# # border, bg, text color focused_workspace $inactive_ws_bg $bg $fg
# # focused_workspace $inactive_ws_bg $bg $focused_ws_text active_workspace $inactive_ws_bg $fg$active_ws_trans $fg
# focused_workspace $inactive_ws_bg $bg $fg inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $fg
# active_workspace $inactive_ws_bg $fg$active_ws_trans $fg }
# inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $fg status_command i3blocks -c ~/.config/i3blocks/i3blocks-secondary.conf
# } # status_command 2>/tmp/i3blocks-sam.err i3blocks -vvv -c ~/.config/i3blocks/sam-i3blocks.conf | tee /tmp/i3blocks-sam.out
# status_command i3blocks -c ~/.config/i3blocks/i3blocks-secondary.conf tray_output none
# # status_command 2>/tmp/i3blocks-sam.err i3blocks -vvv -c ~/.config/i3blocks/sam-i3blocks.conf | tee /tmp/i3blocks-sam.out wheel_up_cmd nop
# tray_output none wheel_down_cmd nop
# wheel_up_cmd nop }
# wheel_down_cmd nop
# }
# ]]] secondary bar # # ]]] secondary bar #

View File

@@ -11,49 +11,18 @@ markup=pango
color=#cbe4ff color=#cbe4ff
# ]]] Global properties # # ]]] Global properties #
# [ticker]
# label=$
# TICKER=GME
# interval=30
# # interval=10
# sys.monitoring [[[ #
{{ if eq .chezmoi.hostname "nzxt" }}
[temperature]
label=
interval=5
[cpu_usage]
label=
interval=5
[memory]
label=
# color=#3da061
interval=5
{{ end }}
# ]]] sys.monitoring #
# volume/spotify [[[ # # volume/spotify [[[ #
# [spotify] [spotify]
# # command=python ~/linux-config/configs/i3blocks-scripts/spotify.py # command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
# # label= # label=
# label= label=
# # label=🎧 # label=🎧
# # green # green
# # color=#198c19 # color=#198c19
# # aqua # aqua
# # color=#2d7272 # color=#2d7272
# interval=5 interval=5
# [spotify]
# label=
# LONG_NAME=
# SHORT_NAME=
# interval=5
[volume] [volume]
interval=once interval=once
@@ -67,12 +36,11 @@ interval=60
[calendar] [calendar]
interval=30 interval=30
label= label=
# {{ if eq .chezmoi.hostname "nzxt" }} {{ if eq .chezmoi.fullHostname "nzxt" }}
# DATEFMT=+%H:%M.%a-%m-%d DATEFMT=+%H:%M.%a-%m-%d
# {{ else }} {{ else }}
# DATEFMT=+%H:%M
# {{ end }}
DATEFMT=+%H:%M DATEFMT=+%H:%M
{{ end }}
# SHORTFMT=+%H:%M:%S # SHORTFMT=+%H:%M:%S
SHORTFMT=+%H:%M.%a-%m-%d SHORTFMT=+%H:%M.%a-%m-%d
HEIGHT=180 HEIGHT=180
@@ -80,12 +48,12 @@ WIDTH=220
# ]]] time # # ]]] time #
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
[temperature] [temperature]
label= label=
interval=5 interval=5
# [name] [name]
# label= label=
# interval=30 interval=30
{{ end }} {{ end }}

View File

@@ -13,124 +13,26 @@ color=#cbe4ff
# ]]] global # # ]]] global #
# ticker [[[ #
{{ if eq .chezmoi.hostname "nzxt" }}
# [ticker]
# label=SOL
# TICKER=SOL-USD
# interval=30
# [kraken]
# label=BLUR
# TICKER=BLURUSD
# interval=30
# [kraken]
# label=ARB
# TICKER=ARBUSD
# interval=30
# [ticker]
# label=ETH
# TICKER=ETH-USD
# interval=30
[kraken]
label=BTC
TICKER=BTCUSDC
interval=30
# [ticker]
# label=BTC
# TICKER=BTC-USD
# interval=30
[kraken]
label=ETH
TICKER=ETHUSDC
interval=30
# [kraken]
# label=SOL
# TICKER=SOLUSD
# interval=30
# [kraken]
# label=SEI
# TICKER=SEIUSD
# interval=30
[dexscreener]
label=PIXL
CHAIN=ethereum
PAIR=0x31c0ba10e4e12be6cdceb612e5e829d977532bfc
interval=30
# [dexscreener]
# label=BLAST
# CHAIN=blast
# PAIR=0x9A0AA28d999a21d3cf6F2703CDBba9FeAF4a32F7
# interval=30
[dexscreener]
label=LOCK
CHAIN=solana
PAIR=AtWMAA6T9t8cq8XCccCFPGDNNQYXhScuNuY6WVRi7FKe
interval=30
# [dexscreener]
# label=FLT
# CHAIN=ethereum
# PAIR=0x983b92EA1F0A20844466f3E4BB988c1dE145293E
# interval=30
# [ticker]
# label=SPY
# TICKER=SPY
# interval=30
# [ticker]
# label=DAQ
# TICKER=^IXIC
# interval=30
{{ end }}
# ]]] ticker #
# volume/spotify [[[ # # volume/spotify [[[ #
{{ if eq .chezmoi.hostname "nzxt" }}
[volume] [volume]
interval=once interval=once
signal=1 signal=1
interval=60 interval=60
# [spotify] {{ if eq .chezmoi.fullHostname "nzxt" }}
# label= [spotify]
# LONG_NAME= label=
# SHORT_NAME= LONG_NAME=
# interval=5 SHORT_NAME=
interval=5
# [spotify]
# # command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
# # label=
# label=
# # label=🎧
# # green
# # color=#198c19
# # aqua
# # color=#2d7272
# interval=5
{{ end }} {{ end }}
# ]]] volume/spotify # # ]]] volume/spotify #
# laptop [[[ # # laptop [[[ #
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }}
[battery] [battery]
label=⚡ label=⚡
interval=30 interval=30
@@ -141,17 +43,10 @@ instance=wlp3s0
interval=10 interval=10
[backlight] [backlight]
label= label=
interval=5 interval=5
{{ end }} {{ end }}
# {{ if eq .chezmoi.hostname "nzxt" }}
# [wifi]
# label=
# instance=wlp4s0
# interval=10
# {{ end }}
# ]]] laptop # # ]]] laptop #
# time [[[ # # time [[[ #
@@ -159,13 +54,8 @@ interval=5
[calendar] [calendar]
interval=30 interval=30
label= label=
# {{ if eq .chezmoi.hostname "nzxt" }} DATEFMT=+%H:%M
# DATEFMT=+%H:%M
# {{ else }}
# DATEFMT=+%H:%M.%a-%m-%d # DATEFMT=+%H:%M.%a-%m-%d
# {{ end }}
DATEFMT=+%H:%M.%a-%m-%d
# SHORTFMT=+%H:%M:%S
HEIGHT=180 HEIGHT=180
WIDTH=220 WIDTH=220
@@ -173,27 +63,40 @@ WIDTH=220
# sys.monitoring [[[ # # sys.monitoring [[[ #
{{ if eq .chezmoi.hostname "nzxt" }} {{ if eq .chezmoi.fullHostname "nzxt" }}
# [temperature] # [wifi]
# label= # label=
# interval=5 # instance=wlp4s0
# interval=10
# [cpu_usage] [temperature]
# label= label=
# interval=5 interval=5
# [memory] # unbold this?
# label= # [load_average]
# # color=#3da061 # label=
# interval=5 # interval=5
# color=#990000
{{ end }}
[cpu_usage]
label=
interval=5
[memory]
label=
# color=#3da061
interval=5
# ]]] sys.monitoring # # ]]] sys.monitoring #
# name [[[ # # name [[[ #
# [name] {{ if eq .chezmoi.fullHostname "nzxt" }}
# label= [name]
# interval=30 label=
interval=30
{{ end }} {{ end }}
# ]]] name # # ]]] name #

View File

@@ -5,7 +5,7 @@ round()
echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc)) 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) cur_bl=$(xbacklight -get)
# echo "$(round "$cur_bl" 0)%" # 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

@@ -24,16 +24,12 @@ my $short_text;
my $bat_number = $ENV{BLOCK_INSTANCE} || 0; my $bat_number = $ENV{BLOCK_INSTANCE} || 0;
# read the first line of the "acpi" command output # read the first line of the "acpi" command output
open (ACPI, "acpi -b 2>/dev/null| grep 'Battery $bat_number' |") or die; open (ACPI, "acpi -b | grep 'Battery $bat_number' |") or die;
$acpi = <ACPI>; $acpi = <ACPI>;
close(ACPI); close(ACPI);
# fail on unexpected output # fail on unexpected output
if (not defined($acpi)) { if ($acpi !~ /: (\w+), (\d+)%/) {
# don't print anything to stderr if there is no battery
exit(0);
}
elsif ($acpi !~ /: ([\w\s]+), (\d+)%/) {
die "$acpi\n"; die "$acpi\n";
} }

View File

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

View File

@@ -1,8 +1,7 @@
#!/bin/bash #!/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}')" idle="$(mpstat 1 1 -P ALL | sed -n -e '4{p;q}' | awk '{print $NF}')"
used=$(echo 100 - "$idle" | bc) used=$(echo 100 - "$idle" | bc)
used_rounded=$(printf %.0f "$used") 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

@@ -1,5 +0,0 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
ticker=$(~/scripts/dexscreener $CHAIN $PAIR)
printf "%s\n\n%s\n" "$ticker" "$color7"

View File

@@ -1,5 +0,0 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
ticker=$(~/scripts/kraken $TICKER)
printf "%s\n\n%s\n" "$ticker" "$color7"

View File

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

View File

@@ -1,5 +0,0 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
ticker=$(~/scripts/ticker $TICKER)
printf "%s\n\n%s\n" "$ticker" "$color7"

View File

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

View File

@@ -17,7 +17,7 @@ AUDIO_LOW_SYMBOL=${AUDIO_LOW_SYMBOL:-''}
AUDIO_MUTED_SYMBOL=${AUDIO_MUTED_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=${DEFAULT_COLOR:-"#ffffff"}
DEFAULT_COLOR="$color7" DEFAULT_COLOR="$color7"
MUTED_COLOR=${MUTED_COLOR:-"#a0a0a0"} MUTED_COLOR=${MUTED_COLOR:-"#a0a0a0"}
@@ -32,9 +32,7 @@ SCONTROL=${SCONTROL:-""}
# }}} default vars # # }}} default vars #
AUDIO_DELTA=${AUDIO_DELTA:-3} AUDIO_DELTA=${AUDIO_DELTA:-5}
# AUDIO_DELTA=${AUDIO_DELTA:-2}
# AUDIO_DELTA=${AUDIO_DELTA:-1}
# LONG_FORMAT=${LONG_FORMAT:-'${SYMB} ${VOL}% [${INDEX}:${NAME}]'} # LONG_FORMAT=${LONG_FORMAT:-'${SYMB} ${VOL}% [${INDEX}:${NAME}]'}
LONG_FORMAT=${SHORT_FORMAT:-'${SINK_SYMB} ${VOL}%'} LONG_FORMAT=${SHORT_FORMAT:-'${SINK_SYMB} ${VOL}%'}
@@ -144,8 +142,7 @@ esac
function print_format { function print_format {
# echo $NAME # echo $NAME
case $NAME in case $NAME in
# *"USB"*) *"USB"*)
*"Fiio"*)
SINK_SYMB="" SINK_SYMB=""
;; ;;
*"hdmi"*) *"hdmi"*)

View File

@@ -18,6 +18,7 @@
INTERFACE="${BLOCK_INSTANCE:-wlan0}" INTERFACE="${BLOCK_INSTANCE:-wlan0}"
# echo $INTERFACE # echo $INTERFACE
# INTERFACE="${INSTANCE}"
#------------------------------------------------------------------------ #------------------------------------------------------------------------
@@ -28,17 +29,17 @@ 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 # echo $QUALITY
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':') W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
# W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}') W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
#------------------------------------------------------------------------ #------------------------------------------------------------------------
echo $QUALITY% # full text echo $QUALITY% # full text
echo $QUALITY% # short text echo $QUALITY% # short text
. "/home/kevin/.cache/wal/colors.sh" . "/home/$USER/.cache/wal/colors.sh"
# color # color
if [[ $QUALITY -lt 50 ]]; then if [[ $QUALITY -lt 50 ]]; then
echo "#FF0000" echo "#FF0000"

View File

@@ -1,20 +1,13 @@
confirm_os_window_close 0
include ~/.cache/wal/colors-kitty.conf include ~/.cache/wal/colors-kitty.conf
# background_opacity .7 background_opacity .6
# background_opacity .8 /* background_opacity .7 */
# background_opacity .85
background_opacity .9
# background_opacity .95
# background_opacity .97
clipboard_control write-clipboard write-primary clipboard_control write-clipboard write-primary
enable_audio_bell no enable_audio_bell no
# font # font
cursor_blink_interval 0 cursor_blink_interval 0
# font_size 12.5 # font_size 12.5
font_size 12 # font_size 14
font_size 14.5
map ctrl+alt+up change_font_size all +1.0 map ctrl+alt+up change_font_size all +1.0
map ctrl+alt+down change_font_size all -1.0 map ctrl+alt+down change_font_size all -1.0
font_family Hack Nerd Font Mono

View File

@@ -1,33 +0,0 @@
[Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=chromium.desktop
x-scheme-handler/unknown=chromium.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop
message/rfc822=userapp-Thunderbird-DQE3YZ.desktop
image/jpeg=sxiv.desktop
image/png=sxiv.desktop
x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop
[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
text/html=firefox.desktop;
application/pdf=org.gnome.Evince.desktop;org.pwmt.zathura-pdf-mupdf.desktop;
text/plain=nvim.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop;
message/rfc822=userapp-Thunderbird-DQE3YZ.desktop;
text/x-python=nvim.desktop;gvim.desktop;
application/json=firefox.desktop;
image/jpeg=gimp.desktop;imv.desktop;
text/markdown=nvim.desktop;
image/png=imv.desktop;

View File

@@ -1,36 +0,0 @@
[Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop
message/rfc822=userapp-Thunderbird-DQE3YZ.desktop
image/jpeg=sxiv.desktop
image/png=sxiv.desktop
x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop
x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop
video/mp4=mpv.desktop
[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
text/html=firefox.desktop;
application/pdf=org.gnome.Evince.desktop;org.pwmt.zathura-pdf-mupdf.desktop;
text/plain=nvim.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop;
message/rfc822=userapp-Thunderbird-DQE3YZ.desktop;
text/x-python=nvim.desktop;gvim.desktop;
application/json=firefox.desktop;
image/jpeg=gimp.desktop;imv.desktop;
text/markdown=nvim.desktop;
image/png=imv.desktop;
video/mp4=mpv.desktop;

View File

@@ -7,29 +7,23 @@ v cycle mute
r set speed 1.0 r set speed 1.0
g set speed 1.6 g set speed 1.6
h set speed 2.4 h set speed 2.4
w add speed -.2 a add speed -.2
e add speed .2 s add speed .2
# seek # seek
Ctrl+RIGHT no-osd seek 0.2 exact Shift+RIGHT seek 1
Ctrl+LEFT no-osd seek -0.2 exact Shift+LEFT seek -1
Shift+RIGHT no-osd seek 1 exact RIGHT seek 3
Shift+LEFT no-osd seek -1 exact LEFT seek -3
RIGHT seek 3 exact UP seek 10
LEFT seek -3 exact DOWN seek -10
UP seek 10 exact Shift+UP seek 60
DOWN seek -10 exact Shift+DOWN seek -60
Shift+UP seek 60 exact
Shift+DOWN seek -60 exact
# mark # mark
m revert-seek mark # mark position for revert-seek m revert-seek mark # mark position for revert-seek
Shift+m revert-seek Shift+m revert-seek
# subtitle delay # subtitle delay
# z add sub-delay +0.25 z add sub-delay +0.25
# Z add sub-delay -0.25 Z add sub-delay -0.25
u add sub-delay -0.25
i add sub-delay +0.25
ctrl+r cycle_values video-rotate "90" "180" "270" "0"

View File

@@ -1,5 +1,3 @@
sub-auto=fuzzy sub-auto=fuzzy
# volume=25
# volume=75
ytdl-format=best ytdl-format=best
ytdl-raw-options=sub-format=en,write-srt= ytdl-raw-options=sub-format=en,write-srt=

View File

@@ -20,17 +20,17 @@ print_info() {
info "Shell" shell info "Shell" shell
info "Packages" packages info "Packages" packages
info "WM" wm info "WM" wm
info "WM Theme" wm_theme info "WM Theme" wm_theme
# info "Font" font # info "Font" font
info "Theme" theme # info "Theme" theme
info "Icons" icons # info "Icons" icons
info "CPU" cpu info "CPU" cpu
info "CPU Usage" cpu_usage info "CPU Usage" cpu_usage
info "GPU" gpu # info "GPU" gpu
info "GPU Driver" gpu_driver # Linux only # info "GPU Driver" gpu_driver # Linux only
info "Memory" memory info "Memory" memory
info "Disk" disk info "Disk" disk
info "Resolution" resolution # info "Resolution" resolution
# }}} enabled # # }}} enabled #
@@ -337,7 +337,9 @@ public_ip_host="http://ident.me"
# 'Disk (/): 74G / 118G (66%)' # 'Disk (/): 74G / 118G (66%)'
# #
# disk_show=('/' '/home' '/mnt/linux-files' ) # disk_show=('/' '/home' '/mnt/linux-files' )
disk_show=('/dev/sdc1' '/dev/sdc3' '/dev/sdd1' ) # disk_show=('/dev/sda1' '/dev/sda3' '/dev/sdc2' )
# disk_show=('/dev/sda2' )
disk_show=('/' '/home' )
# Disk subtitle. # Disk subtitle.
# What to append to the Disk subtitle. # What to append to the Disk subtitle.

View File

@@ -1,425 +0,0 @@
# shadows {{{ #
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
# shadow = false
shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12)
# shadow-radius = 12
shadow-radius = 7;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
# shadow-opacity = .75
# The left offset for shadows, in pixels. (defaults to -15)
# shadow-offset-x = -15
shadow-offset-x = -7;
# The top offset for shadows, in pixels. (defaults to -15)
# shadow-offset-y = -15
shadow-offset-y = -7;
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.
#
# no-dock-shadow = false
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.
#
# no-dnd-shadow = false
# Red color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-red = 0
# Green color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-green = 0
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-blue = 0
# Do not paint shadows on shaped windows. Note shaped windows
# here means windows setting its shape through X Shape extension.
# Those using ARGB background is beyond our control.
# Deprecated, use
# shadow-exclude = 'bounding_shaped'
# or
# shadow-exclude = 'bounding_shaped && !rounded_corners'
# instead.
#
# shadow-ignore-shaped = ''
# Specify a list of conditions of windows that should have no shadow.
#
# examples:
# shadow-exclude = "n:e:Notification";
#
# shadow-exclude = []
shadow-exclude = [
"name = 'Notification'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'",
"_GTK_FRAME_EXTENTS@:c"
];
# Specify a X geometry that describes the region in which shadow should not
# be painted in, such as a dock window region. Use
# shadow-exclude-reg = "x10+0+0"
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
#
# shadow-exclude-reg = ""
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
# xinerama-shadow-crop = false
# }}} shadows #
# fading {{{ #
# Fade windows in/out when opening/closing and when opacity changes,
# unless no-fading-openclose is used.
fading = false
# fading = true
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
# fade-in-step = 0.028
fade-in-step = 0.03;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
# fade-out-step = 0.03
fade-out-step = 0.03;
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
# fade-delta = 10
# Specify a list of conditions of windows that should not be faded.
# fade-exclude = []
# Do not fade on window open/close.
# no-fading-openclose = true
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
# no-fading-destroyed-argb = false
# }}} fading #
# transparency/opacity {{{ #
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
inactive-opacity = 1
# inactive-opacity = 0.9;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
# frame-opacity = 1.0
frame-opacity = 0.7;
# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
# menu-opacity = 1.0
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
# inactive-opacity-override = true
inactive-opacity-override = false;
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
# active-opacity = 1.0
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
# inactive-dim = 0.0
# Specify a list of conditions of windows that should always be considered focused.
# focus-exclude = []
focus-exclude = [ "class_g = 'Cairo-clock'" ];
# Use fixed inactive dim value, instead of adjusting according to window opacity.
# inactive-dim-fixed = 1.0
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
# Note we don't make any guarantee about possible conflicts with other
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
# example:
# opacity-rule = [ "80:class_g = 'URxvt'" ];
#
#
opacity-rule = ["90:class_g = 'kitty'"]
# opacity-rule = []
# }}} transparency/opacity #
# bg blurring {{{ #
# Parameters for background blurring, see the *BLUR* section for more information.
# blur-method =
# blur-size = 12
#
# blur-deviation = false
# Blur background of semi-transparent / ARGB windows.
# Bad in performance, with driver-dependent behavior.
# The name of the switch may change without prior notifications.
#
# blur-background = false
# Blur background of windows when the window frame is not opaque.
# Implies:
# blur-background
# Bad in performance, with driver-dependent behavior. The name may change.
#
# blur-background-frame = false
# Use fixed blur strength rather than adjusting according to window opacity.
# blur-background-fixed = false
# Specify the blur convolution kernel, with the following format:
# example:
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
#
# blur-kern = ''
blur-kern = "3x3box";
# Exclude conditions for background blur.
# blur-background-exclude = []
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c"
];
# }}} bg blurring #
# general {{{ #
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
# daemon = false
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
# `xrender` is the default one.
#
# backend = 'glx'
backend = "xrender";
# Enable/disable VSync.
# vsync = false
vsync = true
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
# dbus = false
# Try to detect WM windows (a non-override-redirect window with no
# child that has 'WM_STATE') and mark them as active.
#
# mark-wmwin-focused = false
mark-wmwin-focused = true;
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
# mark-ovredir-focused = false
mark-ovredir-focused = true;
# Try to detect windows with rounded corners and don't consider them
# shaped windows. The accuracy is not very high, unfortunately.
#
# detect-rounded-corners = false
detect-rounded-corners = true;
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
#
# detect-client-opacity = false
detect-client-opacity = true;
# Specify refresh rate of the screen. If not specified or 0, picom will
# try detecting this with X RandR extension.
#
# refresh-rate = 60
refresh-rate = 0
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
# boost performance. This should not be used with
# vsync drm/opengl/opengl-oml
# as they essentially does sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
#
# sw-opti =
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
# provided that the WM supports it.
#
# use-ewmh-active-win = false
# Unredirect all windows if a full-screen opaque window is detected,
# to maximize performance for full-screen windows. Known to cause flickering
# when redirecting/unredirecting windows.
#
# unredir-if-possible = false
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
# unredir-if-possible-delay = 0
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
# unredir-if-possible-exclude = []
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
# in the same group focused at the same time.
#
# detect-transient = false
detect-transient = true
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
# detect-transient is enabled, too.
#
# detect-client-leader = false
detect-client-leader = true
# Resize damaged region by a specific number of pixels.
# A positive value enlarges it while a negative one shrinks it.
# If the value is positive, those additional pixels will not be actually painted
# to screen, only used in blur calculation, and such. (Due to technical limitations,
# with use-damage, those pixels will still be incorrectly painted to screen.)
# Primarily used to fix the line corruption issues of blur,
# in which case you should use the blur radius value here
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
# with a 5x5 one you use `--resize-damage 2`, and so on).
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
#
# resize-damage = 1
# Specify a list of conditions of windows that should be painted with inverted color.
# Resource-hogging, and is not well tested.
#
# invert-color-include = []
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
# Might cause incorrect opacity when rendering transparent content (but never
# practically happened) and may not work with blur-background.
# My tests show a 15% performance boost. Recommended.
#
# glx-no-stencil = false
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes,
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
# Recommended if it works.
#
# glx-no-rebind-pixmap = false
# Disable the use of damage information.
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
# The opposing option is use-damage
#
# no-use-damage = false
use-damage = true
# Use X Sync fence to sync clients' draw calls, to make sure all draw
# calls are finished before picom starts drawing. Needed on nvidia-drivers
# with GLX backend for some users.
#
# xrender-sync-fence = false
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
# in the source tree for examples.
#
# glx-fshader-win = ''
# Force all windows to be painted with blending. Useful if you
# have a glx-fshader-win that could turn opaque pixels transparent.
#
# force-win-blend = false
# Do not use EWMH to detect fullscreen windows.
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
#
# no-ewmh-fullscreen = false
# Dimming bright windows so their brightness doesn't exceed this set value.
# Brightness of a window is estimated by averaging all pixels in the window,
# so this could comes with a performance hit.
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
#
# max-brightness = 1.0
# Make transparent windows clip other windows like non-transparent windows do,
# instead of blending on top of them.
#
# transparent-clipping = false
# Set the log level. Possible values are:
# "trace", "debug", "info", "warn", "error"
# in increasing level of importance. Case doesn't matter.
# If using the "TRACE" log level, it's better to log into a file
# using *--log-file*, since it can generate a huge stream of logs.
#
# log-level = "debug"
log-level = "warn";
# Set the log file.
# If *--log-file* is never specified, logs will be written to stderr.
# Otherwise, logs will to written to the given file, though some of the early
# logs might still be written to the stderr.
# When setting this option from the config file, it is recommended to use an absolute path.
#
# log-file = '/path/to/your/log/file'
# Show all X errors (for debugging)
# show-all-xerrors = false
# Write process ID to a file.
# write-pid-path = '/path/to/your/log/file'
# }}} general #
# window settings {{{ #
# Window type settings
#
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
# "tooltip", "notification", "combo", and "dnd".
#
# Following per window-type options are available: ::
#
# fade, shadow:::
# Controls window-type-specific shadow and fade settings.
#
# opacity:::
# Controls default opacity of the window type.
#
# focus:::
# Controls whether the window of this type is to be always considered focused.
# (By default, all window types except "normal" and "dialog" has this on.)
#
# full-shadow:::
# Controls whether shadow is drawn under the parts of the window that you
# normally won't be able to see. Useful when the window has parts of it
# transparent, and you want shadows in those areas.
#
# redir-ignore:::
# Controls whether this type of windows should cause screen to become
# redirected again after been unredirected. If you have unredir-if-possible
# set, and doesn't want certain window to cause unnecessary screen redirection,
# you can set this to `true`.
#
wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
dock = { shadow = false; }
dnd = { shadow = false; }
# popup_menu = { opacity = 1; }
popup_menu = { opacity = .95; }
# dropdown_menu = { opacity = 1; }
dropdown_menu = { opacity = .9; }
};
# }}} window settings #

View File

@@ -0,0 +1 @@

View File

@@ -166,9 +166,8 @@ set autoupdate_cumulative_size false
set show_cursor false set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random # One of: size, natural, basename, atime, ctime, mtime, type, random
# set sort natural set sort natural
# set sort extension # set sort extension
set sort mtime
# Additional sorting options # Additional sorting options
set sort_reverse false set sort_reverse false
@@ -273,7 +272,7 @@ map <C-c> abort
map <esc> change_mode normal map <esc> change_mode normal
map ~ set viewmode! map ~ set viewmode!
# map id display_file map i display_file
map ? help map ? help
map W display_log map W display_log
# map w taskview_open # map w taskview_open
@@ -332,7 +331,6 @@ map <PAGEDOWN> move down=1 pages=True
map <PAGEUP> move up=1 pages=True map <PAGEUP> move up=1 pages=True
map <CR> move right=1 map <CR> move right=1
map <DELETE> console delete map <DELETE> console delete
map i console touch%space
map <INSERT> console touch%space map <INSERT> console touch%space
# VIM-like # VIM-like
@@ -669,8 +667,8 @@ set preview_images true
# whole terminal window. # whole terminal window.
# set preview_images_method w3m # set preview_images_method w3m
# set preview_images_method ueberzug # set preview_images_method ueberzug
set preview_images_method kitty
# set preview_images_method urxvt # set preview_images_method urxvt
set preview_images_method kitty
# set preview_images_method urxvt-full # set preview_images_method urxvt-full
# ]]] image preview # # ]]] image preview #
@@ -703,9 +701,9 @@ map zr shell unzip %f && rm %f
map e. open_with evince f map e. open_with evince f
map v. shell $EDITOR %f map v. shell $EDITOR %f
source {{ .chezmoi.homeDir }}/.config/ranger/key_mappings.conf source {{ .chezmoi.homedir }}/.config/ranger/key_mappings.conf
map dg shell dragon-drop -a -x %p map dg shell dragon-drag-and-drop -a -x %p
# map <C-d> shell dragon-drag-and-drop -a -x %p # map <C-d> shell dragon-drag-and-drop -a -x %p
# a plugin that adds file glyphs / icon support to Ranger: # a plugin that adds file glyphs / icon support to Ranger:
# https://github.com/alexanderjeurissen/ranger_devicons # https://github.com/alexanderjeurissen/ranger_devicons

View File

@@ -0,0 +1,11 @@
audio.crossfade_v2=true
audio.sync_bitrate_enumeration=4
ui.track_notifications_enabled=false
ui.show_friend_feed=false
audio.play_bitrate_enumeration=4
app.player.volume=40000
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
app.browser.zoom-level=300
{{ else }}
app.browser.zoom-level=75
{{ end }}

View File

@@ -7,7 +7,7 @@
* *
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=33:antialias=true:autohint=true"; static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=33:antialias=true:autohint=true";
{{ else }} {{ else }}
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=20:antialias=true:autohint=true"; static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=20:antialias=true:autohint=true";

View File

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

View File

@@ -1,7 +1,7 @@
[user] [user]
email = kevin.mok@mail.utoronto.ca email = me@kevin-mok.com
name = Kevin Mok name = Kevin Mok
signingkey = 6DEED612B26C08E2 signingkey = 6E920656BBAD3E6C
[color] [color]
ui = auto ui = auto
[core] [core]
@@ -9,7 +9,6 @@
autocrlf = input autocrlf = input
[push] [push]
default = simple default = simple
autoSetupRemote = true
[merge] [merge]
tool = vimdiff tool = vimdiff
conflictstyle = diff3 conflictstyle = diff3
@@ -19,7 +18,7 @@
[diff] [diff]
tool = vimdiff tool = vimdiff
[commit] [commit]
gpgsign = false gpgsign = true
[alias] [alias]
a = add a = add
c = commit c = commit
@@ -33,10 +32,3 @@
s = status s = status
st = stash st = stash
r = remote r = remote
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true

View File

@@ -1,5 +1,3 @@
".*" ".*"
/* None, Up, Button4, 3 */ None, Up, Button4, 5
/* None, Down, Button5, 3 */ None, Down, Button5, 5
None, Up, Button4, 1
None, Down, Button5, 1

View File

@@ -1,3 +0,0 @@
{
"driver": "docker"
}

View File

@@ -42,7 +42,7 @@ include /usr/share/doc/task/rc/dark-16.theme
taskd.certificate=\/home\/kevin\/.task\/do.cert.pem taskd.certificate=\/home\/kevin\/.task\/do.cert.pem
taskd.key=\/home\/kevin\/.task\/do.key.pem taskd.key=\/home\/kevin\/.task\/do.key.pem
taskd.ca=\/home\/kevin\/.task\/ca.cert.pem taskd.ca=\/home\/kevin\/.task\/ca.cert.pem
taskd.server=taskd.khkm.gq:53589 taskd.server=taskd.khkm.tk:53589
taskd.credentials=Hevin\/Kevin\/eb6225dc-80fb-4721-8b03-9114c6c4423d taskd.credentials=Hevin\/Kevin\/eb6225dc-80fb-4721-8b03-9114c6c4423d
# }}} server # # }}} server #
@@ -51,23 +51,15 @@ taskd.credentials=Hevin\/Kevin\/eb6225dc-80fb-4721-8b03-9114c6c4423d
urgency.due.coefficient=18 urgency.due.coefficient=18
urgency.user.project.codm.coefficient=2 urgency.user.project.codm.coefficient=2
urgency.user.project.crim.coefficient=1 urgency.user.project.crim.coefficient=5
urgency.user.project.fn.coefficient=5 urgency.user.project.mny.coefficient=7
urgency.user.project.mny.coefficient=10
urgency.user.project.ms.coefficient=3 urgency.user.project.ms.coefficient=3
urgency.user.project.pey.coefficient=10 urgency.user.project.pey.coefficient=7
urgency.user.project.pogo.coefficient=0 urgency.user.project.sch.coefficient=10
urgency.user.project.sch.coefficient=7
urgency.uda.priority.H.coefficient=10 urgency.uda.priority.H.coefficient=10
urgency.uda.priority.M.coefficient=4
urgency.uda.priority.L.coefficient=-7 urgency.uda.priority.L.coefficient=-7
urgency.uda.priority..coefficient=1 urgency.uda.priority..coefficient=1
urgency.user.tag.helm.coefficient=5 urgency.user.tag.nx.coefficient=15
urgency.user.tag.jira.coefficient=5
# urgency.user.tag.nx.coefficient=15
urgency.user.tag.nexus.coefficient=3
report.ready.sort=urgency-
# }}} urgency # # }}} urgency #
@@ -76,16 +68,13 @@ report.ready.sort=urgency-
# context.home=project.not:ieas project.not:out project.not:sch tag.not:amn # context.home=project.not:ieas project.not:out project.not:sch tag.not:amn
context.home=project.not:ieas project.not:out context.home=project.not:ieas project.not:out
context.ieas=project:ieas context.ieas=project:ieas
context.not-pey=project.not:pey project.not:sch
context.out=project:out context.out=project:out
context.mny=project:mny
context.pey=project:pey
context.sch=project:sch context.sch=project:sch
# context=home context=home
# context=out # context=out
context=sch # context=sch
# context=mny
# context=pey
# context=not-pey
# }}} context # # }}} context #
report.ready.sort=urgency-

View File

@@ -19,7 +19,6 @@ set linebreak
set linespace=5 set linespace=5
set mouse=a set mouse=a
" set mouse=c " set mouse=c
set nofixendofline
" set noswapfile " set noswapfile
set relativenumber set relativenumber
set shiftwidth=4 set shiftwidth=4
@@ -27,8 +26,8 @@ set smartcase
set tabstop=4 set tabstop=4
" set t_Co=256 " set t_Co=256
" set termguicolors " set termguicolors
set timeoutlen=350 " set timeoutlen=350
" set timeoutlen=200 set timeoutlen=200
" set tw=75 " set tw=75
" set tw=70 " set tw=70
set tw=60 set tw=60
@@ -59,23 +58,21 @@ autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif
autocmd BufNewFile,BufRead .* set syntax=sh autocmd BufNewFile,BufRead .* set syntax=sh
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
autocmd FileType *css,gitcommit,haskell,htmldjango,html,graphql,javascript,javascriptreact,json,lisp,markdown, autocmd FileType *css,gitcommit,haskell,htmldjango,html,javascript,json,lisp,markdown,
\racket,tex,text,yaml set tabstop=2 shiftwidth=2 \racket,tex,text,yaml set tabstop=2 shiftwidth=2
" autocmd BufNewFile,BufRead *.md set filetype=markdown " autocmd BufNewFile,BufRead *.md set filetype=markdown
" autocmd Filetype markdown set textwidth=0 " autocmd Filetype markdown set textwidth=0
" autocmd Filetype html set foldmarker=0 " autocmd Filetype html set foldmarker=0
autocmd BufNewFile,BufRead *.gd set expandtab! autocmd BufNewFile,BufRead *.gd set expandtab!
autocmd Filetype go set noexpandtab sw=4 autocmd Filetype go set expandtab! sw=4
" autocmd FileType go,html,java,javascript,python,lua set fdm=indent autocmd FileType html,javascript,python,lua set fdm=indent
" autocmd FileType go,html,java,javascript,javascriptreact,Jenkinsfile,python,lua set fdm=indent autocmd Filetype Jenkinsfile,taskdata set tw=0
autocmd FileType go,html,java,Jenkinsfile,python,lua set fdm=indent
" autocmd FileType html,javascript,Jenkinsfile,python,lua set fdm=indent
autocmd BufNewFile,BufRead *.gql setfiletype graphql
autocmd Filetype markdown let g:AutoPairs = {'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''", "*":"*"} autocmd Filetype markdown let g:AutoPairs = {'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''", "*":"*"}
" autocmd Filetype markdown map <F8> :LivedownToggle<CR> " autocmd Filetype markdown map <F8> :LivedownToggle<CR>
autocmd Filetype markdown let g:AutoPairs={'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''","*":"*"}
autocmd Filetype markdown map <F8> :InstantMarkdownPreview<CR> autocmd Filetype markdown map <F8> :InstantMarkdownPreview<CR>
autocmd Filetype markdown map <F9> :InstantMarkdownStop<CR>: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 < <Esc><<A
autocmd Filetype markdown inoremap << < autocmd Filetype markdown inoremap << <
autocmd Filetype markdown inoremap > <Esc>>>A autocmd Filetype markdown inoremap > <Esc>>>A
@@ -94,7 +91,6 @@ autocmd Filetype markdown inoremap >> >
" ]]] format options " " ]]] format options "
" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw " 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 markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw
autocmd Filetype groovy,Jenkinsfile,taskdata set tw=0
autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR> autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR>
autocmd Filetype json set foldmethod=marker autocmd Filetype json set foldmethod=marker
autocmd Filetype racket set commentstring=;%s; autocmd Filetype racket set commentstring=;%s;
@@ -150,10 +146,10 @@ Plug 'vim-scripts/L9'
" find files from within Vim " find files from within Vim
" Plug 'vim-scripts/FuzzyFinder' " Plug 'vim-scripts/FuzzyFinder'
" {{ if not .gui }} {{ if not .gui }}
" Gotham color scheme " Gotham color scheme
Plug 'whatyouhide/vim-gotham' Plug 'whatyouhide/vim-gotham'
" {{ end }} {{ end }}
" " collection of Vim color schemes " " collection of Vim color schemes
" Plug 'flazz/vim-colorschemes' " Plug 'flazz/vim-colorschemes'
@@ -175,31 +171,25 @@ Plug 'lervag/vimtex'
" au BufWritePost *.tex silent call Tex_RunLaTeX() " au BufWritePost *.tex silent call Tex_RunLaTeX()
au BufWritePost *.tex silent !pkill -USR1 xdvi.bin au BufWritePost *.tex silent !pkill -USR1 xdvi.bin
let g:Tex_MultipleCompileFormats = 'dvi,pdf' let g:Tex_MultipleCompileFormats = 'dvi,pdf'
" let g:vimtex_view_general_viewer = 'evince' let g:vimtex_view_general_viewer = 'evince'
let g:vimtex_view_general_viewer = 'zathura' let g:vimtex_quickfix_latexlog = {
" let g:vimtex_quickfix_latexlog = { \ 'overfull' : 0,
" \ 'overfull' : 0, \ 'underfull' : 0,
" \ 'underfull' : 0, \ 'global' : 0,
" \ 'global' : 0, \ 'packages' : {
" \ 'packages' : { \ 'biblatex' : 0,
" \ 'biblatex' : 0, \ 'gensymb' : 0,
" \ 'gensymb' : 0, \ },
" \ }, \ 'references' : 0,
" \ 'references' : 0, \ 'unused' : 0,
" \ 'unused' : 0, \}
" \}
let g:vimtex_quickfix_ignore_filters = [
\'Overfull',
\]
let g:vimtex_quickfix_autoclose_after_keystrokes = 5 let g:vimtex_quickfix_autoclose_after_keystrokes = 5
let g:vimtex_compiler_latexmk = { " let g:vimtex_compiler_latexmk = {
\ 'continuous' : 1,
\}
" \ 'continuous' : 0, " \ 'continuous' : 0,
" \}
{{ if not (eq .chezmoi.username "root") }} {{ if not (eq .chezmoi.username "root") }}
" auto-completion for various languages " auto-completion for various languages
" arc
Plug 'Valloric/YouCompleteMe' Plug 'Valloric/YouCompleteMe'
let g:ycm_filetype_blacklist = { let g:ycm_filetype_blacklist = {
\ 'tagbar': 1, \ 'tagbar': 1,
@@ -254,17 +244,12 @@ Plug 'vim-airline/vim-airline'
let g:airline_section_c = '%F' let g:airline_section_c = '%F'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let g:airline_theme='supernova'
" continue Markdown lists when started " continue Markdown lists when started
" arc
Plug 'dkarter/bullets.vim' Plug 'dkarter/bullets.vim'
" coordinate Vim color scheme with terminal color scheme " coordinate Vim color scheme with terminal color scheme
Plug 'dylanaraps/wal.vim' Plug 'dylanaraps/wal.vim'
Plug 'AlphaTechnolog/pywal.nvim', { 'as': 'pywal' }
" Plug 'morhetz/gruvbox'
Plug 'bluz71/vim-nightfly-colors', { 'as': 'nightfly' }
" repeat plugin commands " repeat plugin commands
Plug 'tpope/vim-repeat' Plug 'tpope/vim-repeat'
@@ -285,13 +270,9 @@ Plug 'terryma/vim-multiple-cursors'
let g:multi_cursor_exit_from_insert_mode=0 let g:multi_cursor_exit_from_insert_mode=0
Plug 'dag/vim-fish' Plug 'dag/vim-fish'
" live preview Markdown" " live preview Markdown"
" Plug 'shime/vim-livedown'
Plug 'suan/vim-instant-markdown', {'for': 'markdown'} Plug 'suan/vim-instant-markdown', {'for': 'markdown'}
let g:instant_markdown_autostart = 0 let g:instant_markdown_autostart = 0
let g:instant_markdown_port = 8888
" Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
" let g:mkdp_auto_start = 1
" let g:mkdp_browser = 'firefox'
" let g:mkdp_echo_preview_url = 1
" git helper " git helper
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
" auto reload file " auto reload file
@@ -344,24 +325,11 @@ Plug 'junegunn/vim-easy-align'
nmap ga <Plug>(EasyAlign) nmap ga <Plug>(EasyAlign)
Plug 'wlangstroth/vim-racket' Plug 'wlangstroth/vim-racket'
Plug 'neovimhaskell/haskell-vim' Plug 'neovimhaskell/haskell-vim'
" Plug 'masukomi/vim-markdown-folding' Plug 'masukomi/vim-markdown-folding'
Plug 'mikeboiko/vim-markdown-folding'
autocmd FileType markdown set foldexpr=NestedMarkdownFolds() autocmd FileType markdown set foldexpr=NestedMarkdownFolds()
Plug 'cespare/vim-toml' Plug 'cespare/vim-toml'
Plug 'dpelle/vim-LanguageTool' Plug 'dpelle/vim-LanguageTool'
" increment dates with C-a
Plug 'tpope/vim-speeddating'
Plug 'martinda/Jenkinsfile-vim-syntax' Plug 'martinda/Jenkinsfile-vim-syntax'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
let g:go_fmt_command = ""
Plug 'buoto/gotests-vim'
Plug 'tomlion/vim-solidity'
Plug 'jparise/vim-graphql'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'mlaursen/vim-react-snippets', { 'branch': 'main' }
Plug 'cristianoliveira/vim-react-html-snippets'
Plug 'jidn/vim-dbml'
" Plug 'FuDesign2008/emoji-snippets.vim'
" ]]] vim-plug " " ]]] vim-plug "
" Mappings [[[ " " Mappings [[[ "
@@ -369,11 +337,7 @@ Plug 'jidn/vim-dbml'
call plug#end() call plug#end()
{{ if .gui }} {{ if .gui }}
" autocmd vimenter * ++nested colorscheme gruvbox colorscheme wal
" colorscheme wal
colorscheme pywal
" colorscheme nightfly
" colorscheme gotham256
{{ else }} {{ else }}
colorscheme gotham256 colorscheme gotham256
{{ end }} {{ end }}
@@ -382,7 +346,6 @@ colorscheme gotham256
nnoremap <ScrollWheelUp> <C-U> nnoremap <ScrollWheelUp> <C-U>
nnoremap <ScrollWheelDown> <C-D> nnoremap <ScrollWheelDown> <C-D>
nnoremap Y yy
" visual select across lines by default " " visual select across lines by default "
nnoremap v <C-V> nnoremap v <C-V>
@@ -415,8 +378,7 @@ nnoremap <leader>dg ggdG
" delete entire line " delete entire line
nnoremap <leader>dl 0d$ nnoremap <leader>dl 0d$
" delete lines matching pattern " delete lines matching pattern
" nnoremap <leader>dls :g//d<left><left> nnoremap <leader>dls :g//d<left><left>
nnoremap <leader>dls q:ig//d<left><left>
" show docstring for cur word " show docstring for cur word
nnoremap <leader>do :YcmCompleter GetDoc<CR> nnoremap <leader>do :YcmCompleter GetDoc<CR>
" delete line into system clipboard " delete line into system clipboard
@@ -436,15 +398,11 @@ nnoremap <leader>fi :YcmCompleter FixIt<CR>
nnoremap <leader>ft :se ft?<CR> nnoremap <leader>ft :se ft?<CR>
" check todo's " check todo's
nnoremap <leader>ftd /TODO<CR> nnoremap <leader>ftd /TODO<CR>
" nnoremap <leader>g :YcmCompleter GoTo<CR> nnoremap <leader>g :YcmCompleter GoTo<CR>
nnoremap <leader>g :vs \| YcmCompleter GoTo<CR>
" nnoremap <leader>gb <C-O>
nnoremap <leader>gb :Git blame<CR>
" vimdiff split " vimdiff split
nnoremap <leader>gd :Gvdiff nnoremap <leader>gd :Gvdiff
nnoremap <leader>gdh :Gvdiff HEAD^ nnoremap <leader>gdh :Gvdiff HEAD^
nnoremap <leader>gdm :Gvdiff master<CR> nnoremap <leader>gdm :Gvdiff master<CR>
nnoremap <leader>gdo :Gvdiff orig/master<CR>
" toggle search highlighting " toggle search highlighting
nnoremap <leader>h :set hlsearch! hlsearch?<CR> nnoremap <leader>h :set hlsearch! hlsearch?<CR>
" help " help
@@ -452,13 +410,9 @@ nnoremap <leader>he :vert help
nnoremap <leader>ht :set tabstop=2 shiftwidth=2 expandtab<CR> nnoremap <leader>ht :set tabstop=2 shiftwidth=2 expandtab<CR>
nnoremap <leader>vhe :vert help nnoremap <leader>vhe :vert help
" don't add space when joining lines " " don't add space when joining lines "
" nnoremap <leader>j gJ nnoremap <leader>j gJ
" jump forward
nnoremap <leader>j <C-I>
" join all paragraphs into single line " " join all paragraphs into single line "
nnoremap <leader>jl :set tw=9999999<CR>gggqG nnoremap <leader>jl :set tw=9999999<CR>gggqG
" jump back
nnoremap <leader>k <C-O>
" format current line " format current line
nnoremap <leader>l Vgq nnoremap <leader>l Vgq
" format this and next line " format this and next line
@@ -498,7 +452,6 @@ vnoremap <leader>r q:is///g<ESC>3ha
nnoremap <leader>ra q:i%s///g<ESC>2F/i nnoremap <leader>ra q:i%s///g<ESC>2F/i
" remove italics tags " remove italics tags
nnoremap <leader>rmi :%s/<\/\?i>//g<CR> nnoremap <leader>rmi :%s/<\/\?i>//g<CR>
nnoremap <leader>rn :YcmCompleter RefactorRename
nnoremap <leader>rs :res nnoremap <leader>rs :res
" reload vim config " reload vim config
nnoremap <leader>rv :source $MYVIMRC<CR> nnoremap <leader>rv :source $MYVIMRC<CR>
@@ -577,14 +530,9 @@ let maplocalleader="\\"
" tex [[[ " " tex [[[ "
autocmd Filetype tex noremap i$ :<C-u>normal! T$vt$<CR>
autocmd Filetype tex noremap i$ :normal vi$<CR>
autocmd Filetype tex xnoremap a$ :<C-u> normal!F$vf$<CR>
autocmd Filetype tex onoremap a$ :normal va$<CR>
autocmd Filetype tex inoremap <localleader>bt \bowtie autocmd Filetype tex inoremap <localleader>bt \bowtie
autocmd Filetype tex inoremap <localleader>c \checkmark autocmd Filetype tex inoremap <localleader>c \checkmark
autocmd Filetype tex inoremap <localleader>d \div autocmd Filetype tex inoremap <localleader>d \delta
autocmd Filetype tex inoremap <localleader>D \Delta autocmd Filetype tex inoremap <localleader>D \Delta
autocmd Filetype tex inoremap <localleader>e \exists autocmd Filetype tex inoremap <localleader>e \exists
autocmd Filetype tex inoremap <localleader>ep \epsilon autocmd Filetype tex inoremap <localleader>ep \epsilon
@@ -595,7 +543,6 @@ autocmd Filetype tex inoremap <localleader>la \leftarrow
autocmd Filetype tex inoremap <localleader>le \leq autocmd Filetype tex inoremap <localleader>le \leq
autocmd Filetype tex inoremap <localleader>ln \log n autocmd Filetype tex inoremap <localleader>ln \log n
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
autocmd Filetype tex inoremap <localleader>m \mu
" autocmd Filetype tex inoremap <localleader>n \neg " autocmd Filetype tex inoremap <localleader>n \neg
autocmd Filetype tex inoremap <localleader>n \neq autocmd Filetype tex inoremap <localleader>n \neq
autocmd Filetype tex inoremap <localleader>N \mathbb{N} autocmd Filetype tex inoremap <localleader>N \mathbb{N}
@@ -604,11 +551,10 @@ autocmd Filetype tex inoremap <localleader>ph [,phantom]
autocmd Filetype tex inoremap <localleader>q \qquad autocmd Filetype tex inoremap <localleader>q \qquad
autocmd Filetype tex inoremap <localleader>r \rightarrow autocmd Filetype tex inoremap <localleader>r \rightarrow
autocmd Filetype tex inoremap <localleader>R \Rightarrow autocmd Filetype tex inoremap <localleader>R \Rightarrow
" autocmd Filetype tex inoremap <localleader>s \subset autocmd Filetype tex inoremap <localleader>s \subset
autocmd Filetype tex inoremap <localleader>s \text{s}
autocmd Filetype tex inoremap <localleader>st such that autocmd Filetype tex inoremap <localleader>st such that
autocmd Filetype tex inoremap <localleader>S \Sigma autocmd Filetype tex inoremap <localleader>S \Sigma
autocmd Filetype tex inoremap <localleader>t \times autocmd Filetype tex inoremap <localleader>t \times
" autocmd Filetype tex inoremap <localleader>T $T$ " autocmd Filetype tex inoremap <localleader>T $T$
autocmd Filetype tex inoremap <localleader>T \Theta autocmd Filetype tex inoremap <localleader>T \Theta
" replace bars/underscores in URL " replace bars/underscores in URL
@@ -638,28 +584,14 @@ autocmd Filetype fish inoremap <localleader>2 $argv[2]
autocmd Filetype javascript inoremap <localleader>x process.exit() autocmd Filetype javascript inoremap <localleader>x process.exit()
autocmd Filetype markdown inoremap <localleader>c - [ ] autocmd Filetype markdown inoremap <localleader>c - [ ]
autocmd Filetype markdown nnoremap <localleader>e 0f[lr<Space>
autocmd Filetype markdown inoremap <localleader>t TODO:
autocmd Filetype markdown vnoremap <localleader>r q:is/\[x/[ /g<Esc><CR>:set nohlsearch<CR>
autocmd Filetype markdown vnoremap <localleader>x q:is/\[ /[x/g<Esc><CR>:set nohlsearch<CR>
autocmd Filetype markdown nnoremap <localleader>x 0f[lrx autocmd Filetype markdown nnoremap <localleader>x 0f[lrx
" nnoremap <localleader>x 0f[lrx " nnoremap <localleader>x 0f[lrx
autocmd Filetype go nnoremap <localleader>f :GoTestFunc<CR>
autocmd Filetype go nnoremap <localleader>l :GoLint<CR>
autocmd Filetype go nnoremap <localleader>m :GoTests<CR>
autocmd Filetype go nnoremap <localleader>r yawq:iGoRename <Esc>p
autocmd Filetype go nnoremap <localleader>t :GoTest<CR>
autocmd Filetype go-template inoremap <localleader>e {{"{{ else }}"}} autocmd Filetype go-template inoremap <localleader>e {{"{{ else }}"}}
autocmd Filetype go-template inoremap <localleader>hd {{"{{ .chezmoi.homeDir }}"}} autocmd Filetype go-template inoremap <localleader>hd {{"{{ .chezmoi.homedir }}"}}
autocmd Filetype go-template nnoremap <localleader>fp :%s/{{"{{{"}}/[[[/g<CR>:%s/}}}/]]]/g<CR> autocmd Filetype go-template nnoremap <localleader>fp :%s/{{"{{{"}}/[[[/g<CR>:%s/}}}/]]]/g<CR>
autocmd Filetype Jenkinsfile nnoremap <localleader>q :.s/"/'/g<CR>
autocmd Filetype Jenkinsfile vnoremap <localleader>q :s/"/'/g<CR>
autocmd Filetype python inoremap <localleader>bp breakpoint() autocmd Filetype python inoremap <localleader>bp breakpoint()
autocmd Filetype python inoremap <localleader>ip from pprint import pprint
autocmd Filetype python inoremap <localleader>s self. autocmd Filetype python inoremap <localleader>s self.
" ]]] Local Mappings " " ]]] Local Mappings "

View File

@@ -5,15 +5,14 @@ xrandr --setprovideroutputsource modesetting NVIDIA-0
{{ if .ext_kb }} {{ if .ext_kb }}
xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap
{{ else }} {{ else }}
# xmodmap ~/.Xmodmap-laptop xmodmap ~/.Xmodmap-laptop
xmodmap ~/tmp/.Xmodmap-laptop
{{ end }} {{ end }}
# redshift -O 2000 # redshift -O 2000
redshift -O 3000 redshift -O 3000
xset r rate $XSET_DELAY $XSET_RATE xset r rate $XSET_DELAY $XSET_RATE
# exec /home/kevin/Downloads/dwm/reload-dwm.sh # exec /home/kevin/Downloads/dwm/reload-dwm.sh
{{ if eq .chezmoi.hostname "nzxt" }} {{ if eq .chezmoi.fullHostname "nzxt" }}
dunst & dunst &
compton -b compton -b
imwheel & imwheel &
@@ -21,8 +20,7 @@ numlockx on &
start-pulseaudio-x11 & start-pulseaudio-x11 &
# wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")" && /home/kevin/st/make-st.sh & # wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")" && /home/kevin/st/make-st.sh &
# wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") & wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") &
wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") &
{{ end }} {{ end }}
exec i3 exec i3

View File

@@ -176,4 +176,4 @@ export GPG_TTY=$(tty)
export PASSWORD_STORE_CLIP_TIME=120 export PASSWORD_STORE_CLIP_TIME=120
#exec fish #exec fish
source /home/kevin/aliases/.key_aliases source ~/aliases/.key_aliases

View File

@@ -1 +0,0 @@
default-key 7FF24159B654D5A4A856FF9692A1EC2A40788528

View File

@@ -1,17 +1,12 @@
#!/bin/bash #!/bin/bash
# mount_dir="/run/media/kevin/backup-hd" mount_dir="/run/media/kevin/backup-hd"
mount_dir="/mnt/linux-files-2"
# Backup destination # Backup destination
case $1 in case $1 in
nzxt ) nzxt )
backup_dest="$mount_dir/nzxt" backup_dest="$mount_dir/nzxt"
# backup_dest="$mount_dir/backup-usb/nzxt" # backup_dest="$mount_dir/backup-usb/nzxt"
;; ;;
arch-2 )
backup_dest="$mount_dir/arch-2"
# backup_dest="$mount_dir/backup-usb/nzxt"
;;
x1 ) x1 )
backup_dest="$mount_dir/laptop" backup_dest="$mount_dir/laptop"
;; ;;

View File

@@ -9,16 +9,9 @@ case $1 in
devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo" devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
;; ;;
line-out ) line-out )
# devicename="alsa_output.pci-0000_00_14.2.analog-stereo" devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
devicename="alsa_output.pci-0000_00_1b.0.analog-stereo"
# devicename="alsa_output.pci-0000_00_14.2.iec958-stereo" # devicename="alsa_output.pci-0000_00_14.2.iec958-stereo"
;; ;;
hdmi )
devicename="alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1"
;;
speakers )
devicename="alsa_output.pci-0000_00_1b.0.analog-stereo"
;;
esac esac
echo "$devicename" echo "$devicename"

View File

@@ -1,14 +0,0 @@
# /bin/bash
# curl -s https://api.dexscreener.com/latest/dex/pairs/$1/$2| jq -r '.pairs | .[] | .priceUsd'
raw=$(curl -s "https://api.dexscreener.com/latest/dex/pairs/$1/$2")
price=$(echo "$raw" | jq -r ".pairs | .[] | .priceUsd")
# if (( $(echo "$price < .05" | bc -l) )); then
# printf "%0.4f\n" "$price" | cut -c 4-
# elif (( $(echo "$price < .1" | bc -l) )); then
# printf "%0.3f\n" "$price" | cut -c 4-
if (( $(echo "$price < .09" | bc -l) )); then
printf "%0.4f\n" "$price" | cut -c 4-
elif (( $(echo "$price < .1" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 4-
fi

View File

@@ -1,3 +0,0 @@
#!/bin/bash
cat ~/Documents/twitch-emotes.md | dmenu -i | sed -z 's/\n/ /' | xclip -selection clipboard

View File

@@ -1,20 +0,0 @@
# price=$(curl -s "https://api.kraken.com/0/public/Ticker?pair=$1" | jq -r ".result.$1.b[0]")
raw=$(curl -s "https://api.kraken.com/0/public/Ticker?pair=$1")
# echo $raw
if [ "$1" = "BTCUSDC" ]; then
price=$(echo "$raw" | jq -r ".result.XBTUSDC.b[0]")
else
price=$(echo "$raw" | jq -r ".result.$1.b[0]")
fi
# echo "$price"
if (( $(echo "$price < 1" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 3-
elif (( $(echo "$price < 10" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 3-
elif (( $(echo "$price < 1000" | bc -l) )); then
printf "%'0.1f\n" "$price" | sed 's/,//'
elif (( $(echo "$price < 10000" | bc -l) )); then
printf "%'0.0f\n" "$price" | sed 's/,//'
else
echo "$price" | cut -c -3
fi

View File

@@ -1,3 +0,0 @@
#!/bin/dash
sqlite3 ~/.cache/spotify/mercury.db 'VACUUM;' && spotify

View File

@@ -26,7 +26,7 @@ ranger_mappings="$HOME/.config/ranger/key_mappings.conf"
# ensure sourcing new file in orig. config file # ensure sourcing new file in orig. config file
ensure "source $aliases" "$bashrc" ensure "source $aliases" "$bashrc"
ensure "source $aliases" "$zshrc" ensure "source $aliases" "$zshrc"
ensure "source $fish_abbr" "$fish_config" > /dev/null # ensure "source $fish_abbr" "$fish_config"
ensure "source $ranger_mappings" "$ranger_config" ensure "source $ranger_mappings" "$ranger_config"
# key files # key files

View File

@@ -1,107 +0,0 @@
#!/usr/bin/env bash
set -e
LANG=C
LC_NUMERIC=C
SYMBOLS=("$@")
if ! $(type jq > /dev/null 2>&1); then
echo "'jq' is not in the PATH. (See: https://stedolan.github.io/jq/)"
exit 1
fi
if [ -z "$SYMBOLS" ]; then
echo "Usage: ./ticker.sh AAPL MSFT GOOG BTC-USD"
exit
fi
FIELDS=(symbol marketState regularMarketPrice regularMarketChange regularMarketChangePercent \
preMarketPrice preMarketChange preMarketChangePercent postMarketPrice postMarketChange postMarketChangePercent)
API_ENDPOINT="https://query1.finance.yahoo.com/v7/finance/quote?lang=en-US&region=US&corsDomain=finance.yahoo.com"
if [ -z "$NO_COLOR" ]; then
: "${COLOR_BOLD:=\e[1;37m}"
: "${COLOR_GREEN:=\e[32m}"
: "${COLOR_RED:=\e[31m}"
: "${COLOR_RESET:=\e[00m}"
fi
symbols=$(IFS=,; echo "${SYMBOLS[*]}")
fields=$(IFS=,; echo "${FIELDS[*]}")
results=$(curl --silent "$API_ENDPOINT&fields=$fields&symbols=$symbols" \
| jq '.quoteResponse .result')
query () {
echo $results | jq -r ".[] | select(.symbol == \"$1\") | .$2"
}
for symbol in $(IFS=' '; echo "${SYMBOLS[*]}" | tr '[:lower:]' '[:upper:]'); do
marketState="$(query $symbol 'marketState')"
if [ -z $marketState ]; then
printf 'No results for symbol "%s"\n' $symbol
continue
fi
preMarketChange="$(query $symbol 'preMarketChange')"
postMarketChange="$(query $symbol 'postMarketChange')"
if [ $marketState == "PRE" ] \
&& [ $preMarketChange != "0" ] \
&& [ $preMarketChange != "null" ]; then
nonRegularMarketSign='*'
price=$(query $symbol 'preMarketPrice')
diff=$preMarketChange
percent=$(query $symbol 'preMarketChangePercent')
elif [ $marketState != "REGULAR" ] \
&& [ $postMarketChange != "0" ] \
&& [ $postMarketChange != "null" ]; then
nonRegularMarketSign='*'
price=$(query $symbol 'postMarketPrice')
diff=$postMarketChange
percent=$(query $symbol 'postMarketChangePercent')
else
nonRegularMarketSign=''
price=$(query $symbol 'regularMarketPrice')
diff=$(query $symbol 'regularMarketChange')
percent=$(query $symbol 'regularMarketChangePercent')
fi
if [ "$diff" == "0" ]; then
color=
elif ( echo "$diff" | grep -q ^- ); then
color=$COLOR_RED
else
color=$COLOR_GREEN
fi
if [ "$price" != "null" ]; then
# printf "%-10s$COLOR_BOLD%8.2f$COLOR_RESET" $symbol $price
# printf "$color%10.2f%12s$COLOR_RESET" $diff $(printf "(%.2f%%)" $percent)
# printf " %s\n" "$nonRegularMarketSign"
# echo \$$price
# echo $price
hour=$(date +"%H")
if [[ "$symbol" == "USDCAD=X" ]]; then
printf "%0.4f\n" "$price"
elif [[ "$symbol" == "BTC-USD" ]]; then
# echo "$price" | cut -c 2-3
echo "$price" | cut -c -3
# echo "$price" | cut -c -4
elif [[ "$symbol" == "SOL-USD" || "$symbol" == "ETH-USD" ]]; then
echo "$price" | cut -c -4
# echo "$price" | cut -c -5
elif (( $(echo "$price > 10000" | bc -l) )); then
printf "%'0.0f\n" "$price" | cut -c 2-4
# elif (( $(echo "$price < 1" | bc -l) )); then
# printf "%0.3f\n" "$price"
elif (( $(echo "$price > 100" | bc -l) )); then
printf "%'0.0f\n" "$price" | cut -c 1-3
else
printf "%0.2f\n" "$price" | cut -c 3-
# printf "%0.2f\n" "$price"
fi
fi
done

View File

@@ -4,7 +4,7 @@
# xdotool key Left # xdotool key Left
# done # done
sleep .3 sleep .3
xdotool type 'https://twem.gq/.png' xdotool type 'https://twem.tk/.png'
i=0 i=0
while [ "$i" -ne 4 ] while [ "$i" -ne 4 ]
do do

View File

@@ -3,7 +3,7 @@
DELAY=200 DELAY=200
RATE=90 RATE=90
{{ if eq .chezmoi.hostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
xmodmap ~/.Xmodmap-laptop &> /dev/null xmodmap ~/.Xmodmap-laptop &> /dev/null
{{ else }} {{ else }}
xmodmap ~/.Xmodmap &> /dev/null xmodmap ~/.Xmodmap &> /dev/null

1
txt/.gitignore vendored
View File

@@ -1 +0,0 @@
nzxt-new-2.txt

View File

@@ -1,20 +0,0 @@
cava 0.10.2-2
cava-debug 0.10.2-2
cli-visualizer 1.8-10
cli-visualizer-debug 1.8-10
dragon-drop 1.2.0-2
dragon-drop-debug 1.2.0-2
python-exceptiongroup 1.2.1-2
qt5-webkit 5.212.0alpha4-22
qt5-webkit-debug 5.212.0alpha4-22
spotify 1:1.2.31.1205-2
systemd-numlockontty 0.1-14
timetrace-bin 0.14.3-6
timetrace-bin-debug 0.14.3-6
vidir 1.0.0-2
wkhtmltopdf 0.12.6-1
wkhtmltopdf-debug 0.12.6-1
yay 12.3.0-1
yay-debug 12.3.0-1
youtube-dl 2021.12.17-2
zoom 6.0.12-1

View File

@@ -1,164 +0,0 @@
alsa-utils 1.2.11-1
aws-cli 1.32.106-1
base 3-2
base-devel 1-1
bat 0.24.0-1
bc 1.07.1-4
bluez 5.76-1
bluez-utils 5.76-1
cava 0.10.2-2
chezmoi 2.47.1-1
chromium 122.0.6261.111-1
cli-visualizer 1.8-10
cmake 3.29.3-1
colordiff 1.0.21-1
discord 0.0.47-1
dmenu 5.2-1
docker 1:26.1.3-1
docker-compose 2.27.0-1
dragon-drop 1.2.0-2
dunst 1.10.0-1
efibootmgr 18-2
eog 45.3-1
evince 46.0-1
fd 9.0.0-1
feh 3.10.2-1
ffmpegthumbnailer 2.2.2-5
firefox 123.0.1-1
fish 3.7.0-1
fuse2 2.9.9-4
gimp 2.10.36-5
git 2.44.0-1
git-lfs 3.5.1-1
gnome-tweaks 45.1-1
gparted 1.6.0-1
grub 2:2.12-1
htop 3.3.0-1
hugo 0.124.0-1
i3-wm 4.23-1
i3blocks 1.5-4
imagemagick 7.1.1.29-2
imwheel 1.0.0pre12-6
jq 1.7.1-1
kitty 0.31.0-1
kompose 1.32.0-1
kubectl 1.30.1-1
libnotify 0.8.3-1
libreoffice-still 7.6.5-2
linux 6.7.9.arch1-1
linux-firmware 20240220.97b693d2-1
linux-lts 6.6.21-1
lsd 1.0.0-1
maim 5.7.4-7
minikube 1.32.0-1
mosh 1.4.0-6
mpv 1:0.37.0-2
nautilus 46.2-1
ncdu 2.3-1
neofetch 7.1.0-2
neovim 0.9.5-2
networkmanager 1.46.0-2
nodejs 21.7.1-1
noto-fonts-cjk 20230817-1
noto-fonts-emoji 1:2.042-1
npm 10.5.0-1
ntp 4.2.8.p17-1
nvidia-lts 1:550.54.14-4
obs-studio 30.0.2-4
openssh 9.7p1-1
os-prober 1.81-1
pass 1.7.4-5
passff-host 1:1.2.4-1
pcmanfm 1.3.2-1
picom 11.2-1
pulseaudio 17.0-3
pulseaudio-alsa 1:1.2.7.1-2
pyenv 1:2.3.36-1
python-pillow 10.2.0-2
python-pip 24.0-1
python-pynvim 0.5.0-2
qalculate-gtk 5.0.0-2
ranger 1.9.3-9
rclone 1.66.0-1
redshift 1.12-8
ripgrep 14.1.0-1
rsync 3.2.7-6
rxvt-unicode 9.31-4
scrot 1.10-1
spotify 1:1.2.31.1205-2
steam 1.0.0.78-2
sudo 1.9.15.p5-1
sxiv 26-1
sysstat 12.7.5-1
systemd-numlockontty 0.1-14
termdown 1.18.0-5
terraform 1.8.4-1
timetrace-bin 0.14.3-6
tldr 3.2.0-1
tmux 3.4-4
transmission-gtk 4.0.5-1
ttf-hack 3.003-6
ttf-hack-nerd 3.1.1-1
udisks2 2.10.1-4
vi 1:070224-6
vidir 1.0.0-2
vim 9.1.0151-2
vlc 3.0.20-7
wget 1.24.5-1
wkhtmltopdf 0.12.6-1
xclip 0.13-4
xdotool 3.20211022.1-1
xf86-video-vesa 2.6.0-1
xorg-bdftopcf 1.1.1-1
xorg-docs 1.7.2-2
xorg-font-util 1.4.1-1
xorg-fonts-100dpi 1.0.4-2
xorg-fonts-75dpi 1.0.4-1
xorg-fonts-encodings 1.1.0-1
xorg-iceauth 1.0.10-1
xorg-mkfontscale 1.2.3-1
xorg-server 21.1.11-1
xorg-server-common 21.1.11-1
xorg-server-devel 21.1.11-1
xorg-server-xephyr 21.1.11-1
xorg-server-xnest 21.1.11-1
xorg-server-xvfb 21.1.11-1
xorg-sessreg 1.1.3-1
xorg-setxkbmap 1.3.4-1
xorg-smproxy 1.0.7-1
xorg-x11perf 1.6.2-1
xorg-xbacklight 1.2.3-3
xorg-xcmsdb 1.0.6-1
xorg-xcursorgen 1.0.8-1
xorg-xdpyinfo 1.3.4-1
xorg-xdriinfo 1.0.7-1
xorg-xev 1.2.6-1
xorg-xgamma 1.0.7-1
xorg-xhost 1.0.9-1
xorg-xinit 1.4.2-1
xorg-xinput 1.6.4-1
xorg-xkbcomp 1.4.7-1
xorg-xkbevd 1.1.5-1
xorg-xkbutils 1.0.6-1
xorg-xkill 1.0.6-1
xorg-xlsatoms 1.1.4-1
xorg-xlsclients 1.1.5-1
xorg-xpr 1.2.0-1
xorg-xprop 1.2.7-1
xorg-xrandr 1.5.2-1
xorg-xrefresh 1.1.0-1
xorg-xset 1.2.5-1
xorg-xsetroot 1.1.3-1
xorg-xvinfo 1.1.5-1
xorg-xwayland 23.2.4-2
xorg-xwd 1.0.9-1
xorg-xwininfo 1.1.6-1
xorg-xwud 1.0.6-1
yad 13.0-2
yay 12.3.0-1
yay-debug 12.3.0-1
youtube-dl 2021.12.17-2
yt-dlp 2024.04.09-2
zathura 0.5.5-1
zathura-pdf-poppler 0.3.2-3
zoom 6.0.12-1

View File

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

View File

@@ -19,6 +19,3 @@
/tmp /tmp
/var/cache/pacman /var/cache/pacman
/var/lib/systemd/coredump /var/lib/systemd/coredump
/var/lib/dhcpcd/proc
/var/lib/docker/overlay2
/var/log/journal

File diff suppressed because it is too large Load Diff

View File

@@ -1,77 +1,62 @@
acestream-engine acestream-engine
acestream-player
antimicro antimicro
arno-iptables-firewall arno-iptables-firewall
aurvote aurvote
buku bear
chatterino2-appimage bukuserver
chromium-widevine chromium-widevine
colorpicker cliqz-bin
compton-tryone-git
curseradio-git
dragon-drag-and-drop-git dragon-drag-and-drop-git
ecryptfs-simple
ffcast ffcast
flashplugin
flashplugin-focusfix flashplugin-focusfix
git-quick-stats godot-bin
github-cli-bin
github-markdown-toc
go-lint-git
gotop-bin gotop-bin
i3-gaps habitctl-git
heroku-cli
htop-vim-git
i3-gaps-rounded
i3blocks-git i3blocks-git
insomnia-bin insomnia
instant-markdown-d
jmtpfs jmtpfs
k3s-bin
kind
libavutil-52 libavutil-52
linux-kevin
linux-kevin-headers
linux-nzxt linux-nzxt
linux-nzxt-headers linux-nzxt-headers
lua-cjson lua-cjson
mcomix mongodb-bin
md2pdf mongodb-tools-bin
mono-basic mono-basic
nerd-fonts-dejavu-complete nerd-fonts-dejavu-complete
nerd-fonts-hack nerd-fonts-hack
nomacs
nordvpn-bin
nvm
nx3-all nx3-all
openshift-source-to-image
pandoc
peaclock peaclock
pfetch-git
pgadmin4
pick-colour-picker
pipes.sh pipes.sh
protonvpn-cli
pycp pycp
python-discord
python-selenium
python-tinydb python-tinydb
qdirstat qdirstat
qt5-styleplugins
rancher-k3d-bin
robo3t-bin robo3t-bin
rot13 rxvt-unicode-patched
runelite
rxvt-unicode-pixbuf-patched
sc-im sc-im
shadowfox-updater
simple-mtpfs simple-mtpfs
slack-desktop-dark slack-desktop-dark
solidity
spotify spotify
spotify-now-git spotify-now-git
steamos-xpad-dkms steamos-xpad-dkms
surf
systemd-numlockontty systemd-numlockontty
taskopen
tasksh tasksh
texlive-core
texlive-local-adjustbox texlive-local-adjustbox
texlive-local-algorithmicx texlive-local-algorithmicx
texlive-local-algorithms texlive-local-algorithms
texlive-local-biblatex
texlive-local-biblatex-apa
texlive-local-capt-of texlive-local-capt-of
texlive-local-collectbox texlive-local-collectbox
texlive-local-comment
texlive-local-csquotes texlive-local-csquotes
texlive-local-elocalloc texlive-local-elocalloc
texlive-local-enumitem texlive-local-enumitem
@@ -82,13 +67,11 @@ texlive-local-forest
texlive-local-gfsdidot texlive-local-gfsdidot
texlive-local-ifmtarg texlive-local-ifmtarg
texlive-local-inlinedef texlive-local-inlinedef
texlive-local-logreq
texlive-local-multirow texlive-local-multirow
texlive-local-numprint texlive-local-numprint
texlive-local-pgfopts texlive-local-pgfopts
texlive-local-pgfplots texlive-local-pgfplots
texlive-local-preprint
texlive-local-quoting
texlive-local-relsize
texlive-local-siunitx texlive-local-siunitx
texlive-local-sourcesanspro texlive-local-sourcesanspro
texlive-local-tcolorbox texlive-local-tcolorbox
@@ -99,19 +82,13 @@ texlive-local-tkz-euclide
texlive-local-trimspaces texlive-local-trimspaces
texlive-local-was texlive-local-was
texlive-local-xifthen texlive-local-xifthen
timetrace texlive-localmanager-git
tor-browser trizen
ttf-times-new-roman
urxvt-resize-font-git urxvt-resize-font-git
vidir vidir
weechat-vimode-git weechat-vimode-git
wkhtmltopdf wego
wpa_actiond wpa_actiond
xf86-input-keyboard
xf86-input-mouse
xvkbd xvkbd
yay-bin yad
youtube-dl-git yay
youtube-viewer
zoom
zulip-desktop-git

Some files were not shown because too many files have changed in this diff Show More