Browse Source

Vim man script

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
a4d40fcebf
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 3
      dot_config/fish/config.fish.tmpl
  2. 7
      dot_config/fish/functions/java-compile-run.fish
  3. 16
      dot_config/i3/config.tmpl
  4. 1
      dot_config/spotify/Users/polarbier-user/prefs.tmpl
  5. 3
      dot_xinitrc.tmpl
  6. 6
      key_aliases.tmpl
  7. 5
      key_dirs.tmpl
  8. 4
      scripts/executable_vim-man
  9. 0
      txt/exclude-dirs-backup-full.txt
  10. 2
      txt/exclude-dirs-backup.txt.tmpl

3
dot_config/fish/config.fish.tmpl

@ -109,6 +109,7 @@ abbr grc "grep-c"
abbr grh "grep-headers"
abbr rgh "rg-headers"
abbr jcp "java-compile-run Percolation"
abbr jcr "java-compile-run"
abbr jct "java-compile-test"
# ]]] school #

7
dot_config/fish/functions/java-compile-run.fish

@ -1,6 +1,5 @@
function java-compile-run
# javac -cp .:../algs4.jar $argv[1].java
# and java -cp .:../algs4.jar $argv[1]
javac $argv[1].java
and java $argv[1]
# javac -d out $argv[1].java
javac -d out *.java
and java -cp "$CLASSPATH:out" $argv[1]
end

16
dot_config/i3/config.tmpl

@ -6,9 +6,10 @@ exec compton
exec imwheel
exec numlockx on
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")
{{ 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'
# ]]] startup #
@ -16,8 +17,8 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
# applications [[[ #
set $mod Mod1
# set $browser "firefox"
set $browser "chromium"
set $browser "firefox"
# set $browser "chromium"
# set $term st
# set $term_alt urxvt
set $term urxvt
@ -28,7 +29,7 @@ set $sch_dir "$HOME/Documents/School"
# app shortcuts [[[ #
bindsym Control+Return exec $term
bindsym Control+Shift+Return exec $term -A1
bindsym Control+Shift+Return exec st -A1
bindsym Control+$mod+Return exec $term_alt
# bindsym Control+$mod+Return exec st
# PROTIP: You can also dynamically set dmenu's colors this way:
@ -44,6 +45,8 @@ bindsym Mod4+c exec $browser
bindsym Mod4+f exec firefox
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 $mod+m exec ~/scripts/vim-man
bindsym $mod+m exec urxvt -e ~/scripts/vim-man
bindsym Mod4+$mod+m exec pass -c uoft/markus
bindsym Mod4+n exec urxvt -e nvim
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail
@ -293,7 +296,8 @@ bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e
for_window [class="Face_detector"] floating enable
for_window [class="Face_detector"] move absolute position 0 0
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
set $ws6 "6 "
workspace $ws6 output $secondary

1
dot_config/spotify/Users/polarbier-user/prefs.tmpl

@ -3,6 +3,7 @@ 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 }}

3
dot_xinitrc.tmpl

@ -13,7 +13,8 @@ imwheel &
numlockx on &
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") &
{{ end }}
exec i3

6
key_aliases.tmpl

@ -146,7 +146,7 @@ yar "yay -Rns"
# sync
yaud "yay -Sy"
# sync and download
yaugd "yay -Syuw --answerclean=None --answerdiff=None --answeredit=None"
yadl "yay -Syuw --answerclean=None --answerdiff=None --answeredit=None"
# sync and update
yaug "yay -Syu --answerclean=None --answerdiff=None --answeredit=None"
# export packages
@ -475,7 +475,7 @@ gpsh "git push heroku"
# ]]] 309 #
jc "javac *.java"
j "java"
jc "javac -d out *.java"
jr "java -cp \"$CLASSPATH:out\""
# ]]] school #

5
key_dirs.tmpl

@ -55,6 +55,9 @@ wo ~/Documents/workout-logs/11
sc ~/school
lt ~/school/latex-notes
6 ~/school/263
al1 ~/school/algorithms/w1-union-find
# 309 [[[ #
0c ~/school/309-proj/css
@ -66,6 +69,4 @@ lt ~/school/latex-notes
# ]]] 309 #
al1 ~/school/algorithms/w1-union-find
# ]]] sch #

4
scripts/executable_vim-man

@ -0,0 +1,4 @@
#!/bin/bash
man_choice=$(apropos . | awk '{ print $1 }' | dmenu -i)
nvim -c ":Man $man_choice" -c "resize 100"

0
txt/exclude-dirs-backup-full.txt.tmpl → txt/exclude-dirs-backup-full.txt

2
txt/exclude-dirs-backup.txt.tmpl

@ -4,9 +4,7 @@
/home/kevin/.android
/home/kevin/.AndroidStudio3.3
/home/kevin/Android
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
/home/kevin/coding/opencv
{{ end }}
/lost+found
/mnt
/proc

Loading…
Cancel
Save