Browse Source

update tmux_start, vimrc, gdbinit, and conky

master
dummy 6 years ago
parent
commit
5f1bcbf080
  1. 4
      bash_scripts/tmux_start.sh
  2. 2
      dot/.bashrc
  3. 8
      dot/conky.conf
  4. 8
      gdb/.gdbinit
  5. 6
      vim/.vimrc

4
bash_scripts/tmux_start.sh

@ -13,8 +13,8 @@ if [ -n "$TMUX_PANE" ]; then
else else
SESSION='default' SESSION='default'
tmux -2 -CC new -s $SESSION tmux -2 -CC new -s $SESSION
tmux -CC rename-window -t $SESSION powermate #tmux -CC rename-window -t $SESSION powermate
tmux send-keys -t $SESSION 'powermate_pactl.py' C-m #tmux send-keys -t $SESSION 'powermate_pactl.py' C-m
tmux -CC new-window -n dev -t $SESSION tmux -CC new-window -n dev -t $SESSION
tmux -CC new-window -t $SESSION tmux -CC new-window -t $SESSION
tmux attach -t $SESSION tmux attach -t $SESSION

2
dot/.bashrc

@ -36,7 +36,7 @@ PS1="[$user_name\u$reset@$host\h$reset:$directory\w$reset]$"
# Some shortcuts for different directory listings # Some shortcuts for different directory listings
alias ls='ls -hF --color=tty --group-directories-first' # classify files in colour alias ls='ls -hF --color=tty --group-directories-first' # classify files in colour
alias ll='ls -l' # long list alias ll='ls -l' # long list
alias grep='grep --color=auto' alias grep='grep --color=always'
alias tmux='tmux -2' alias tmux='tmux -2'
alias gdb='gdb -q' alias gdb='gdb -q'
alias tree='tree -C --dirsfirst' alias tree='tree -C --dirsfirst'

8
dot/conky.conf

@ -101,12 +101,12 @@ GMEM usage: ${nvidia memused} MB / ${nvidia memmax} MB
${voffset -10} ${voffset -10}
NETWORK ${hr 2} NETWORK ${hr 2}
${voffset -14} ${voffset -14}
ip: ${alignr}${addr enp34s0} ip: ${alignr}${addr enp4s0}
up: ${upspeed enp34s0}${goto 150}${upspeedgraph enp34s0 15,140 ADFF2F 32CD32 -t} up: ${upspeed enp4s0}${goto 150}${upspeedgraph enp4s0 15,140 ADFF2F 32CD32 -t}
${voffset -10} ${voffset -10}
down: ${downspeed enp34s0}${goto 150}${downspeedgraph enp34s0 15,140 FF0000 8B0000 -t} down: ${downspeed enp4s0}${goto 150}${downspeedgraph enp4s0 15,140 FF0000 8B0000 -t}
${voffset -5} ${voffset -5}
totals, up: ${totalup enp34s0} ${alignr}down:${totaldown enp34s0} totals, up: ${totalup enp4s0} ${alignr}down:${totaldown enp4s0}
# disks ---------------------------- # disks ----------------------------
${voffset -10} ${voffset -10}

8
gdb/.gdbinit

@ -1,10 +1,10 @@
python python
# c++ stl pretty printing # c++ stl pretty printing
import sys #import sys
sys.path.insert(0, '/home/doug/dev/test.projects/gdb_printers/python') #sys.path.insert(0, '/home/doug/dev/test.projects/gdb_printers/python')
from libstdcxx.v6.printers import register_libstdcxx_printers #from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None) #register_libstdcxx_printers (None)
# GDB dashboard - Modular visual interface for GDB in Python. # GDB dashboard - Modular visual interface for GDB in Python.

6
vim/.vimrc

@ -136,9 +136,11 @@ function RunMake()
endfunction endfunction
let g:asyncrun_timer = 250 let g:asyncrun_timer = 250
" jump to word under cursor in a preview window
noremap <F2> <Esc>:exe "ptjump " . expand("<cword>")<Esc>
" search for word under cursor in src/ directory " search for word under cursor in src/ directory
map <F3> ::AsyncRun grep -Rn <c-r><c-w> src/<cr> noremap <F3> ::AsyncRun grep -Rn <c-r><c-w> src/<cr>
map <F5> :call RunMake()<cr> noremap <F5> :call RunMake()<cr>
noremap <F6> :call QfToggle() <cr> noremap <F6> :call QfToggle() <cr>

Loading…
Cancel
Save