mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Add conky config; add alias, global var, binding; update fish scripts
This commit is contained in:
parent
662cf1bcdc
commit
91ebbe8be8
10 changed files with 234 additions and 83 deletions
122
.config/conky/conky.conf
Normal file
122
.config/conky/conky.conf
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
conky.config ={
|
||||
-- CONKY SETTINGS
|
||||
background = true,
|
||||
update_interval = 1,
|
||||
total_run_times = 0,
|
||||
|
||||
cpu_avg_samples = 2,
|
||||
net_avg_samples = 2,
|
||||
|
||||
override_utf8_locale = true,
|
||||
|
||||
double_buffer = true,
|
||||
no_buffers = true,
|
||||
|
||||
text_buffer_size = 32768,
|
||||
|
||||
-- CONKY: WINDOW SPECIFICATIONS
|
||||
own_window = true,
|
||||
own_window_argb_value = 216,
|
||||
own_window_argb_visual = true,
|
||||
own_window_class = 'conky',
|
||||
own_window_name = 'conky',
|
||||
own_window_colour = '#282828',
|
||||
-- own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
own_window_transparent = false,
|
||||
own_window_type = 'desktop',
|
||||
|
||||
border_inner_margin = 6,
|
||||
border_width = 5,
|
||||
|
||||
minimum_height = 1000,
|
||||
|
||||
minimum_width = 280,
|
||||
maximum_width = 280,
|
||||
|
||||
alignment = 'top_right',
|
||||
gap_x = 24,
|
||||
gap_y = 60,
|
||||
|
||||
-- GRAPHICS SETTINGS
|
||||
draw_shades = true,
|
||||
draw_outline = false,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = true,
|
||||
|
||||
-- TEXT SETTINGS
|
||||
use_xft = true,
|
||||
font = 'IBM Plex Sans Regular:size=10',
|
||||
xftalpha = 0.2,
|
||||
|
||||
uppercase = false,
|
||||
|
||||
-- Pad percentages to this many decimals (0 = no padding)
|
||||
pad_percents = 2,
|
||||
|
||||
-- COLOUR SETTINGS
|
||||
default_color = 'ebdbb2',
|
||||
default_shade_color = '1d2021',
|
||||
default_outline_color = '1d2021',
|
||||
color1 = 'fbf1c7',
|
||||
color2 = '458588',
|
||||
color3 = '98971a',
|
||||
color4 = '79740e',
|
||||
color5 = '689d6a',
|
||||
color7 = 'cc241d',
|
||||
color8 = '9d0006',
|
||||
};
|
||||
|
||||
|
||||
conky.text = [[
|
||||
${alignc}${font IBM Plex Sans Light:size=10}${time %A %d %B %Y}${font}${alignc}
|
||||
${color1}${hr 2}${color}
|
||||
${voffset -5}
|
||||
${font IBM Plex Sans Light:size=8}${color1}HOSTNAME:${color}${font} ${alignr}$nodename
|
||||
${font IBM Plex Sans Light:size=8}${color1}UPTIME:${color}${font} ${alignr}$uptime_short
|
||||
${font IBM Plex Sans Light:size=8}${color1}KERNEL:${color}${font} ${alignr}$kernel ${voffset 10}
|
||||
${font :size=11}${color}Network ${hr 2}
|
||||
${voffset -15}
|
||||
${font IBM Plex Sans Light:size=10}${color1}IP ADDRESS:${color}${font} ${alignr}${addr br0}${color}
|
||||
${if_match "${addr br0}"!="No Address"}${voffset 5}${font IBM Plex Sans Light:size=10}${font}Download ${alignr}${downspeedf br0}k/s (${totaldown br0})
|
||||
${color1}${downspeedgraph br0 50,280 98971a 79740e -t}${color}
|
||||
${font IBM Plex Sans Light:size=10}${font}Upload ${alignr}${upspeedf br0}k/s (${totalup br0})
|
||||
${color1}${upspeedgraph br0 50,280 9d0006 cc241d -t}${color}
|
||||
${endif}${voffset 5}${font :size=11}${color}HDD ${hr 2}
|
||||
${voffset 5}${color1}Used: ${fs_used /}${goto 175}Free:${goto 225}${fs_free /}${color}
|
||||
${color2}${fs_bar /}${color}
|
||||
${font IBM Plex Sans Light:size=8}${color1}DISK I/O:${color}${font} ${alignr}$diskio
|
||||
${voffset 2}${font IBM Plex Sans Light:size=8}${color1}READ: ${font} ${goto 80}${diskiograph_read 15,210 98971a 79740e 750}${color}
|
||||
${voffset 2}${font IBM Plex Sans Light:size=8}${color1}WRITE:${font} ${goto 80}${diskiograph_write 15,210 9d0006 cc241d 750}${color}
|
||||
${voffset 10}${font :size=11}Memory ${hr 2}${voffset 2}${font}
|
||||
${font IBM Plex Sans Light:size=10}RAM $alignc ${font}${color1}$mem / $memmax $alignr ${color4}$memperc%${color}
|
||||
${color2}$membar${voffset 10}${color}
|
||||
${font :size=11}GPU ${hr 2}${voffset 2}
|
||||
${font IBM Plex Sans Light:size=9}${color1}GPU Freq.: $alignr ${color}${font}${nvidia gpufreq} Mhz${voffset 2}
|
||||
${font IBM Plex Sans Light:size=9}${color1}Memory Freq.: $alignr ${color}${font}${nvidia memfreq} Mhz${voffset 2}
|
||||
${font IBM Plex Sans Light:size=9}${color1}Temperature: $alignr ${color4}${font}${nvidia temp}°C ${voffset 10}${color}
|
||||
${font :size=11}CPUs ${hr 2}
|
||||
${voffset -15}
|
||||
${font IBM Plex Sans Light:size=10}${color1}CPU:${color}${font} ${alignr}AMD Ryzen 7 3800X
|
||||
${voffset -15}
|
||||
${font IBM Plex Sans Light:size=9}${color1}01 - 04:${color}${font} ${goto 100}${cpu cpu1}% ${goto 150}${cpu cpu2 }% ${goto 200}${cpu cpu3 }% ${goto 250}${cpu cpu4 }%
|
||||
${font IBM Plex Sans Light:size=9}${color1}05 - 08:${color}${font} ${goto 100}${cpu cpu5}% ${goto 150}${cpu cpu6 }% ${goto 200}${cpu cpu7 }% ${goto 250}${cpu cpu8 }%
|
||||
${font IBM Plex Sans Light:size=9}${color1}09 - 12:${color}${font} ${goto 100}${cpu cpu9}% ${goto 150}${cpu cpu10}% ${goto 200}${cpu cpu11}% ${goto 250}${cpu cpu12}%
|
||||
${voffset -10}
|
||||
${font IBM Plex Sans Light:size=9}${color1}CPU TEMP:${color4}${font}${alignr}${hwmon 1 temp 1}°C${color}
|
||||
${voffset 10}${font :size=11}Processes ${hr 2}${font}
|
||||
${voffset -15}
|
||||
${font :size=10}${font IBM Plex Sans Light:size=8}${color1}TOTAL:${color}${font} ${alignr}${processes}
|
||||
${voffset -12}
|
||||
${font IBM Plex Sans Light:size=9}${color1}APP NAME: ${goto 160}MEMORY: ${goto 245}CPU: ${color}${font}
|
||||
${voffset -15}
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 1} ${color}${font} ${goto 160}${top mem 1} % ${goto 235}${top cpu 1} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 2} ${color}${font} ${goto 160}${top mem 2} % ${goto 235}${top cpu 2} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 3} ${color}${font} ${goto 160}${top mem 3} % ${goto 235}${top cpu 3} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 4} ${color}${font} ${goto 160}${top mem 4} % ${goto 235}${top cpu 4} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 5} ${color}${font} ${goto 160}${top mem 5} % ${goto 235}${top cpu 5} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 6} ${color}${font} ${goto 160}${top mem 6} % ${goto 235}${top cpu 6} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 7} ${color}${font} ${goto 160}${top mem 7} % ${goto 235}${top cpu 7} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 8} ${color}${font} ${goto 160}${top mem 8} % ${goto 235}${top cpu 8} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 9} ${color}${font} ${goto 160}${top mem 9} % ${goto 235}${top cpu 9} %
|
||||
${font IBM Plex Sans Light:size=9}${color1}${top_mem name 10} ${color}${font} ${goto 160}${top mem 10} % ${goto 235}${top cpu 10} %
|
||||
]];
|
||||
|
|
@ -2,6 +2,7 @@ function define_aliases -a uname -d 'Defines aliases for commonly used commands'
|
|||
alias rcp 'rsync -aP'
|
||||
alias vg 'vagrant'
|
||||
alias tf 'terraform'
|
||||
alias gco 'gcloud compute'
|
||||
alias tocb 'xclip -in -selection clipboard'
|
||||
alias fromcb 'xclip -out -selection clipboard'
|
||||
alias ssh-rm 'ssh-keygen -f ~/.ssh/known_hosts -R'
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ function define_global_variables -d 'Defines all and exclusively globally export
|
|||
|
||||
set -gx EDITOR nvim
|
||||
set -gx BROWSER firefox
|
||||
set -gx DIFFPROG nvim -d
|
||||
|
||||
set -gx FZF_CTRL_T_COMMAND 'ag --hidden --ignore .git -g ""'
|
||||
set -gx FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -g ""'
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ function fish_user_key_bindings
|
|||
bind --mode insert ,p 'nvim +FZF; commandline -f repaint'
|
||||
bind --mode insert ,w 'nvim +VimwikiIndex; commandline -f repaint'
|
||||
bind --mode insert ,n 'n; commandline -f repaint'
|
||||
bind --mode insert ,s 'sysz; commandline -f repaint'
|
||||
end
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ background-alt = #3c3836
|
|||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #ebdbb2
|
||||
foreground-alt = #fbf1c7
|
||||
primary = #92971a
|
||||
primary = #98971a
|
||||
secondary = #458588
|
||||
alert = #cc241d
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue