Update dotfiles

Replace htop with bottom
This commit is contained in:
Observer of Time 2023-01-27 13:33:26 +02:00
parent db5b26b6dc
commit 9bdaa1d58e
Signed by: chronobserver
GPG Key ID: 8A2DEA1DBAEBCA9E
14 changed files with 118 additions and 92 deletions

View File

@ -0,0 +1,27 @@
[flags]
# Puts the CPU chart legend to the left side.
left_legend = true
# Groups processes with the same name by default.
group_processes = true
# Uses the older network legend.
use_old_network_legend = true
# Shows the battery widget.
battery = true
# Use a color scheme.
color = "gruvbox"
# Defaults to showing process memory usage by value.
mem_as_value = true
# Defaults to showing the process widget in tree mode.
tree = true
[disk_filter]
list = ["/dev/nvme0n1p1"]
is_list_ignored = true
whole_word = true
regex = false
[mount_filter]
list = ["/mnt/swap"]
is_list_ignored = true
whole_word = true
regex = false

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM "/usr/share/xml/fontconfig/fonts.dtd"> <!DOCTYPE fontconfig SYSTEM '/usr/share/xml/fontconfig/fonts.dtd'>
<fontconfig> <fontconfig>
<!-- Directories -->
<dir prefix="xdg">fonts</dir>
<!-- Properties --> <!-- Properties -->
<match target="font"> <match target="font">
<edit name="antialias" mode="assign"> <edit name="antialias" mode="assign">
@ -160,12 +158,24 @@
<family>Carlito</family> <family>Carlito</family>
</accept> </accept>
</alias> </alias>
<alias binding="strong">
<family>Consolas</family>
<accept>
<family>DMCA Sans Serif</family>
</accept>
</alias>
<alias binding="strong"> <alias binding="strong">
<family>Palatino Linotype</family> <family>Palatino Linotype</family>
<accept> <accept>
<family>P052</family> <family>P052</family>
</accept> </accept>
</alias> </alias>
<alias binding="weak">
<family>Sitka Heading</family>
<accept>
<family>Libertinus Serif Display</family>
</accept>
</alias>
<alias binding="weak"> <alias binding="weak">
<family>Helvetica</family> <family>Helvetica</family>
<accept> <accept>
@ -190,5 +200,7 @@
<family>Noto Sans</family> <family>Noto Sans</family>
</accept> </accept>
</alias> </alias>
<!-- Directories -->
<dir prefix="xdg">fonts</dir>
</fontconfig> </fontconfig>
<!-- vim:set ft=xml ts=1 sts=1 sw=1: --> <!-- vim:set ft=xml ts=1 sts=1 sw=1: -->

View File

@ -7,6 +7,7 @@
autocrlf = false autocrlf = false
whitespace = cr-at-eol whitespace = cr-at-eol
editor = ${EDITOR:-nvim} editor = ${EDITOR:-nvim}
pager = ${PAGER:-nvimpager}
askpass = ksshaskpass askpass = ksshaskpass
[extensions] [extensions]
@ -25,6 +26,18 @@
[credential "https://github.com"] [credential "https://github.com"]
helper = !gh auth git-credential helper = !gh auth git-credential
[credential "https://gitlab.com"]
helper = !glab auth git-credential
[credential "https://framagit.org"]
helper = !glab auth git-crendential
[credential "https://gitlab.archlinux.org"]
helper = !glab auth git-crendential
[credential "https://invent.kde.org"]
helper = !glab auth git-crendential
[commit] [commit]
gpgSign = true gpgSign = true
status = true status = true
@ -32,6 +45,9 @@
[push] [push]
autoSetupRemote = true autoSetupRemote = true
[rebase]
autoSquash = true
[status] [status]
submoduleSummary = 1 submoduleSummary = 1
@ -59,16 +75,27 @@
[tar "tar.br"] [tar "tar.br"]
command = brotli -c -f command = brotli -c -f
[pager] [color]
diff = ${PAGER:-nvimpager} ui = true
show = ${PAGER:-nvimpager}
[color "diff"] [color "diff"]
meta = yellow meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = brightgreen bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = brightgreen bold
newHighlight = brightgreen bold 22
[diff] [diff]
wsErrorHighlight = all wsErrorHighlight = all
mnemonicPrefix = true mnemonicPrefix = true
colorMoved = default
[diff "hex"] [diff "hex"]
textconv = hexdump -v -C textconv = hexdump -v -C
@ -85,7 +112,7 @@
[difftool "meld"] [difftool "meld"]
cmd = meld \"$LOCAL\" \"$REMOTE\" cmd = meld \"$LOCAL\" \"$REMOTE\"
[difftool "imgdiff"] [difftool "magick"]
cmd = compare \"$LOCAL\" \"$REMOTE\" png:- | \ cmd = compare \"$LOCAL\" \"$REMOTE\" png:- | \
montage -geometry 400x -font \ montage -geometry 400x -font \
Liberation-Sans -label l/%f \"$LOCAL\" \ Liberation-Sans -label l/%f \"$LOCAL\" \
@ -98,20 +125,29 @@
keepBackup = false keepBackup = false
[mergetool "fugitive"] [mergetool "fugitive"]
cmd = nvim -f +Gvdiffsplit\\! \"$MERGED\" cmd = nvim --cmd let\\ g:_mergetool=v:true +Gvdiffsplit\\! \"$MERGED\"
[mergetool "meld"] [mergetool "meld"]
cmd = meld \"$LOCAL\" \"$BASE\" \"$REMOTE\" -o \"$MERGED\" cmd = meld \"$LOCAL\" \"$BASE\" \"$REMOTE\" -o \"$MERGED\"
[pretty] [pretty]
log = format:%h %s%d [%cn] (%ad) log = format:%C(auto,cyan)%h %Creset%s%d %C(auto,yellow)[%an] %C(auto,red)(%ad)
color = format:%C(cyan)%h %Creset%s%C(white)%d %C(yellow)[%an] %Cred(%ad)
[grep] [grep]
lineNumber = true lineNumber = true
patternType = perl patternType = perl
fallbackToNoIndex = true fallbackToNoIndex = true
[diff-so-fancy]
markEmptyLines = false
[delta]
navigate = true
line-numbers = true
relative-paths = true
syntax-theme = gruvbox-dark
pager = less -R
[alias] [alias]
last = log -1 HEAD last = log -1 HEAD
hist = log --date=short --graph --pretty=log hist = log --date=short --graph --pretty=log
@ -126,10 +162,10 @@
repush = !git commit --amend -a --no-edit && git push --force-with-lease repush = !git commit --amend -a --no-edit && git push --force-with-lease
[filter "lfs"] [filter "lfs"]
required = true
process = git-lfs filter-process
clean = git-lfs clean -- %f clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[url "git@github.com:"] [url "git@github.com:"]
insteadOf = http://github.com/ insteadOf = http://github.com/
@ -146,5 +182,3 @@
[url "aur@aur.archlinux.org:"] [url "aur@aur.archlinux.org:"]
insteadOf = http://aur.archlinux.org/ insteadOf = http://aur.archlinux.org/
insteadOf = @aur: insteadOf = @aur:
# vim:noet:sw=4:ts=4:

View File

@ -1,63 +0,0 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.2.1
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
hide_kernel_threads=0
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_deleted_exe=1
highlight_megabytes=0
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
header_margin=1
screen_tabs=0
detailed_cpu_time=0
cpu_count_from_one=1
show_cpu_usage=1
show_cpu_frequency=0
show_cpu_temperature=0
degree_fahrenheit=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=5
enable_mouse=1
delay=15
hide_function_bar=0
header_layout=two_50_50
column_meters_0=AllCPUs Memory Swap
column_meter_modes_0=2 2 2
column_meters_1=CPU LoadAverage Tasks Uptime Clock
column_meter_modes_1=2 2 2 2 2
tree_view=1
sort_key=48
tree_sort_key=0
sort_direction=1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=USER
.tree_sort_key=PID
.tree_view=1
.tree_view_always_by_pid=0
.sort_direction=1
.tree_sort_direction=1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0
# vim:ft=cfg:

View File

@ -82,7 +82,7 @@ screenshot-template=shot_%F_%wH-%wM-%wS
# Specify the hardware video decoding API # Specify the hardware video decoding API
# that should be used if possible. # that should be used if possible.
hwdec=none hwdec=vaapi
# Specify the video output backend to be used. # Specify the video output backend to be used.
vo=gpu vo=gpu

@ -1 +1 @@
Subproject commit 1edf40f8bde82a2536e86c24cd1096ac70dd0e5d Subproject commit 46de54cecae3b131117c9f0d88dce80ae6728450

View File

@ -7,6 +7,10 @@ let &background = 'dark'
let &foldenable = v:false let &foldenable = v:false
let &wrap = v:true
let &linebreak = v:true
let &packpath = '' let &packpath = ''
let s:packer = stdpath('data').'/site/pack/packer/' let s:packer = stdpath('data').'/site/pack/packer/'

View File

@ -20,7 +20,7 @@ local = true
# Compile Python source files to bytecode. # Compile Python source files to bytecode.
compile = true compile = true
# Include pre-release and development versions. # Include pre-release and development versions.
pre = true pre = false
# Specify type of progress to be displayed. # Specify type of progress to be displayed.
progress-bar = on progress-bar = on

View File

@ -30,6 +30,9 @@ set findprg=fd\ --color=never\ %p\ %s
" What should be saved automatically between vifm runs " What should be saved automatically between vifm runs
set vifminfo=chistory,shistory set vifminfo=chistory,shistory
" Redraw screen to get rid of graphics
set previewoptions=hardgraphicsclear
" Maximum number of stored items in all histories " Maximum number of stored items in all histories
set history=100 set history=100
@ -278,7 +281,7 @@ fileviewer *.apng,
\*.webp, \*.webp,
\*.xbm, \*.xbm,
\*.xpm \*.xpm
\ identify -verbose %c \ img2sixel -S -q low %c -w $((%pw*6)) %pd
" }}} " }}}
" Archives {{{ " Archives {{{
@ -390,12 +393,11 @@ fileviewer *.o nm %c
" IDE projects {{{ " IDE projects {{{
filextype *.pro filextype *.pro
\ {Qt Creator} qtcreator %f %i &, \ {CLion} clion %d %i &,
\ {CLion} clion %d %i & \ {Qt Creator} qtcreator %f %i &
filextype .idea/ filextype .idea/
\ {IntelliJ} intellij-idea-ultimate-edition %d %i &, \ {IntelliJ} intellij-idea-ultimate-edition %d %i &,
\ {CLion} clion %d %i &, \ {CLion} clion %d %i &,
\ {PhpStorm} phpstorm %d %i &,
\ {PyCharm} pycharm %d %i & \ {PyCharm} pycharm %d %i &
" }}} " }}}

View File

@ -1,7 +1,7 @@
# shellcheck shell=bash # shellcheck shell=bash
# Define where cd looks for targets # Define where cd looks for targets
[[ -d "$HOME/Documents/Code" ]] && CDPATH='.:~/Documents/Code' [[ -d "$HOME/Documents/Code" ]] && CDPATH='.:/mnt/ext/Code'
# Set the primary prompt string # Set the primary prompt string
# shellcheck disable=SC2154 # shellcheck disable=SC2154

View File

@ -88,7 +88,7 @@ sri() { # Prints the SRI hash of a resource
} }
myip() { # What's my ip myip() { # What's my ip
drill myip.opendns.com @resolver1.opendns.com | awk '/^myip/{print $NF}' dig +short +tls A myip.opendns.com @resolver1.opendns.com
} }
urlencode() { # Encodes string for url urlencode() { # Encodes string for url

View File

@ -1,10 +1,13 @@
[Appearance] [Appearance]
AntiAliasFonts=true AntiAliasFonts=true
BoldIntense=false BoldIntense=true
ColorScheme=Gruvbox8 ColorScheme=Gruvbox8
Font=Iosevka Custom,15,-1,5,50,0,0,0,0,0 Font=Iosevka Custom,15,-1,5,50,0,0,0,0,0
LineSpacing=1 LineSpacing=1
UseFontLineChararacters=true UseFontLineChararacters=true
WordMode=true
WordModeAttr=false
WordModeBrahmic=false
[Cursor Options] [Cursor Options]
CursorShape=2 CursorShape=2
@ -25,7 +28,11 @@ TerminalMargin=2
TerminalRows=32 TerminalRows=32
[Interaction Options] [Interaction Options]
AllowEscapedLinks=false
CopyTextAsHTML=false CopyTextAsHTML=false
EscapedLinksSchema=https://;file://
TextEditorCmd=6
TextEditorCmdCustom=
UnderlineFilesEnabled=true UnderlineFilesEnabled=true
[Scrolling] [Scrolling]

View File

@ -5,6 +5,9 @@ ColorScheme=Gruvbox8
Font=Hack,16,-1,0,50,0,0,0,0,0 Font=Hack,16,-1,0,50,0,0,0,0,0
LineSpacing=1 LineSpacing=1
UseFontLineChararacters=true UseFontLineChararacters=true
WordMode=true
WordModeAttr=false
WordModeBrahmic=false
[Cursor Options] [Cursor Options]
CursorShape=2 CursorShape=2

View File

@ -21,6 +21,10 @@
* [.local/share/bash/bashrc.sh](.local/share/bash/bashrc.sh): interactive shell configuration file * [.local/share/bash/bashrc.sh](.local/share/bash/bashrc.sh): interactive shell configuration file
* [.local/share/bash/functions.sh](.local/share/bash/functions.sh): contains various functions * [.local/share/bash/functions.sh](.local/share/bash/functions.sh): contains various functions
# [bottom](https://clementtsang.github.io/bottom/)
* [.config/bottom/bottom.toml](.config/bottom/bottom.toml): configuration file
## [Ccache](https://github.com/ccache/ccache) ## [Ccache](https://github.com/ccache/ccache)
* [.config/ccache.cfg](.config/ccache.cfg): configuration file * [.config/ccache.cfg](.config/ccache.cfg): configuration file
@ -33,10 +37,6 @@
* [.config/fontconfig/fonts.conf](.config/fontconfig/fonts.conf): configuration file * [.config/fontconfig/fonts.conf](.config/fontconfig/fonts.conf): configuration file
## [Htop](https://hisham.hm/htop/)
* [.config/htop/htoprc](.config/htop/htoprc): configuration file
## [Git](https://git-scm.com/) ## [Git](https://git-scm.com/)
* [.config/git/config](.config/git/config): configuration file * [.config/git/config](.config/git/config): configuration file