adds htoprc file

This commit is contained in:
waldek 2022-08-24 21:18:01 +02:00
parent a8ca69a844
commit 663e041593
2 changed files with 66 additions and 2 deletions

View File

@ -4,14 +4,13 @@ NAME="waldek"
EMAIL="waldek@mailbox.org" EMAIL="waldek@mailbox.org"
DEPENDENCIES_APT="zsh git tig tmux vim-nox htop python3 python3-pip" DEPENDENCIES_APT="zsh git tig tmux vim-nox htop python3 python3-pip"
LOCALHOME="/home/"
SOURCES_DIR=~/sources SOURCES_DIR=~/sources
BOOTSTRAP_DIR=~/sources/bootstrap BOOTSTRAP_DIR=~/sources/bootstrap
CUSTOM_ZSHRC=$BOOTSTRAP_DIR/custom.zsh CUSTOM_ZSHRC=$BOOTSTRAP_DIR/custom.zsh
CUSTOM_ENV=$BOOTSTRAP_DIR/env.sh CUSTOM_ENV=$BOOTSTRAP_DIR/env.sh
if [[ -z $(groups | grep sudo) ]]; then if [[ -z $(groups | grep sudo) ]]; then
echo "you need to run this script as yourself, but you need to be in the sudo group..." echo "you need to be in the sudo group to run this script..."
exit 1 exit 1
else else
echo "all good! let's setup your system" echo "all good! let's setup your system"
@ -89,12 +88,38 @@ function customize_oh_my_zsh () {
echo "--- ${FUNCNAME[0]} done" echo "--- ${FUNCNAME[0]} done"
} }
function clone_and_setup_vimrc () {
local dst=~/sources/gitea_irisib/vimrc
if ! [[ -d $dst ]]; then
git clone ssh://gitea@86thumbs.net:3022/waldek/vimrc.git $dst && echo "cloned bootstrap dir"
ln -s $dst/main.vimrc ~/.vimrc
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +VundleInstall +qall
else
cd $dst
git pull && echo "updated $dst"
cd -
vim +VundleUpdate +qall
fi
echo "--- ${FUNCNAME[0]} done"
}
function symlink_config_files () {
local dst=~/.config/htop/htoprc
if ! [[ -L $dst ]]; then
rm $dst 2> /dev/null
ln -s $(ls $BOOTSTRAP_DIR/htoprc) $dst
fi
}
#install_apt_dependencies #install_apt_dependencies
setup_sources_dir setup_sources_dir
setup_global_git_config setup_global_git_config
clone_bootstrap_to_sources_dir clone_bootstrap_to_sources_dir
install_oh_my_zsh install_oh_my_zsh
customize_oh_my_zsh customize_oh_my_zsh
clone_and_setup_vimrc
symlink_config_files
#echo "setting up $ME" #echo "setting up $ME"
#HOME=$LOCALHOME$ME #HOME=$LOCALHOME$ME

39
htoprc Normal file
View File

@ -0,0 +1,39 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=-1
tree_sort_key=47
tree_sort_direction=-1
hide_kernel_threads=1
hide_userland_threads=1
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=1
highlight_changes=0
highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=1
tree_view=0
tree_view_always_by_pid=1
header_margin=1
detailed_cpu_time=0
cpu_count_from_one=0
show_cpu_usage=1
show_cpu_frequency=0
show_cpu_temperature=0
degree_fahrenheit=0
update_process_names=0
account_guest_in_cpu_meter=1
color_scheme=6
enable_mouse=1
delay=15
left_meters=AllCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime DiskIO NetworkIO Battery
right_meter_modes=2 2 2 2 2 2
hide_function_bar=0