I tried attaching the files and it didn't work. So I will have to paste them here. First, the .conkyrc file:
Code: Select all
-- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-- || ||
-- || C O N K Y ||
-- || ||
-- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
conky.config = {
-- ////////////////////////////////////////////
-- Update settings
-- ////////////////////////////////////////////
-- Update interval in seconds
update_interval = 1.2,
-- Cf. stuff on CPU samples, below.
update_interval_on_battery = 1.4,
-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
total_run_times = 0,
-- ////////////////////////////////////////////
-- Window settings
-- ////////////////////////////////////////////
default_color = grey,
-- Meant to set border colour too. Yet, default_color does not seem to work. But, no display if do not set!
-- Create own window instead of using desktop (required in Nemo)
own_window = true,
own_window_hints = "undecorated,sticky,skip_taskbar,below",
-- If have 'below' in own_window_hints, then conky excludes icons. (Cf. *minimum_height, below.*)
-- am trying without 'skip_pager' - in case it causes problems for Cinnamon.
own_window_transparent = true,
own_window_type = "desktop",
-- Use double buffering (reduces flicker, mayn't work for everyone)
double_buffer = true,
-- Minimum size of text area. NB: Changes require a LOGOUT - or perhaps kill conky with xkill & restart.
minimum_height = 45,
minimum_width = 1270,
-- 1275 seems max width that allows borders to show. EDIT: no, currently 1270. (But) depends on 'x' value.
-- NB: alignr and alignc command seem to work only if text that follows them contains no {offset} commands.
-- Draw borders around text. Useful for troubleshooting.
draw_borders = false,
-- stippled_borders = 10,
-- border_inner_margin = 2,
-- border_outer_margin = 2,
-- border_width = 1,
-- Gap between borders of screen and text. Equivalent to passing -x at command line.
gap_x = 1,
gap_y = 2,
alignment = "top_middle",
--alignment = "top_left",
--alignment = "top_right",
--alignment = "top_middle",
--alignment = "bottom_left",
--alignment = "bottom_right",
-- etc.
-- ////////////////////////////////////////////
-- Font stuff
-- ////////////////////////////////////////////
use_xft = true,
font = "Noto Sans UI:size=12",
--xftalpha = 0,
--uppercase = false,
-- Draw shades? = add slight shadow to text. If comment out this variable, get bad, strange effect!
draw_shades = false,
-- default_shade_color = grey,
draw_outline = false,
-- default_outline_color = grey,
-- Default colors. Can use program gColor2 to get numbers for subtle colours.
-- Force UTF8? Note that UTF8 support required XFT
-- override_utf8_locale = true,
-- Add spaces to keep things from moving about? Only helps if you are using a mono font, such as DejaVu Sans Mono.
-- use_spacer = left,
-- /////////////////////////////////////////////////////////////////
-- Measuring/reporting options
-- /////////////////////////////////////////////////////////////////
-- short_units = true,
-- Shortens units to a single character (kiB->k, GiB->G, etc.). Default is false.
-- Subtract file system buffers from used memory?
no_buffers = true,
-- number of cpu samples to average
-- set to 1 to disable averaging
cpu_avg_samples = 2,
-- number of net samples to average - unsure whether applies to wifi strength
-- set to 1 to disable averaging
net_avg_samples = 3,
--pad_percents - number of digits in percentages (to determine whether get 1, [space]1, [space][space]1, etc.)
pad_percents = 3,
top_name_width = 50,
-- top_name_width truncates string variable output for the 'top' command.
--text_buffer_size = 2048,
-- Size of the standard text buffer (default is 306 bytes). This buffer is used for intermediary text, such as individual lines, output from $exec vars, and various other variables. Increasing the size of this buffer can drastically reduce Conky's performance, but will allow for more text display per variable. The size of this buffer cannot be smaller than the default value of 306 bytes.
}
-- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-- LUA SCRIPT stuff (goes here, after the config section)
-- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-- lua_load = "~/.conky/round.lua"
-- ${if_match ${cpu cpu0}>4}${voffset 3}${alignc}${font Sans UI: size=11.5}${color pink}${top name 1}${alignr}${offset -550}${lua conky_round ${top cpu 1}}%${font}${endif}]]
-- Previous last line of text below:
-- ${if_match ${cpu cpu0}>65}${alignc}${voffset 4.5}CPU loader: ${top name 1}${endif}
--${outlinecolor #B47474
-- ===============================================================================
--
-- ****** Conky MAIN TEXT follows *****
--
-- Within that section - in the 'conky.text' section - and *only* here, comments are preceded by hashes.
-- Can use \ at end of line to separate code lines without visible line-break; but tabs tend to get printed.
-- Also: if end with a blank line, that gets printed. And can't end with a hash.
--
-- ==============================================================================
conky.text =
[[
#
#
# -------------------------------------------------------------
# DISC SPACE USAGE & RAM & CPU
# -------------------------------------------------------------
#
${offset 25}system${offset 7}${voffset 4}${fs_bar 8, 35 /}${voffset -4}\
${offset 18}home${offset 7}${voffset 4}${fs_bar 8, 35 /home}${voffset -4}\
${offset 18}swap${offset 6}${voffset 4}${if_match ${swapperc} > 64}${color red}${swapbar 8, 35}${color}${else}${swapbar 8, 35}${endif}${voffset -4}\
${offset 17}ram${offset 7}${voffset 4}${if_match ${memperc} > 90}${color red}${membar 8, 35}${color}${else}${membar 8, 35}${endif}${voffset -4}\
${offset 18}cpu${offset 6}${voffset 4}${cpubar cpu0 8, 35}${voffset -3}\
#
#
# --------------------------------------------
# TEMPERATURE
# --------------------------------------------
#
${offset 20}${font FreeMono Regular: size=12.5}${if_match $acpitemp>74}${if_match $acpitemp>88}${color red}${else}${color FFE6EF}${endif}${else}${color #B4B4B4}${endif}${acpitemp}°${color}${offset 4}${color #B4B4B4}| ${if_match ${hwmon 2 temp 3}>54}${if_match ${hwmon 2 temp 3}>70}${color red}${else}${color white}${endif}${else}${color #B4B4B4}${endif}${hwmon 2 temp 3}°${color}${font}\
#
#
# --------------------------------------------
# NETWORK
# --------------------------------------------
#
${voffset -2}${offset 14}${if_existing /proc/net/route eth0}${font Noto Sans UI: size=11}Ethernet${if_existing /proc/net/route wlan0}${color grey} | ${color}${endif}${font}${voffset -2}${endif}${if_existing /proc/net/route wlan0}${if_match "$wireless_essid wlan0"!="off/any"}${font Noto Sans UI: size=11}${wireless_essid wlan0} (${font PizzaDude Bullets:size=12}${if_match ${wireless_link_qual_perc wlan0}>74}${color green}BBB${color}${else}${if_match ${wireless_link_qual_perc wlan0}>49}${color green}BB${color}${color grey}B${color}${else}${if_match ${wireless_link_qual_perc wlan0}>34}${color green}B${color}${color grey}BB${color}${else}${color red}B${color}${color grey}BB${color}${endif}${endif}${endif}${font}${voffset -5})${endif}${endif}\
#
#
# --------------------------------------------
# BATTERY
# --------------------------------------------
#
${voffset 1}${offset 18}${font Webdings:size=15}~${font}${voffset -2}${offset 2}${font Noto Sans UI: size=13}${color #DCDCDC}=${color}${font}\
${offset 5}\
${if_match "$battery"=="charged"}${color #3BC9C0}${font Noto Sans UI: size=12:bold}AC${color}${font}${else}${if_existing /sys/class/power_supply/BAT0/status Charging}${color green}${battery_percent BAT0}%${font TakaoPGothic: size=13:bold}↑${else}${color orange}${battery_percent BAT0}%${font TakaoPGothic: size=13:bold}↓${endif}${color}${font}${endif}\
#
#
# --------------------------------------------
# VOLUME
# --------------------------------------------
#
${offset 18}${voffset -10}${font Noto Sans UI: size=19}♫${font}${offset 4}${color #E1E1E1}${texeci 1 ~/.conky/scripts-called-in-Conky/vol.sh}${color}\
#
#
# --------------------------------------------
# REDSHIFT
# Commented out because does not work properly on my system,
# --------------------------------------------
#
#${offset 18}\
#${font Noto Sans UI: size=11.5}${texeci 3 redshift -p -l 51.9:1.0 | awk 'FNR == 2 {print $3}'}${font}\
#
#
# ----------------------------------------------------------------------------
# TIME
# If use ${offset} here, get problems with right-aligning.
# So, use spaces, with different font size.
# ----------------------------------------------------------------------------
#
${offset 20}${voffset -1}${alignr}${font Noto Sans UI: size=11.5}${time %A}, ${time %d} ${time %B} ${time %Y} ${voffset -4}${font}${alignr}${font Noto Sans UI: size=15}${time %l:%M} ${font}${voffset -3}${font Noto Sans UI: size=11}${color #F4F4F4}${time %p} \
#
#
# --------------------------------------------
# * * * END * * *
# --------------------------------------------
#
]]
Code: Select all
#!/bin/bash
amixer get Master | awk -F'[]%[]' '/%/ {if ($7 == "off") { print "mute" } else { print $2"%" }}'