1
0
Fork 0
mirror of https://gitlab.com/dwt1/dotfiles.git synced 2023-02-13 20:55:19 -05:00

Adding conky

This commit is contained in:
Derek Taylor 2021-09-02 22:14:51 -05:00
parent 8921f3445c
commit 8c629e7023
4 changed files with 268 additions and 116 deletions

View file

@ -0,0 +1,128 @@
--[[
########################
## DoomOne-Qtile ##
########################
]]
conky.config = {
--Various settings
background = true, -- forked to background
cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring.
diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring.
double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address
net_avg_samples = 2, -- The number of samples to average for net data
no_buffers = true, -- Subtract (file system) buffers from used memory?
temperature_unit = 'fahrenheit', -- fahrenheit or celsius
text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
update_interval = 1, -- update interval
imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
-- Placement (Conky on MIDDLE of THREE monitors at 1920x1080)
--alignment = 'top_left', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
--gap_x = 3540, -- pixels between right or left border
--gap_y = 70, -- pixels between bottom or left border
-- Placement (For SINGLE monitor users!)
alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
gap_x = 50, -- pixels between right or left border
gap_y = 70, -- pixels between bottom or left border
-- Size
minimum_height = 200, -- minimum height of window
minimum_width = 260, -- minimum height of window
maximum_width = 260, -- maximum height of window
--Graphical
border_inner_margin = 5, -- margin between border and text
border_outer_margin = 5, -- margin between border and edge of window
border_width = 0, -- border width in pixels
default_bar_width = 260, -- default is 0 - full width
default_bar_height = 10, -- default is 6
default_gauge_height = 25, -- default is 25
default_gauge_width =40, -- default is 40
default_graph_height = 40, -- default is 25
default_graph_width = 153, -- default is 0 - full width
default_shade_color = '#000000', -- default shading colour
default_outline_color = '#000000', -- default outline colour
draw_borders = false, -- draw borders around text
draw_graph_borders = true, -- draw borders around graphs
draw_shades = false, -- draw shades
draw_outline = false, -- draw outline
stippled_borders = 0, -- dashing the border
--Textual
format_human_readable = true, -- KiB, MiB rather then number of bytes
font = 'Source Code Pro:bold:size=10', -- font for complete conky unless in code defined
max_text_width = 0, -- 0 will make sure line does not get broken if width too smal
max_user_text = 16384, -- max text in conky default 16384
override_utf8_locale = true, -- force UTF8 requires xft
short_units = true, -- shorten units from KiB to k
top_name_width = 21, -- width for $top name value default 15
top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false.
uppercase = false, -- uppercase or not
use_spacer = 'none', -- adds spaces around certain objects to align - default none
use_xft = true, -- xft font - anti-aliased font
xftalpha = 1, -- alpha of the xft font - between 0-1
--Windows
own_window = true, -- create your own window to draw
own_window_argb_value = 255, -- real transparency - composite manager required 0-255
own_window_argb_visual = true, -- use ARGB - composite manager required
own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop
own_window_colour = '#282c34', -- set colour if own_window_transparent no
own_window_transparent = false, -- if own_window_argb_visual is true sets background opacity 0%
own_window_title = 'xmonad_conky', -- set the name manually; default conky "hostname"
own_window_type = 'desktop', -- if own_window true options are: normal/override/dock/desktop/panel
own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
--Colors (Doom One)
color0 = '#c678dd',
color1 = '#bbc2cf',
color2 = '#51afef',
color3 = '#98be65',
};
conky.text = [[
${alignc}${color0}${font Ubuntu:size=30}${time %H:%M}${font}
${voffset 6}${alignc}${color0}${font Ubuntu:size=14}${time %b %d, %Y}${font}${color}
${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu%
${color2}${goto 12}${cpubar 8,254}
${voffset 5}${goto 12}$font${color1}${top name 1}$alignr$color${top cpu 1}%
${goto 12}${color1}${top name 2}$alignr$color${top cpu 2}%
${goto 12}${color1}${top name 3}$alignr$color${top cpu 3}%
${voffset 14}${goto 12}${color3}RAM${goto 50}$mem/$memmax
${color2}${goto 12}${membar 8,254}${color}
${goto 12}${voffset 5}${color1}${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 12}${color1}${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 12}${color1}${top_mem name 3}$alignr$color${top_mem mem_res 3}
${voffset 18}${color1}${alignc}QTILE KEYBINDINGS${color}
${color1}${hr}${color}
${color1}[S]+[RET]${alignr}${color2}open terminal${color}
${color1}[S]+b${alignr}${color2}open qutebrowser${color}
${color1}[S]+[SPC]+[RET]${alignr}${color2}run prompt${color}
${color1}[S]+[SHIFT]+c${alignr}${color2}close window${color}
${color1}[S]+hjkl${alignr}${color2}move win focus${color}
${color1}[S]+[SHIFT]+hjkl${alignr}${color2}move window${color}
${color1}[S]+[0-9]${alignr}${color2}switch workspace${color}
${color1}[S]+[SHIFT]+[0-9]${alignr}${color2}send window${color}
${color1}[S]+h/l${alignr}${color2}shrink/expand${color}
${color1}${hr}${color}
${color1}[CTRL]+e, e${alignr}${color2}launch emacs${color}
${color1}[CTRL]+e, b${alignr}${color2}ibuffer${color}
${color1}[CTRL]+e, d${alignr}${color2}dired${color}
${color1}[CTRL]+e, n${alignr}${color2}elfeed${color}
${color1}[CTRL]+e, s${alignr}${color2}eshell${color}
${color1}[CTRL]+e, v${alignr}${color2}vterm${color}
${color1}${hr}${color}
${color1}[S]+p, e${alignr}${color2}dm-confedit${color}
${color1}[S]+p, i${alignr}${color2}dm-maim${color}
${color1}[S]+p, k${alignr}${color2}dm-kill${color}
${color1}[S]+p, m${alignr}${color2}dm-man${color}
${color1}[S]+p, o${alignr}${color2}dm-bookman${color}
${color1}[S]+p, s${alignr}${color2}dm-websearch${color}
${color1}${hr}${color}
${color1}[S]+[SHIFT]+r${alignr}${color2}restart xmonad${color}
${color1}[S]+[SHIFT]+q${alignr}${color2}quit xmonad${color}
]];

View file

@ -0,0 +1,128 @@
--[[
########################
## DoomOne-XMonad ##
########################
]]
conky.config = {
--Various settings
background = true, -- forked to background
cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring.
diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring.
double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address
net_avg_samples = 2, -- The number of samples to average for net data
no_buffers = true, -- Subtract (file system) buffers from used memory?
temperature_unit = 'fahrenheit', -- fahrenheit or celsius
text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
update_interval = 1, -- update interval
imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
-- Placement (Conky on MIDDLE of THREE monitors at 1920x1080)
--alignment = 'top_left', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
--gap_x = 3540, -- pixels between right or left border
--gap_y = 70, -- pixels between bottom or left border
-- Placement (For SINGLE monitor users!)
alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
gap_x = 50, -- pixels between right or left border
gap_y = 70, -- pixels between bottom or left border
-- Size
minimum_height = 200, -- minimum height of window
minimum_width = 260, -- minimum height of window
maximum_width = 260, -- maximum height of window
--Graphical
border_inner_margin = 5, -- margin between border and text
border_outer_margin = 5, -- margin between border and edge of window
border_width = 0, -- border width in pixels
default_bar_width = 260, -- default is 0 - full width
default_bar_height = 10, -- default is 6
default_gauge_height = 25, -- default is 25
default_gauge_width =40, -- default is 40
default_graph_height = 40, -- default is 25
default_graph_width = 153, -- default is 0 - full width
default_shade_color = '#000000', -- default shading colour
default_outline_color = '#000000', -- default outline colour
draw_borders = false, -- draw borders around text
draw_graph_borders = true, -- draw borders around graphs
draw_shades = false, -- draw shades
draw_outline = false, -- draw outline
stippled_borders = 0, -- dashing the border
--Textual
format_human_readable = true, -- KiB, MiB rather then number of bytes
font = 'Source Code Pro:bold:size=10', -- font for complete conky unless in code defined
max_text_width = 0, -- 0 will make sure line does not get broken if width too smal
max_user_text = 16384, -- max text in conky default 16384
override_utf8_locale = true, -- force UTF8 requires xft
short_units = true, -- shorten units from KiB to k
top_name_width = 21, -- width for $top name value default 15
top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false.
uppercase = false, -- uppercase or not
use_spacer = 'none', -- adds spaces around certain objects to align - default none
use_xft = true, -- xft font - anti-aliased font
xftalpha = 1, -- alpha of the xft font - between 0-1
--Windows
own_window = true, -- create your own window to draw
own_window_argb_value = 255, -- real transparency - composite manager required 0-255
own_window_argb_visual = true, -- use ARGB - composite manager required
own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop
own_window_colour = '#282c34', -- set colour if own_window_transparent no
own_window_transparent = false, -- if own_window_argb_visual is true sets background opacity 0%
own_window_title = 'xmonad_conky', -- set the name manually; default conky "hostname"
own_window_type = 'desktop', -- if own_window true options are: normal/override/dock/desktop/panel
own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
--Colors (Doom One)
color0 = '#c678dd',
color1 = '#bbc2cf',
color2 = '#51afef',
color3 = '#98be65',
};
conky.text = [[
${alignc}${color0}${font Ubuntu:size=30}${time %H:%M}${font}
${voffset 6}${alignc}${color0}${font Ubuntu:size=14}${time %b %d, %Y}${font}${color}
${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu%
${color2}${goto 12}${cpubar 8,254}
${voffset 5}${goto 12}$font${color1}${top name 1}$alignr$color${top cpu 1}%
${goto 12}${color1}${top name 2}$alignr$color${top cpu 2}%
${goto 12}${color1}${top name 3}$alignr$color${top cpu 3}%
${voffset 14}${goto 12}${color3}RAM${goto 50}$mem/$memmax
${color2}${goto 12}${membar 8,254}${color}
${goto 12}${voffset 5}${color1}${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 12}${color1}${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 12}${color1}${top_mem name 3}$alignr$color${top_mem mem_res 3}
${voffset 18}${color1}${alignc}XMONAD KEYBINDINGS${color}
${color1}${hr}${color}
${color1}[S]+[RET]${alignr}${color2}open terminal${color}
${color1}[S]+b${alignr}${color2}open qutebrowser${color}
${color1}[S]+[SPC]+[RET]${alignr}${color2}run prompt${color}
${color1}[S]+[SHIFT]+c${alignr}${color2}close window${color}
${color1}[S]+hjkl${alignr}${color2}move win focus${color}
${color1}[S]+[SHIFT]+hjkl${alignr}${color2}move window${color}
${color1}[S]+[0-9]${alignr}${color2}switch workspace${color}
${color1}[S]+[SHIFT]+[0-9]${alignr}${color2}send window${color}
${color1}[S]+h/l${alignr}${color2}shrink/expand${color}
${color1}${hr}${color}
${color1}[CTRL]+e, e${alignr}${color2}launch emacs${color}
${color1}[CTRL]+e, b${alignr}${color2}ibuffer${color}
${color1}[CTRL]+e, d${alignr}${color2}dired${color}
${color1}[CTRL]+e, n${alignr}${color2}elfeed${color}
${color1}[CTRL]+e, s${alignr}${color2}eshell${color}
${color1}[CTRL]+e, v${alignr}${color2}vterm${color}
${color1}${hr}${color}
${color1}[S]+p, e${alignr}${color2}dm-confedit${color}
${color1}[S]+p, i${alignr}${color2}dm-maim${color}
${color1}[S]+p, k${alignr}${color2}dm-kill${color}
${color1}[S]+p, m${alignr}${color2}dm-man${color}
${color1}[S]+p, o${alignr}${color2}dm-bookman${color}
${color1}[S]+p, s${alignr}${color2}dm-websearch${color}
${color1}${hr}${color}
${color1}[S]+[SHIFT]+r${alignr}${color2}restart xmonad${color}
${color1}[S]+[SHIFT]+q${alignr}${color2}quit xmonad${color}
]];

View file

@ -1,103 +0,0 @@
own_window yes
own_window_type normal
# own_window_argb_visual yes
# own_window_argb_value 125
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 222222
own_window_class Conky
own_window_title Monitor Conky
gap_x 3580
gap_y 60
alignment tl
minimum_width 220
use_xft yes
xftfont Cantarell:size=9
xftalpha 1
override_utf8_locale yes
draw_shades no #yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
color2 ededed
color3 109567
cpu_avg_samples 2
default_color bbbbbb
draw_borders no #yes
stippled_borders 5
border_inner_margin 15
border_outer_margin 0
border_width 1
background yes
no_buffers yes
imlib_cache_size 0
double_buffer yes
update_interval 1
TEXT
${voffset 8}$color${font Cantarell:size=16}${time %A}$font${voffset -8}$alignr${color 109567}${font Cantarell:size=38}${time %e}$font
$color${voffset -30}$color${font Cantarell:size=18}${time %B}$font${voffset -3} $color${font Cantarell:size=20}${time %Y}$font
#${voffset 10}$alignr$color Kraków (PL) ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EPKK temperature temperature 15}°C
#
${voffset 10}${goto 12}${color3}${font Cantarell:size=9:bold}CPU$alignr${color2}${font}$cpu%
$color2${goto 12}${cpubar 4,200}
${voffset 5}${goto 12}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 12}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 12}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 12}$color2${top name 4}$alignr$color${top cpu 4}%
#
${voffset 10}${goto 12}${color3}${font Cantarell:size=9:bold}RAM$alignr${color2}${font}$mem/$memmax
$color2${goto 12}${membar 4,200}
${goto 12}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 12}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 12}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 12}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
#
${voffset 10}$alignr disk ${color2}${fs_used /} - ${fs_size /}
$alignr$color memory ${color2}$mem - $memmax
#${alignr}${color2}${font Cantarell:size=9}swap $swapmax - $swap
${voffset 10}$alignr${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Cantarell:size=9}uptime ${color}${uptime_short}
$alignr${color} Manjaro Linux ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
${alignr}${color2}${font Cantarell:size=9}${alignr}kernel ${color}${kernel}
${alignr}${color2}${font Cantarell:size=9}${alignr}filesystem ${color}${fs_type}
${voffset 10}${alignr}${color} packages installed: ${color2}${execi 10000 pacman -Q | wc -l}
${alignr}${color} available updates ${color CC2A2E}${font Cantarell:bold:size=10}${execpi 10800 checkupdates | wc -l}${font}${color}
${alignr}${color} last updated on: ${font Cantarell:size=8}${color2}${execi 10000 grep "starting full system upgrade" /var/log/pacman.log | tail -n1| cut --bytes=2-17}
${voffset 14}${color3}${font Cantarell:size=9:bold}APPLICATIONS${font}${voffset -6}
${color2}${hr 1}${voffset -6}
${color2}terminal ${alignr}${color}super+enter
${color2}menu ${alignr}${color}super+spacebar
${color2}run command... ${alignr}${color}super+r
${color2}file manager ${alignr}${color}super+f
${color2}web browser ${alignr}${color}super+w
${color2}volume control ${alignr}${color}super+v
${color2}lock screen ${alignr}${color}super+l
${color2}xkill ${alignr}${color}shift+super+k
${color2}exit openbox ${alignr}${color}shift+super+q
${voffset 10}${color3}${font Cantarell:size=9:bold}WINDOWS${font}${voffset -6}
${color2}${hr 1}${voffset -6}
${color2}close ${alignr} ${color}shift+super+c
${color2}minimalize ${alignr} ${color}alt+up arrow
${color2}maximize ${alignr} ${color}alt+down arrow
${color2}lower ${alignr} ${color}alt+esc
${color2}show desktop ${alignr} ${color}super+d
${color2}toggle borders ${alignr} ${color}shift+super+b
${color2}toggle fullscreen ${alignr} ${color}shift+super+enter
${color2}resize/move ${alignr} ${color}super+arrows
${color2}window placement:
${color2} - half screen ${alignr} ${color}super+alt+arrows
${color2} - 1/4 screen ${alignr} ${color}super+alt+keypad[1..9]
${color2} - 1/9 screen ${alignr} ${color}super+keypad[1..9]
${voffset 10}${color3}${font Cantarell:size=9:bold}DESKTOPS${font}${voffset -6}
${color2}${hr 1}${voffset -6}
${color2}go to desktop ${alignr} ${color}super+[F1..F4]

View file

@ -1,7 +1,7 @@
--[[
#=====================================================================================
# XMonad Conky
#======================================================================================
########################
## DoomOne-XMonad ##
########################
]]
conky.config = {
@ -20,14 +20,14 @@ conky.config = {
imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
-- Placement (Conky on MIDDLE of THREE monitors at 1920x1080)
alignment = 'top_left', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
gap_x = 3540, -- pixels between right or left border
gap_y = 70, -- pixels between bottom or left border
--alignment = 'top_left', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
--gap_x = 3540, -- pixels between right or left border
--gap_y = 70, -- pixels between bottom or left border
-- Placement (For SINGLE monitor users!)
--alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
--gap_x = 50, -- pixels between right or left border
--gap_y = 70, -- pixels between bottom or left border
alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
gap_x = 50, -- pixels between right or left border
gap_y = 70, -- pixels between bottom or left border
-- Size
minimum_height = 200, -- minimum height of window
@ -77,7 +77,7 @@ conky.config = {
own_window_type = 'desktop', -- if own_window true options are: normal/override/dock/desktop/panel
own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
--Colors
--Colors (Doom One)
color0 = '#c678dd',
color1 = '#bbc2cf',
color2 = '#51afef',
@ -99,7 +99,8 @@ ${goto 12}${color1}${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 12}${color1}${top_mem name 3}$alignr$color${top_mem mem_res 3}
${voffset 18}${color1}${alignc}XMONAD KEYBINDINGS${color}
${color1}${hr}${color}
${color1}[S]+[RET]${alignr}${color2}opens terminal${color}
${color1}[S]+[RET]${alignr}${color2}open terminal${color}
${color1}[S]+b${alignr}${color2}open qutebrowser${color}
${color1}[S]+[SPC]+[RET]${alignr}${color2}run prompt${color}
${color1}[S]+[SHIFT]+c${alignr}${color2}close window${color}
${color1}[S]+hjkl${alignr}${color2}move win focus${color}
@ -114,7 +115,6 @@ ${color1}[CTRL]+e, d${alignr}${color2}dired${color}
${color1}[CTRL]+e, n${alignr}${color2}elfeed${color}
${color1}[CTRL]+e, s${alignr}${color2}eshell${color}
${color1}[CTRL]+e, v${alignr}${color2}vterm${color}
${color1}[CTRL]+e, w${alignr}${color2}eww browser${color}
${color1}${hr}${color}
${color1}[S]+p, e${alignr}${color2}dm-confedit${color}
${color1}[S]+p, i${alignr}${color2}dm-maim${color}
@ -123,7 +123,6 @@ ${color1}[S]+p, m${alignr}${color2}dm-man${color}
${color1}[S]+p, o${alignr}${color2}dm-bookman${color}
${color1}[S]+p, s${alignr}${color2}dm-websearch${color}
${color1}${hr}${color}
${color1}[S]+[CTRL]+r${alignr}${color2}recompile xmonad${color}
${color1}[S]+[SHIFT]+r${alignr}${color2}restart xmonad${color}
${color1}[S]+[SHIFT]+q${alignr}${color2}quit xmonad${color}
]];