mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 23:12:32 +01:00
116 lines
4.9 KiB
Plaintext
116 lines
4.9 KiB
Plaintext
#!/usr/bin/conky
|
|
out_to_x no
|
|
own_window no
|
|
out_to_console yes
|
|
background no
|
|
max_text_width 0
|
|
|
|
# Update interval in seconds
|
|
update_interval 1.0
|
|
|
|
# This is the number of times Conky will update before quitting.
|
|
# Set to zero to run forever.
|
|
total_run_times 0
|
|
|
|
# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
|
|
short_units yes
|
|
|
|
# How strict should if_up be when testing an interface for being up?
|
|
# The value is one of up, link or address, to check for the interface
|
|
# being solely up, being up and having link or being up, having link
|
|
# and an assigned IP address.
|
|
if_up_strictness address
|
|
|
|
# Add spaces to keep things from moving about? This only affects certain objects.
|
|
# use_spacer should have an argument of left, right, or none
|
|
use_spacer left
|
|
|
|
# Force UTF8? note that UTF8 support required XFT
|
|
override_utf8_locale no
|
|
|
|
# number of cpu samples to average
|
|
# set to 1 to disable averaging
|
|
cpu_avg_samples 2
|
|
|
|
# Stuff after 'TEXT' will be formatted on screen
|
|
# JSON for i3bar
|
|
|
|
TEXT
|
|
|
|
[
|
|
|
|
|
|
#ADD DYNAMIC INTERFACE
|
|
|
|
{"full_text":" ${downspeed wlp2s0}","color":"\#2aa198","separator":false,"separator_block_width":15, "min_width": 65, "align": "left"},\
|
|
|
|
#UP
|
|
|
|
#ADD DYNAMIC INTERFACE
|
|
|
|
{"full_text":" ${upspeed wlp2s0}","color":"\#dc322f","separator":false,"separator_block_width":15, "min_width": 65, "align": "left"},\
|
|
|
|
#CPU
|
|
|
|
${if_match ${cpu cpu0} >= 80}\
|
|
{"full_text":" ${cpu cpu0}%","color":"\#dc322f","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
|
${else}
|
|
${if_match ${cpu cpu0} >= 50}\
|
|
{"full_text":" ${cpu cpu0}%","color":"\#E56C08","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
|
${else}
|
|
{"full_text":" ${cpu cpu0}%","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
|
$endif
|
|
$endif
|
|
|
|
#MEM
|
|
|
|
# CHANGE COLOR IN HIGH MEMORY USAGE
|
|
{"full_text":" ${mem}","color":"\#c5c5c5","separator":false,"separator_block_width":20, "min_width": 65, "align": "left"},\
|
|
|
|
#SYSTEM
|
|
${if_match ${execi 60 df -h | grep universe-lvroot | awk '{print $5}' | cut -d"%" -f1} >= 95 }\
|
|
{"full_text":" ${execi 60 df -h | grep universe-lvroot | awk '{print $5}'}","color":"\#dc322f","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
|
${else}
|
|
${if_match ${execi 60 df -h | grep universe-lvroot | awk '{print $5}' | cut -d"%" -f1} >= 90 }\
|
|
{"full_text":" ${execi 60 df -h | grep universe-lvroot | awk '{print $5}'}","color":"\#F15D25","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
|
${else}
|
|
{"full_text":" ${execi 60 df -h | grep universe-lvroot | awk '{print $5}'}","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"},\
|
|
$endif
|
|
$endif
|
|
|
|
|
|
#HOME
|
|
${if_match ${execi 60 df -h | grep universe-lvhome | awk '{print $5}' | cut -d"%" -f1} >= 95 }\
|
|
{"full_text":" ${execi 60 df -h | grep universe-lvhome | awk '{print $5}'}","color":"\#dc322f","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"}\
|
|
${else}
|
|
${if_match ${execi 60 df -h | grep universe-lvhome | awk '{print $5}' | cut -d"%" -f1} >= 90 }\
|
|
{"full_text":" ${execi 60 df -h | grep universe-lvhome | awk '{print $5}'}","color":"\#F15D25","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"}\
|
|
${else}
|
|
{"full_text":" ${execi 60 df -h | grep universe-lvhome | awk '{print $5}'}","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 65, "align": "left"}\
|
|
|
|
$endif
|
|
$endif
|
|
#MPV
|
|
|
|
#${if_match "${exec xdotool search --class mpv}"==""}\
|
|
#{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6, "min_width": 570, "align": "right"},\
|
|
#${else}
|
|
#{"full_text": " ${exec xprop -id $(xdotool search --class mpv) | grep 'NET_WM_NAME(UTF8_STRING)' | cut -d'"' -f2} ","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width":570 , "align": "right"}\
|
|
#$endif
|
|
|
|
#MUSIC
|
|
|
|
#${if_match "${exec mpc -f %artist% | head -n 1 | grep -v 'consume: off'| sed 's/\\n//g'}"==""}\
|
|
#{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6, "min_width": 600, "align": "left"}\
|
|
#${else}
|
|
# ${if_match "${exec mpc status | egrep 'paused|playing' | cut -d" " -f1}"=="[playing]"}\
|
|
# {"full_text": " ${exec echo $(mpc -f "%artist%" | head -n 1 | head -c 40 | cut -d"%" -f1) - $(mpc -f "%title%" | head -n 1 | head -c 40 | cut -d"%" -f1)} ","color":"\#c5c5c5","separator":false,"separator_block_width":6, "min_width": 600, "align": "right"}\
|
|
# ${else}
|
|
# {"full_text": " ${exec echo $(mpc -f "%artist%" | head -n 1 | head -c 40 | cut -d"%" -f1) - $(mpc -f "%title%" | head -n 1 | head -c 40 | cut -d"%" -f1)} ","color":"\#c5c5c5","separator":false,"separator_block_width":6,"min_width": 600, "align": "right"}\
|
|
# $endif
|
|
#SEPARATOR
|
|
#$endif
|
|
|
|
|
|
],
|