Browse Source

Update (laptop)

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
413ffb53db
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 4
      dot_Xresources.tmpl
  2. 6
      dot_config/i3/config.tmpl
  3. 2
      dot_vimrc.tmpl
  4. 4
      dot_xinitrc.tmpl
  5. 4
      key_aliases.tmpl
  6. 10
      key_dirs.tmpl
  7. 2
      private_dot_gnupg/gpg-agent-template.conf
  8. 2
      scripts/executable_backup
  9. 1
      txt/exclude-dirs-backup.txt.tmpl
  10. 6
      txt/x1-carbon-aur.txt
  11. 12
      txt/x1-carbon-pkgs.txt

4
dot_Xresources.tmpl

@ -1,8 +1,8 @@
/* font [[[ */ /* font [[[ */
{{ if eq .chezmoi.fullHostname "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=12
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
! 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=14
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5 URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=13.5

6
dot_config/i3/config.tmpl

@ -64,12 +64,13 @@ bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)" bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)"
bindsym Control+Mod4+w exec urxvt -e nvim /home/kevin/.config/watson/state.tmp bindsym Control+Mod4+w exec urxvt -e nvim /home/kevin/.config/watson/state.tmp
# bindsym Mod4+x exec $swex # bindsym Mod4+x exec $swex
bindsym Mod4+x exec xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
bindsym Mod4+z exec cliqz bindsym Mod4+z exec cliqz
{{ if .ext_kb }} {{ if .ext_kb }}
bindsym Mod4+x exec xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+Print --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Control+Print --release exec "scrot -u /tmp/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 $mod+p --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym $mod+p --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
bindsym Control+$mod+p --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Control+$mod+p --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"
{{ end }} {{ end }}
@ -325,7 +326,8 @@ assign [class="spotify"] $ws10
workspace $ws10 output $secondary workspace $ws10 output $secondary
set $hp 2 set $hp 2
# bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0 # bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0
bindsym Mod4+v workspace $ws10; exec urxvt -e cava
bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 1
bindsym Mod4+$mod+c workspace $ws10; exec urxvt -e cava
# bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp # bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify

2
dot_vimrc.tmpl

@ -333,7 +333,7 @@ vnoremap <leader>n q:anorm
nnoremap <leader>nw :set nowrap<CR> nnoremap <leader>nw :set nowrap<CR>
" check if in neovim " check if in neovim
nnoremap <leader>nv :echo has('nvim')<CR> nnoremap <leader>nv :echo has('nvim')<CR>
" open fold recursively
" recursively open fold
nnoremap <leader>o zO nnoremap <leader>o zO
" Plug commands " Plug commands
nnoremap <leader>p "*p nnoremap <leader>p "*p

4
dot_xinitrc.tmpl

@ -1,7 +1,11 @@
xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --setprovideroutputsource modesetting NVIDIA-0
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
# xrandr --auto # xrandr --auto
{{ if .ext_kb }}
xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap
{{ else }}
xmodmap ~/.Xmodmap-laptop
{{ end }}
redshift -O 2000 redshift -O 2000
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

4
key_aliases.tmpl

@ -103,6 +103,7 @@ X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
{{ if eq .chezmoi.fullHostname "x1-carbon" }} {{ if eq .chezmoi.fullHostname "x1-carbon" }}
xl "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE" xl "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
XL "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE" XL "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
bt "~/linux-config/dot_config/i3blocks/scripts/executable_battery"
{{ end }} {{ end }}
# ]]] power options # # ]]] power options #
@ -165,7 +166,8 @@ pipi "pip install"
spipi "sudo pip install" spipi "sudo pip install"
# internet # internet
pg "ping -c 3 -W 1 8.8.8.8"
pg "ping -c 2 -W 1 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"

10
key_dirs.tmpl

@ -37,8 +37,6 @@ wd ~/.config/watson
b1 ~/coding/mf-site/themes/base16 b1 ~/coding/mf-site/themes/base16
2d ~/coding/godot-demos/2d-plat 2d ~/coding/godot-demos/2d-plat
ad ~/coding/ada-mario ad ~/coding/ada-mario
ads ~/coding/ada-mario/scripts
adP ~/Pictures/ada-mario
ft ~/coding/face-tracker ft ~/coding/face-tracker
j ~/Documents/journal j ~/Documents/journal
lh ~/Documents/listening-history lh ~/Documents/listening-history
@ -54,6 +52,14 @@ tb ~/coding/trapbot/src/trapbot
wo ~/Documents/workout-logs/11 wo ~/Documents/workout-logs/11
{{ end }} {{ end }}
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
adb ~/coding/ada-mario/build
adm ~/coding/ada-mario/media
adp ~/coding/ada-mario-presentation
ads ~/coding/ada-mario/scripts
adP ~/Pictures/ada-mario
{{ end }}
# ]]] cdn # # ]]] cdn #
# sch [[[ # # sch [[[ #

2
private_dot_gnupg/gpg-agent-template.conf

@ -0,0 +1,2 @@
default-cache-ttl 86400
max-cache-ttl 86400

2
scripts/executable_backup

@ -26,6 +26,4 @@ case $2 in
full ) full )
sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full" sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full"
# sudo rsync -PraAX /home "$backup_dest/full" # sudo rsync -PraAX /home "$backup_dest/full"
# echo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full"
# echo rsync -PraAX /home "$backup_dest/full/home"
esac esac

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

@ -9,6 +9,7 @@
/home/kevin/.local/share/godot/templates /home/kevin/.local/share/godot/templates
/home/kevin/Android /home/kevin/Android
/home/kevin/coding/archived/opencv /home/kevin/coding/archived/opencv
/home/kevin/Downloads/build
/lost+found /lost+found
/mnt /mnt
/opt /opt

6
txt/x1-carbon-aur.txt

@ -1,6 +1,7 @@
bear bear
chezmoi chezmoi
discord discord
dragon-drag-and-drop-git
gdm3setup-utils gdm3setup-utils
godot godot
heroku-cli heroku-cli
@ -11,7 +12,9 @@ libc++abi
libc++experimental libc++experimental
mongodb-bin mongodb-bin
nerd-fonts-dejavu-complete nerd-fonts-dejavu-complete
pdftk-bin
qdirstat qdirstat
spotify
spotify-now-git spotify-now-git
texlive-local-algorithmicx texlive-local-algorithmicx
texlive-local-algorithms texlive-local-algorithms
@ -26,11 +29,14 @@ texlive-local-pgfplots
texlive-local-siunitx texlive-local-siunitx
texlive-local-tkz-base texlive-local-tkz-base
texlive-local-tkz-euclide texlive-local-tkz-euclide
texlive-local-was
texlive-local-xifthen texlive-local-xifthen
texlive-localmanager-git texlive-localmanager-git
trizen trizen
ttf-hack-powerline-git ttf-hack-powerline-git
vidir
watson watson
wego
wpa_actiond wpa_actiond
yad yad
yay yay

12
txt/x1-carbon-pkgs.txt

@ -13,6 +13,7 @@ cheese
chrome-gnome-shell chrome-gnome-shell
chromium chromium
cmake cmake
colordiff
compton compton
coreutils coreutils
cryptsetup cryptsetup
@ -21,6 +22,7 @@ dhcpcd
dialog dialog
diffutils diffutils
dmenu dmenu
dunst
e2fsprogs e2fsprogs
eog eog
epiphany epiphany
@ -38,9 +40,11 @@ fzf
gawk gawk
gcc gcc
gcc-libs gcc-libs
gdb
gdm gdm
gedit gedit
gettext gettext
gimp
git git
glibc glibc
gnome-backgrounds gnome-backgrounds
@ -119,6 +123,7 @@ man-db
man-pages man-pages
mdadm mdadm
mousetweaks mousetweaks
mpv
mutter mutter
nano nano
nautilus nautilus
@ -128,11 +133,14 @@ netctl
npm npm
ntfs-3g ntfs-3g
ntp ntp
numlockx
nvidia-settings
orca orca
pacman pacman
pacman-contrib pacman-contrib
pass pass
pciutils pciutils
peek
perl perl
pkgconf pkgconf
procps-ng procps-ng
@ -157,11 +165,14 @@ simple-scan
stow stow
sudo sudo
sushi sushi
sxiv
sysfsutils sysfsutils
sysstat
systemd-sysvcompat systemd-sysvcompat
tar tar
texinfo texinfo
texlive-core texlive-core
tldr
tor tor
totem totem
tracker tracker
@ -219,6 +230,7 @@ xorg-xwd
xorg-xwininfo xorg-xwininfo
xorg-xwud xorg-xwud
yelp yelp
youtube-dl
zathura zathura
zathura-pdf-poppler zathura-pdf-poppler
zsh zsh
Loading…
Cancel
Save