Browse Source

Resize font (URxvt)

Apply changes without resetting pywal colors.

Other:
- open current bg in ranger
- update Watson fish completion
- update NZXT packages
red-hat-laptop
Kevin Mok 5 years ago
parent
commit
a1b3fd43f9
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 88
      aliases/key_aliases.tmpl
  2. 34
      dot_Xresources.tmpl
  3. 34
      dot_config/fish/completions/watson.fish
  4. 2
      dot_config/fish/config.fish.tmpl
  5. 2
      dot_config/fish/functions/cd.fish.tmpl
  6. 2
      dot_config/fish/functions/refresh-config.fish
  7. 10
      dot_config/i3/config.tmpl
  8. 3
      dot_config/i3blocks/scripts/executable_volume
  9. 4
      dot_config/ranger/commands.py
  10. 2
      dot_config/ranger/rc.conf.tmpl
  11. 1
      dot_gitconfig
  12. 16
      dot_vimrc.tmpl
  13. 23
      txt/nzxt-aur.txt
  14. 46
      txt/nzxt-pkgs.txt

88
aliases/key_aliases.tmpl

@ -1,21 +1,31 @@
# vim: fdm=marker ft=go-template.sh syntax=sh # vim: fdm=marker ft=go-template.sh syntax=sh
# system [[[ # system [[[
# basic [[[ #
# clear screen # clear screen
c "printf '\033c'" c "printf '\033c'"
dc "cd ~/Downloads && printf '\033c'"
hst "history" hst "history"
## nf "printf '\033c' && neofetch | lolcat" ## nf "printf '\033c' && neofetch | lolcat"
nf "printf '\033c' && neofetch" nf "printf '\033c' && neofetch"
fi "fish" fi "fish"
# reload urxvt # reload urxvt
ru "xrdb ~/.Xresources"
ru "xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
dua "sudo du -h --apparent-size | sort -h"
# list file sizes in megabytes with depth 1 # list file sizes in megabytes with depth 1
duh "sudo du -d 1 -h --apparent-size | sort -hr"
dum "sudo du -d 1 -m --apparent-size | sort -hr"
duh "sudo du -d 1 -h --apparent-size | sort -h"
dum "sudo du -d 1 -m --apparent-size | sort -h"
m "man" m "man"
tld "tldr" tld "tldr"
nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
# ]]] basic #
# display [[[ #
# nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
{{ if eq .chezmoi.fullHostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
xr "xrandr" xr "xrandr"
xro "xrandr --output HDMI2 --off" xro "xrandr --output HDMI2 --off"
@ -24,6 +34,8 @@ xrm "xrandr --output HDMI2 --auto --same-as eDP1 --scale 1.33x1.33"
xrs "xrandr -s 0" xrs "xrandr -s 0"
{{ end }} {{ end }}
# ]]] display #
vgb "sudo nvim /etc/default/grub" vgb "sudo nvim /etc/default/grub"
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
@ -73,10 +85,9 @@ vdr "vidir --verbose"
# directory-related [[[ # # directory-related [[[ #
{{ if not (eq .linux_os "termux") }} {{ if not (eq .linux_os "termux") }}
# l "lsd --group-dirs first"
l "lsd"
la "lsd -A --group-dirs first"
ll "lsd -Al --group-dirs first --size short"
l "lsd -F --group-dirs first"
la "lsd -AF --group-dirs first"
ll "lsd -AlF --group-dirs first --size short"
{{ else }} {{ else }}
l "ls" l "ls"
la "ls -a" la "ls -a"
@ -125,7 +136,8 @@ bt "~/linux-config/dot_config/i3blocks/scripts/executable_battery"
# ]]] power options # # ]]] power options #
# sound
# sound [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }} {{ if eq .chezmoi.fullHostname "nzxt" }}
vlm "alsamixer -c 0" vlm "alsamixer -c 0"
vlh "alsamixer -c 2" vlh "alsamixer -c 2"
@ -133,6 +145,8 @@ vlh "alsamixer -c 2"
vlm "alsamixer -c 1" vlm "alsamixer -c 1"
{{ end }} {{ end }}
# ]]] sound #
# pkg management [[[ # # pkg management [[[ #
{{ if eq .linux_os "arch" }}#[[[ {{ if eq .linux_os "arch" }}#[[[
@ -191,21 +205,28 @@ xpk "pkg list-installed | awk -F/ '{print \$1}' > ~/{{ .chezmoi.os }}-config/txt
# ]]] pkg management # # ]]] pkg management #
# python [[[ #
py "python" py "python"
# pyt "printf '\033c' && pytest -vvs" # pyt "printf '\033c' && pytest -vvs"
pyt "clear && tmux clear-history && pytest -vvs" pyt "clear && tmux clear-history && pytest -vvs"
pyts "clear && tmux clear-history && pytest -vv" pyts "clear && tmux clear-history && pytest -vv"
pyu "python -m unittest" pyu "python -m unittest"
pipi "pip install"
pipi "pip install --user"
spipi "sudo pip install" spipi "sudo pip install"
# internet
# ]]] python #
# internet [[[ #
pg "ping -c 2 -W 1 8.8.8.8" pg "ping -c 2 -W 1 8.8.8.8"
pgc "ping 8.8.8.8" pgc "ping 8.8.8.8"
dh "sudo dhcpcd" dh "sudo dhcpcd"
kdh "sudo killall dhcpcd" kdh "sudo killall dhcpcd"
rdh "sudo killall dhcpcd && sudo dhcpcd" rdh "sudo killall dhcpcd && sudo dhcpcd"
# ]]] internet #
id "identify" id "identify"
# rz "source ~/{{ .chezmoi.os }}-config/aliases/zsh_aliases" # rz "source ~/{{ .chezmoi.os }}-config/aliases/zsh_aliases"
@ -222,6 +243,7 @@ chr "google-chrome"
clc "cloc ." clc "cloc ."
cv "cava" cv "cava"
dg "dragon-drag-and-drop -x" dg "dragon-drag-and-drop -x"
ffx "firefox"
fh "feh" fh "feh"
fi "fish" fi "fish"
gpd "gpg --decrypt" gpd "gpg --decrypt"
@ -239,25 +261,30 @@ mp "mpv --volume=50"
mra "man ranger" mra "man ranger"
# mt "minetest" # mt "minetest"
n "nvim" n "nvim"
ndu "ncdu"
p3 "python3" p3 "python3"
pdft "pdftotext" pdft "pdftotext"
pipes "pipes.sh -t 3" pipes "pipes.sh -t 3"
py "python" py "python"
qc "qalc ''"
qcg "qalculate-gtk"
r "ranger" r "ranger"
rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)"
# rgc "printf '\033c' && rg" # rgc "printf '\033c' && rg"
# rgc "printf '\033c' && rg" # rgc "printf '\033c' && rg"
rgc "clear && tmux clear-history && rg" rgc "clear && tmux clear-history && rg"
rx "redshift -x" rx "redshift -x"
sn "sudo nvim" sn "sudo nvim"
# sw "swex" # sw "swex"
t "tmux"
t "tmux"#[[[
ta "tmux a -t" ta "tmux a -t"
tal "tmux a" tal "tmux a"
tk "tmux kill-server"
tl "tmux ls" tl "tmux ls"
tn "tmux new -s" tn "tmux new -s"
#]]]
vmd "vimdiff" vmd "vimdiff"
wg "wego" wg "wego"
wp "grep wallpaper ~/.cache/wal/colors.sh"
ytd "youtube-dl" ytd "youtube-dl"
z "zathura --fork" z "zathura --fork"
@ -283,24 +310,41 @@ yu "echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard"
# watson [[[ # # watson [[[ #
w "watson" w "watson"
# start [[[ #
wa "watson start" wa "watson start"
wae "watson start && watson edit" wae "watson start && watson edit"
wad "watson add -f '' -t ''"
we "watson edit" we "watson edit"
wl "watson log --day"
wla "watson log --all --tag="
ww "watson log"
# wlm "watson log --project coding --tag mfs"
wr "watson report --day"
wra "watson report --all --tag="
wrw "watson report"
wre "watson restart" wre "watson restart"
wree "watson restart && watson edit" wree "watson restart && watson edit"
# ]]] start #
# stop [[[ #
ws "watson status && watson stop" ws "watson status && watson stop"
wse "watson stop && watson edit" wse "watson stop && watson edit"
wsc "watson cancel" wsc "watson cancel"
wsl "watson stop && watson log --day" wsl "watson stop && watson log --day"
wt "watson status" wt "watson status"
# ]]] stop #
# log/report [[[ #
wl "watson log --day"
wla "watson log --all --tag="
ww "watson log"
# wlm "watson log --project coding --tag mfs"
wr "watson report --day"
wra "watson report --all --tag="
wrw "watson report"
# ]]] log/report #
# ]]] watson # # ]]] watson #
# ]]] applications # # ]]] applications #
@ -562,8 +606,8 @@ mst "minetestserver --gameid minimal --worldname Test --terminal"
# basic # basic
# wlf "watson log --all --tag=final" # wlf "watson log --all --tag=final"
# wrf "watson report --all --tag=final" # wrf "watson report --all --tag=final"
ssc "ssh mokkar@teach.cs.utoronto.ca"
ssp "ssh -p 8022 192.168.0.11"
ssc "mosh mokkar@teach.cs.utoronto.ca"
ssp "mosh --ssh='ssh -p 8022' 192.168.0.11"
# alg course # alg course
jc "javac -d out *.java" jc "javac -d out *.java"

34
dot_Xresources.tmpl

@ -4,11 +4,21 @@
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=12 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12
{{ else }} {{ else }}
! 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=14
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5
{{ end }} {{ end }}
! URxvt.font: xft:Hack:size=18 ! URxvt.font: xft:Hack:size=18
/* resize [[[ */
URxvt.resize-font.step: 4
URxvt.keysym.C-Down: resize-font:smaller
URxvt.keysym.C-Up: resize-font:bigger
URxvt.keysym.C-equal: resize-font:reset
URxvt.keysym.C-question: resize-font:show
/* ]]] resize */
/* ]]] font */ /* ]]] font */
/* transparency [[[ */ /* transparency [[[ */
@ -34,26 +44,10 @@ URxvt.scrollBar: false
/* Clickable URLs [[[ */ /* Clickable URLs [[[ */
URxvt.perl-ext-common: default,matcher
URxvt.perl-ext-common: default,matcher,resize-font
URxvt.url-launcher: /usr/bin/xdg-open URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1 URxvt.matcher.button: 1
/* ]]] Clickable URLs */ /* ]]] Clickable URLs */
/* HiDPI [[[ */
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
Xft.dpi: 210
{{ else }}
Xft.dpi: 101
{{ end }}
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
/* ]]] HiDPI */
# vim: fdm=marker ft=xdefaults.go-template
! vim: fdm=marker ft=xdefaults.go-template

34
dot_config/fish/completions/watson.fish

@ -129,12 +129,33 @@ end
# ungrouped # ungrouped
complete -f -c watson -n '__fish_watson_needs_sub' -a cancel -d "Cancel the last start command" complete -f -c watson -n '__fish_watson_needs_sub' -a cancel -d "Cancel the last start command"
complete -f -c watson -n '__fish_watson_needs_sub' -a stop -d " Stop monitoring time for the current project"
complete -f -c watson -n '__fish_watson_needs_sub' -a frames -d "Display the list of all frame IDs" complete -f -c watson -n '__fish_watson_needs_sub' -a frames -d "Display the list of all frame IDs"
complete -f -c watson -n '__fish_watson_needs_sub' -a help -d "Display help information" complete -f -c watson -n '__fish_watson_needs_sub' -a help -d "Display help information"
complete -f -c watson -n '__fish_watson_needs_sub' -a projects -d "Display the list of projects" complete -f -c watson -n '__fish_watson_needs_sub' -a projects -d "Display the list of projects"
complete -f -c watson -n '__fish_watson_needs_sub' -a tags -d "Display the list of tags"
complete -f -c watson -n '__fish_watson_needs_sub' -a sync -d "sync your work with $url" complete -f -c watson -n '__fish_watson_needs_sub' -a sync -d "sync your work with $url"
complete -f -c watson -n '__fish_watson_needs_sub' -a tags -d "Display the list of tags"
# add
complete -f -c watson -n '__fish_watson_needs_sub' -a add -d "Add time for project with tag(s) that was not tracked live"
complete -f -c watson -n '__fish_watson_using_command add' -s f -l from -d "Start date for add"
complete -f -c watson -n '__fish_watson_has_from add' -s t -l to -d "end date for add"
complete -f -c watson -n '__fish_watson_using_command add' -s c -l confirm-new-project -d "Confirm addition of new project"
complete -f -c watson -n '__fish_watson_using_command add' -s b -l confirm-new-tag -d "Confirm addition of new tag"
complete -f -c watson -n '__fish_watson_needs_project add' -a "(__fish_watson_get_projects)"
complete -f -c watson -n '__fish_watson_has_project add' -a "+(__fish_watson_get_tags)"
# aggregate
complete -f -c watson -n '__fish_watson_needs_sub' -a aggregate -d "Display a report of the time spent on each project aggregated by day"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s c -l current -d "include the running frame"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s C -l no-current -d "exclude the running frame (default)"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s f -l from -d "Start date for aggregate"
complete -f -c watson -n '__fish_watson_has_from aggregate' -s t -l to -d "end date for aggregate"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s p -l project -d "restrict to project" -a "(__fish_watson_get_projects)"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s T -l tag -d "restrict to tag" -a "(__fish_watson_get_tags)"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s j -l json -d "output json"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s s -l csv -d "output csv"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s g -l pager -d "view through pager"
complete -f -c watson -n '__fish_watson_using_command aggregate' -s G -l no-pager -d "don't vew through pager"
# config # config
complete -f -c watson -n '__fish_watson_needs_sub' -a config -d "Get and set configuration options" complete -f -c watson -n '__fish_watson_needs_sub' -a config -d "Get and set configuration options"
@ -152,12 +173,14 @@ complete -f -c watson -n '__fish_watson_using_command log' -s f -l from -d "Star
complete -f -c watson -n '__fish_watson_has_from log' -s t -l to -d "end date for log" complete -f -c watson -n '__fish_watson_has_from log' -s t -l to -d "end date for log"
complete -f -c watson -n '__fish_watson_using_command log' -s y -l year -d "show the last year" complete -f -c watson -n '__fish_watson_using_command log' -s y -l year -d "show the last year"
complete -f -c watson -n '__fish_watson_using_command log' -s m -l month -d "show the last month" complete -f -c watson -n '__fish_watson_using_command log' -s m -l month -d "show the last month"
complete -f -c watson -n '__fish_watson_using_command log' -s l -l luna -d "show the last lunar cycle"
complete -f -c watson -n '__fish_watson_using_command log' -s w -l week -d "show week-to-day" complete -f -c watson -n '__fish_watson_using_command log' -s w -l week -d "show week-to-day"
complete -f -c watson -n '__fish_watson_using_command log' -s d -l day -d "show today" complete -f -c watson -n '__fish_watson_using_command log' -s d -l day -d "show today"
complete -f -c watson -n '__fish_watson_using_command log' -s a -l all -d "show all" complete -f -c watson -n '__fish_watson_using_command log' -s a -l all -d "show all"
complete -f -c watson -n '__fish_watson_using_command log' -s p -l project -d "restrict to project" -a "(__fish_watson_get_projects)" complete -f -c watson -n '__fish_watson_using_command log' -s p -l project -d "restrict to project" -a "(__fish_watson_get_projects)"
complete -f -c watson -n '__fish_watson_using_command log' -s T -l tag -d "restrict to tag" -a "(__fish_watson_get_tags)" complete -f -c watson -n '__fish_watson_using_command log' -s T -l tag -d "restrict to tag" -a "(__fish_watson_get_tags)"
complete -f -c watson -n '__fish_watson_using_command log' -s j -l json -d "output json" complete -f -c watson -n '__fish_watson_using_command log' -s j -l json -d "output json"
complete -f -c watson -n '__fish_watson_using_command log' -s s -l csv -d "output csv"
complete -f -c watson -n '__fish_watson_using_command log' -s g -l pager -d "view through pager" complete -f -c watson -n '__fish_watson_using_command log' -s g -l pager -d "view through pager"
complete -f -c watson -n '__fish_watson_using_command log' -s G -l no-pager -d "don't vew through pager" complete -f -c watson -n '__fish_watson_using_command log' -s G -l no-pager -d "don't vew through pager"
@ -182,15 +205,18 @@ complete -f -c watson -n '__fish_watson_using_command report' -s f -l from -d "S
complete -f -c watson -n '__fish_watson_has_from report' -s t -l to -d "end date for report" complete -f -c watson -n '__fish_watson_has_from report' -s t -l to -d "end date for report"
complete -f -c watson -n '__fish_watson_using_command report' -s y -l year -d "show the last year" complete -f -c watson -n '__fish_watson_using_command report' -s y -l year -d "show the last year"
complete -f -c watson -n '__fish_watson_using_command report' -s m -l month -d "show the last month" complete -f -c watson -n '__fish_watson_using_command report' -s m -l month -d "show the last month"
complete -f -c watson -n '__fish_watson_using_command report' -s l -l luna -d "show the last lunar cycle"
complete -f -c watson -n '__fish_watson_using_command report' -s w -l week -d "show week-to-day" complete -f -c watson -n '__fish_watson_using_command report' -s w -l week -d "show week-to-day"
complete -f -c watson -n '__fish_watson_using_command report' -s d -l day -d "show today" complete -f -c watson -n '__fish_watson_using_command report' -s d -l day -d "show today"
complete -f -c watson -n '__fish_watson_using_command report' -s a -l all -d "show all" complete -f -c watson -n '__fish_watson_using_command report' -s a -l all -d "show all"
complete -f -c watson -n '__fish_watson_using_command report' -s p -l project -d "restrict to project" -a "(__fish_watson_get_projects)" complete -f -c watson -n '__fish_watson_using_command report' -s p -l project -d "restrict to project" -a "(__fish_watson_get_projects)"
complete -f -c watson -n '__fish_watson_using_command report' -s T -l tag -d "restrict to tag" -a "(__fish_watson_get_tags)" complete -f -c watson -n '__fish_watson_using_command report' -s T -l tag -d "restrict to tag" -a "(__fish_watson_get_tags)"
complete -f -c watson -n '__fish_watson_using_command report' -s j -l json -d "output json" complete -f -c watson -n '__fish_watson_using_command report' -s j -l json -d "output json"
complete -f -c watson -n '__fish_watson_using_command report' -s s -l csv -d "output csv"
complete -f -c watson -n '__fish_watson_using_command report' -s g -l pager -d "view through pager" complete -f -c watson -n '__fish_watson_using_command report' -s g -l pager -d "view through pager"
complete -f -c watson -n '__fish_watson_using_command report' -s G -l no-pager -d "don't vew through pager" complete -f -c watson -n '__fish_watson_using_command report' -s G -l no-pager -d "don't vew through pager"
# restart
complete -f -c watson -n '__fish_watson_needs_sub' -a restart -d "Restart monitoring time for a stopped project" complete -f -c watson -n '__fish_watson_needs_sub' -a restart -d "Restart monitoring time for a stopped project"
complete -f -c watson -n '__fish_watson_using_command restart' -s s -l stop -d "stop running project" complete -f -c watson -n '__fish_watson_using_command restart' -s s -l stop -d "stop running project"
complete -f -c watson -n '__fish_watson_using_command restart' -s S -l no-stop -d "do not stop running project" complete -f -c watson -n '__fish_watson_using_command restart' -s S -l no-stop -d "do not stop running project"
@ -206,3 +232,7 @@ complete -f -c watson -n '__fish_watson_needs_sub' -a status -d "Display when th
complete -f -c watson -n '__fish_watson_using_command status' -s p -l project -d "only show project" complete -f -c watson -n '__fish_watson_using_command status' -s p -l project -d "only show project"
complete -f -c watson -n '__fish_watson_using_command status' -s t -l tags -d "only show tags" complete -f -c watson -n '__fish_watson_using_command status' -s t -l tags -d "only show tags"
complete -f -c watson -n '__fish_watson_using_command status' -s e -l elapsed -d "only show elapsed time" complete -f -c watson -n '__fish_watson_using_command status' -s e -l elapsed -d "only show elapsed time"
# stop
complete -f -c watson -n '__fish_watson_needs_sub' -a stop -d "Stop monitoring time for the current project"
complete -f -c watson -n '__fish_watson_using_command stop' -l at -d "Stop frame at this time (YYYY-MM-DDT)?HH:MM(:SS)?"

2
dot_config/fish/config.fish.tmpl

@ -76,7 +76,7 @@ end
abbr ab "abbr" abbr ab "abbr"
abbr abe "abbr -e" abbr abe "abbr -e"
abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
# abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
abbr xf "fish_config" abbr xf "fish_config"
abbr f. "cd .." abbr f. "cd .."
abbr f.. "cd ../.." abbr f.. "cd ../.."

2
dot_config/fish/functions/cd.fish.tmpl

@ -48,7 +48,7 @@ function cd --description "Change directory"
set -U last_dir $PWD set -U last_dir $PWD
{{ if (not (eq .linux_os "termux")) }} {{ if (not (eq .linux_os "termux")) }}
# lsd -a # lsd -a
lsd
lsd -F --group-dirs first
{{ else }} {{ else }}
# ls -a # ls -a
ls ls

2
dot_config/fish/functions/refresh-config.fish

@ -9,5 +9,5 @@ function refresh-config
source ~/.config/fish/key_abbr.fish > /dev/null source ~/.config/fish/key_abbr.fish > /dev/null
and echo 'Sourced shortcuts.' and echo 'Sourced shortcuts.'
and echo 'Reloading fish.' and echo 'Reloading fish.'
and fish
and exec fish
end end

10
dot_config/i3/config.tmpl

@ -13,7 +13,7 @@ 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/non-editing") exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
{{ end }} {{ end }}
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
# ]]] startup # # ]]] startup #
@ -42,6 +42,7 @@ bindsym Mod4+Return exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
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+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+f exec firefox bindsym Mod4+f exec firefox
bindsym Mod4+$mod+f exec echo 'Kevin@fosstodon.org' | xclip -selection clipboard bindsym Mod4+$mod+f exec echo 'Kevin@fosstodon.org' | xclip -selection clipboard
bindsym Mod4+h exec echo 'kevin.mok@live.ca' | xclip -selection clipboard bindsym Mod4+h exec echo 'kevin.mok@live.ca' | xclip -selection clipboard
@ -112,6 +113,7 @@ bindsym $mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service
# ]]] backlight # # ]]] backlight #
for_window [class="Peek"] floating enable for_window [class="Peek"] floating enable
for_window [title="Qalculate!"] floating enable
# ]]] applications # # ]]] applications #
@ -253,8 +255,8 @@ set $make_st_script "/home/kevin/st/make-st.sh"
bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
bindsym $mod+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script
bindsym $mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script
bindsym Control+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script
bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script
{{ if eq .chezmoi.fullHostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
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
{{ end }} {{ end }}
@ -402,7 +404,7 @@ bindsym $mod+Shift+5 move container to workspace $ws15; workspace $ws15
# reload config [[[ # # reload config [[[ #
bindsym $mod+Control+r exec i3-msg restart
bindsym Control+$mod+r exec i3-msg restart
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# bindsym $mod+Control+r reload # bindsym $mod+Control+r reload
bindsym $mod+Control+u exec xrdb ~/.Xresources bindsym $mod+Control+u exec xrdb ~/.Xresources

3
dot_config/i3blocks/scripts/executable_volume

@ -128,7 +128,8 @@ function set_default_playback_device_next {
case "$BLOCK_BUTTON" in case "$BLOCK_BUTTON" in
1) set_default_playback_device_next ;; 1) set_default_playback_device_next ;;
2) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY toggle ;;
# 2) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY toggle ;;
2) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY 15% ;;
3) set_default_playback_device_next -1 ;; 3) set_default_playback_device_next -1 ;;
4) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY $AUDIO_DELTA%+ ;; 4) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY $AUDIO_DELTA%+ ;;
5) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY $AUDIO_DELTA%- ;; 5) amixer -q -D $MIXER sset $SCONTROL $CAPABILITY $AUDIO_DELTA%- ;;

4
dot_config/ranger/commands.py

@ -75,11 +75,11 @@ class fzf_select(Command):
if self.quantifier: if self.quantifier:
# match only directories # match only directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \ command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m -e"
else: else:
# match files and directories # match files and directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \ command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
-o -print 2> /dev/null | sed 1d | cut -b3- | fzf +m -e"
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE) fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate() stdout, stderr = fzf.communicate()
if fzf.returncode == 0: if fzf.returncode == 0:

2
dot_config/ranger/rc.conf.tmpl

@ -277,7 +277,7 @@ map ? help
map W display_log map W display_log
# map w taskview_open # map w taskview_open
# map S shell $SHELL # map S shell $SHELL
map s shell fish -C "cd %d"
map s shell exec fish -C "cd %d"
map : console map : console
map ; console map ; console

1
dot_gitconfig

@ -6,6 +6,7 @@
ui = auto ui = auto
[core] [core]
editor = nvim editor = nvim
autocrlf = input
[push] [push]
default = simple default = simple
[merge] [merge]

16
dot_vimrc.tmpl

@ -6,6 +6,9 @@ set background=dark
" set colorcolumn=80 " set colorcolumn=80
set clipboard+=unnamedplus set clipboard+=unnamedplus
set diffopt=filler,context:3 set diffopt=filler,context:3
if has('nvim-0.3.2') || has("patch-8.1.0360")
set diffopt=filler,internal,algorithm:histogram,indent-heuristic
endif
set encoding=utf-8 set encoding=utf-8
set expandtab set expandtab
" set foldmethod=indent " set foldmethod=indent
@ -53,7 +56,7 @@ autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif
" commands for file types [[[ " " commands for file types [[[ "
autocmd BufNewFile,BufRead .* set syntax=sh autocmd BufNewFile,BufRead .* set syntax=sh
autocmd FileType *css,htmldjango,html,javascript,json,markdown,tex,text,yaml set tabstop=2 shiftwidth=2
autocmd FileType *css,htmldjango,html,javascript,json,lisp,markdown,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
@ -77,10 +80,10 @@ autocmd Filetype markdown inoremap >> >
" t = wrap lines " t = wrap lines
" v = break lines in insert " v = break lines in insert
" w = whitespace continues paragraph " w = whitespace continues paragraph
" ]]] format options " " ]]] format options "
" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw
autocmd FileType tex,text set spell spelllang=en_us formatoptions=acjMqtvw
" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw
autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw
" autocmd FileType tex,text set spell spelllang=en_us formatoptions=acjMqtvw
autocmd FileType python,lua set fdm=indent autocmd FileType python,lua set fdm=indent
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
@ -315,6 +318,8 @@ nnoremap v <C-V>
nnoremap Q @@ nnoremap Q @@
" toggle fold " " toggle fold "
nnoremap , za nnoremap , za
" jump to horizontal position for mark "
nnoremap ' `
" indenting " indenting
nnoremap > >> nnoremap > >>
@ -371,6 +376,8 @@ 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
" join all paragraphs into single line "
nnoremap <leader>jl :set tw=9999999<CR>gggqG
" format current line " format current line
nnoremap <leader>l Vgq nnoremap <leader>l Vgq
" format this and next line " format this and next line
@ -524,7 +531,6 @@ 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>cb - [ ] autocmd Filetype markdown inoremap <localleader>cb - [ ]
autocmd Filetype markdown nnoremap <localleader>j :set tw=9999999<CR>gggqG
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

23
txt/nzxt-aur.txt

@ -1,6 +1,7 @@
acestream-engine acestream-engine
acestream-player acestream-player
android-studio
antimicro
arno-iptables-firewall
aurvote aurvote
bear bear
chromium-widevine chromium-widevine
@ -14,8 +15,10 @@ flashplugin-focusfix
godot-bin godot-bin
heroku-cli heroku-cli
htop-vim-git htop-vim-git
i3-gaps-rounded
i3blocks-git i3blocks-git
insomnia insomnia
jmtpfs
libavutil-52 libavutil-52
linux-kevin linux-kevin
linux-kevin-headers linux-kevin-headers
@ -24,21 +27,22 @@ linux-nzxt-headers
lua-cjson lua-cjson
mongodb-bin mongodb-bin
mongodb-tools-bin mongodb-tools-bin
mono-basic
nerd-fonts-dejavu-complete nerd-fonts-dejavu-complete
nerd-fonts-hack nerd-fonts-hack
nx3-all nx3-all
peaclock peaclock
pipes.sh pipes.sh
pycp pycp
python-tinydb
qdirstat qdirstat
riot-desktop-git
robo3t-bin robo3t-bin
rxvt-unicode-pixbuf
rxvt-unicode-patched
sc-im sc-im
simple-mtpfs
slack-desktop-dark slack-desktop-dark
spotify spotify
spotify-now-git spotify-now-git
st
steamos-xpad-dkms steamos-xpad-dkms
systemd-numlockontty systemd-numlockontty
texlive-local-adjustbox texlive-local-adjustbox
@ -46,12 +50,16 @@ texlive-local-algorithmicx
texlive-local-algorithms texlive-local-algorithms
texlive-local-biblatex texlive-local-biblatex
texlive-local-biblatex-apa texlive-local-biblatex-apa
texlive-local-capt-of
texlive-local-collectbox texlive-local-collectbox
texlive-local-csquotes texlive-local-csquotes
texlive-local-elocalloc texlive-local-elocalloc
texlive-local-enumitem texlive-local-enumitem
texlive-local-environ texlive-local-environ
texlive-local-fontawesome
texlive-local-footmisc
texlive-local-forest texlive-local-forest
texlive-local-gfsdidot
texlive-local-ifmtarg texlive-local-ifmtarg
texlive-local-inlinedef texlive-local-inlinedef
texlive-local-logreq texlive-local-logreq
@ -60,7 +68,10 @@ texlive-local-numprint
texlive-local-pgfopts texlive-local-pgfopts
texlive-local-pgfplots texlive-local-pgfplots
texlive-local-siunitx texlive-local-siunitx
texlive-local-sourcesanspro
texlive-local-tcolorbox
texlive-local-tikz-qtree texlive-local-tikz-qtree
texlive-local-titlesec
texlive-local-tkz-base texlive-local-tkz-base
texlive-local-tkz-euclide texlive-local-tkz-euclide
texlive-local-trimspaces texlive-local-trimspaces
@ -68,11 +79,11 @@ texlive-local-was
texlive-local-xifthen texlive-local-xifthen
texlive-localmanager-git texlive-localmanager-git
trizen trizen
ttf-emojione
urxvt-resize-font-git
vidir vidir
watson
weechat-vimode-git weechat-vimode-git
wego wego
wpa_actiond wpa_actiond
xvkbd
yad yad
yay yay

46
txt/nzxt-pkgs.txt

@ -16,6 +16,7 @@ browserpass
bzip2 bzip2
calcurse calcurse
certbot certbot
chezmoi
chromium chromium
cloc cloc
cmake cmake
@ -25,14 +26,17 @@ coreutils
cowsay cowsay
cronie cronie
cryptsetup cryptsetup
dateutils
device-mapper device-mapper
dhcpcd dhcpcd
dialog dialog
diffutils diffutils
dmenu dmenu
doxygen
dunst dunst
e2fsprogs e2fsprogs
electrum electrum
emacs
encfs encfs
evince evince
fakeroot fakeroot
@ -63,20 +67,22 @@ hdf5
hexyl hexyl
highlight highlight
hugo hugo
i3-gaps
i3status i3status
imv imv
imwheel imwheel
inetutils inetutils
iniparser iniparser
inotify-tools
intellij-idea-community-edition intellij-idea-community-edition
iproute2 iproute2
iputils iputils
irrlicht
jfsutils jfsutils
jp2a jp2a
junit junit
less less
lib32-nvidia-utils lib32-nvidia-utils
libreoffice-still
licenses licenses
linux linux
linux-firmware linux-firmware
@ -92,6 +98,8 @@ man-db
man-pages man-pages
mdadm mdadm
meld meld
mono
mosh
mpv mpv
nano nano
ncdu ncdu
@ -109,6 +117,7 @@ nvidia-settings
openshot openshot
openssh openssh
os-prober os-prober
p7zip
pacman pacman
pacman-contrib pacman-contrib
pandoc pandoc
@ -126,13 +135,44 @@ postgresql
procps-ng procps-ng
psmisc psmisc
pulseaudio pulseaudio
pyside2
python-dbus python-dbus
python-numpy python-numpy
python-pip python-pip
python-pywal python-pywal
python-setuptools python-setuptools
qalculate-gtk
qemu qemu
qrencode qrencode
qt5-3d
qt5-charts
qt5-connectivity
qt5-datavis3d
qt5-doc
qt5-examples
qt5-gamepad
qt5-graphicaleffects
qt5-imageformats
qt5-lottie
qt5-networkauth
qt5-purchasing
qt5-quickcontrols
qt5-quickcontrols2
qt5-remoteobjects
qt5-script
qt5-scxml
qt5-serialbus
qt5-serialport
qt5-speech
qt5-tools
qt5-translations
qt5-virtualkeyboard
qt5-wayland
qt5-webengine
qt5-webglplugin
qt5-websockets
qt5-webview
qt5-xmlpatterns
ranger ranger
redshift redshift
reiserfsprogs reiserfsprogs
@ -146,7 +186,9 @@ shadow
shellcheck shellcheck
sl sl
smartmontools smartmontools
spatialindex
sqlitebrowser sqlitebrowser
sshfs
sshpass sshpass
steam steam
steam-native-runtime steam-native-runtime
@ -171,8 +213,10 @@ transmission-cli
transmission-gtk transmission-gtk
ttf-dejavu ttf-dejavu
ttf-font-awesome ttf-font-awesome
ttf-joypixels
ttf-ubuntu-font-family ttf-ubuntu-font-family
udisks2 udisks2
unrar
unzip unzip
usbutils usbutils
util-linux util-linux

Loading…
Cancel
Save