.hootoorc

0 Conversations

A few of my rc files.



.screenrc


startup_message off
vbell off
caption always "%{= kw}%-w%{= gW}%n %t%{-}%+w %-= %c %D %d-%M-%Y "
escape ^zz
defscrollback 5000
# bind F10 to Screen's quit command
bindkey -k k; quit
screen -t root 1 su
screen -t mail 2 alpine -z
screen -t file 3 mc -c -x
screen -t sdf 4 ssh tty.freeshell.org
screen -t top 7 htop
screen -t log 8 tail -f /var/log/messages
screen -t help 9 vi -R /home/USER/Documents/gnu-screen_help.txt
screen -t bash 0 /bin/bash



.vimrc


:set laststatus=2
:syntax enable
:set tabstop=4
:set shiftwidth=4
:set scrolloff=3
:set cindent
:set smartindent
:set nocompatible
:set backspace=indent,eol,start
:set history=50
:set showcmd
:colorscheme astronaut
:set hlsearch
:set incsearch
:set ignorecase



.conkyrc


# Conky sample configuration

#

# the list of variables has been removed from this file in favour

# of keeping the documentation more maintainable.

# Check http://conky.sf.net for an up-to-date-list.



# set to yes if you want Conky to be forked in the background

background yes



# Use Xft?

use_xft yes



# Font if xft not used

# font -monotype-courier new-demibold-r-normal-17-120-100-100-*-0-microsoft-cp1251



# Xft font when Xft is enabled

xftfont Lucida Console:size=10





# Text alpha when using Xft

xftalpha 0.8



# Update interval in seconds

update_interval 1.0



# This is the number of times Conky will update before quitting.

# Set to zero to run forever.

total_run_times 0



# Create own window instead of using desktop (required in nautilus)

own_window yes



# If own_window is yes, you may use type normal, desktop or override

own_window_type override



# Use pseudo transparency with own_window?

own_window_transparent yes



# If own_window is yes, these window manager hints may be used

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager



# Use double buffering (reduces flicker, may not work for everyone)

double_buffer yes



# Minimum size of text area

# minimum_size 280 5



# Draw shades?

draw_shades yes



# Draw outlines?

draw_outline no



# Draw borders around text

draw_borders no



# Draw borders around graphs

draw_graph_borders yes



# Stippled borders?

stippled_borders 5



# border margins

border_margin 9



# border width

border_width 1



# Default colors and also border colors

default_color white

default_shade_color black

default_outline_color black



# Text alignment, other possible values are commented

#alignment top_left

alignment top_right

#alignment bottom_left

#alignment bottom_right

#alignment none



# Gap between borders of screen and text

# same thing as passing -x at command line

gap_x 10

gap_y 10



# Subtract file system buffers from used memory?

no_buffers yes



# set to yes if you want all text to be in uppercase

uppercase no



# number of cpu samples to average

# set to 1 to disable averaging

cpu_avg_samples 2



# number of net samples to average

# set to 1 to disable averaging

net_avg_samples 2



# Force UTF8? note that UTF8 support required XFT

override_utf8_locale yes



# Add spaces to keep things from moving about? This only affects certain objects.

use_spacer yes



# variable is given either in format $variable or in ${variable}. Latter

# allows characters right after the variable and must be used in network

# stuff because of an argument



# stuff after 'TEXT' will be formatted on screen



TEXT





${color orange}STATUS${hr 2}$color



${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg

${color lightgrey}CPU Temperature: ${acpitemp}

${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar}

${color red}${cpugraph 0000ff 00ff00}

${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}

${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}

${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes

$color$stippled_hr

${color lightgrey}Networking:

Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 100}Up:${color #22ccff} ${upspeed eth0} k/s

${color #0000ff}${downspeedgraph eth0 32,175 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,175 0000ff ff0000}

${color lightgrey}

$stippled_hr

${color lightgrey}File systems:

/ $color${fs_free_perc /}% ${fs_size /} ${fs_bar /}

/home $color${fs_free_perc /home}% ${fs_size /home} ${fs_bar /home}

/music $color${fs_free_perc /music}% ${fs_size /music} ${fs_bar /music}

/tmp $color${fs_free_perc /tmp}% ${fs_size /tmp} ${fs_bar /tmp}

/opt $color${fs_free_perc /opt}% ${fs_size /opt} ${fs_bar /opt}

/usr $color${fs_free_perc /usr}% ${fs_size /usr} ${fs_bar /usr}

/var $color${fs_free_perc /var}% ${fs_size /var} ${fs_bar /var}



$stippled_hr

${color}Name PID CPU% MEM%

${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}

${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}

${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}

${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

${color}Mem usage

${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}

${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}

${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}

$stippled_hr

${color #ddaa00}Port(s)${alignr}#Connections

$color Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}

${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color

${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}

${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}

${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}

${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}

${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color

${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}

${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}

${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}

${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}

${color orange}LOGGING ${hr 2}$color

${execi 30 tail -n3 /var/log/messages | fold -w50}



${color orange}FORTUNE ${hr 2}$color

${execi 120 fortune -s | fold -w50}




Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A28711208

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more