- # Place conky in the top right corner of the screen
- alignment top_right
- # Fork to background (yes or no)
- background no
- # Width of the border in pixels
- border_width 1
- # The number of samples to average for CPU monitoring
- cpu_avg_samples 2
- # Default font and border color
- default_color white
- # Default outline color
- default_outline_color white
- # Default shading color
- default_shade_color black
- # Draw borders around text
- draw_borders no
- # Draw outlines
- draw_outline no
- # Draw shades
- draw_shades yes
- # Use Xft (anti-aliased font and stuff)
- use_xft yes
- xftfont DejaVu Sans Mono:size=6
- # Gap in pixels between edge of window and border of conky
- gap_x 6
- gap_y 5
- # Minimum size of window
- minimum_size 5 5
- # The number of samples to average for network monitoring
- net_avg_samples 2
- # Subtract (file system) buffers from used memory
- no_buffers yes
- # Print text to stdout
- out_to_console no
- # Print text to stderr
- out_to_stderr no
- # Create own window ?
- own_window yes
- # Ensure that window does not show up as a window
- # This is done because own_window_type desktop makes conkey disappear when clicking the desktop
- own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
- # Make conky transparent
- own_window_transparent yes
- # Update conky every 1.0 seconds
- update_interval 1.0
- # Use double buffering to prevent flickering
- double_buffer yes
- TEXT
- ${scroll 45 $nodename - $sysname $kernel on $machine}
- $hr
- ${color grey}Uptime:$color $uptime
- ${color grey}Frequency (in MHz):$color $freq
- ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
- ${color grey}CPU Usage:$color $cpu% ${cpubar 4}
- ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
- $hr
- ${color grey}File systems:
- / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
- ${color grey}Networking:
- Up:$color ${upspeed wlan1} ${color grey} - Down:$color ${downspeed wlan1}
- $hr
- #
- # This is just to give a better view of the one-liner below
- #
- #${if_match "${exec cat /sys/class/power_supply/battery/status}" == "Discharging"}
- # ${if_match ${exec cat /sys/class/power_supply/battery/capacity} > 70}
- # ${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color lightgreen}${execbar cat /sys/class/power_supply/battery/capacity}${color}
- # ${else}
- # ${if_match ${exec cat /sys/class/power_supply/battery/capacity} > 30}
- # ${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color orange}${execbar cat /sys/class/power_supply/battery/capacity}${color}
- # ${else}
- # ${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color red}${execbar cat /sys/class/power_supply/battery/capacity}${color}
- # ${endif}
- # ${endif}
- #${else}
- # ${if_match "${exec cat /sys/class/power_supply/battery/status}" == "Charging"}
- # ${if_match ${exec cat /sys/class/power_supply/battery/capacity} < 71}
- # ${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color lightblue}${execbar cat /sys/class/power_supply/battery/capacity}${color}
- # ${else}
- # ${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color blue}${execbar cat /sys/class/power_supply/battery/capacity}${color}
- # ${endif}
- # ${else}
- # ${if_match "${exec cat /sys/class/power_supply/battery/status}" == "Full"}
- # ${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color green}${execbar cat /sys/class/power_supply/battery/capacity}${color}
- # ${endif}
- # ${endif}
- #${endif}
- #
- ${if_match "${exec cat /sys/class/power_supply/battery/status}" == "Discharging"}${if_match ${exec cat /sys/class/power_supply/battery/capacity} > 70}${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color lightgreen}${execbar cat /sys/class/power_supply/battery/capacity}${color}${else}${if_match ${exec cat /sys/class/power_supply/battery/capacity} > 30}${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color orange}${execbar cat /sys/class/power_supply/battery/capacity}${color}${else}${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color red}${execbar cat /sys/class/power_supply/battery/capacity}${color}${endif}${endif}${else}${if_match "${exec cat /sys/class/power_supply/battery/status}" == "Charging"}${if_match ${exec cat /sys/class/power_supply/battery/capacity} < 71}${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color lightblue}${execbar cat /sys/class/power_supply/battery/capacity}${color}${else}${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color blue}${execbar cat /sys/class/power_supply/battery/capacity}${color}${endif}${else}${if_match "${exec cat /sys/class/power_supply/battery/status}" == "Full"}${color grey}Battery:$color ${exec cat /sys/class/power_supply/battery/capacity}% ${color green}${execbar cat /sys/class/power_supply/battery/capacity}${color}${endif}${endif}${endif}
- $hr
- ${color grey}Name PID CPU% MEM%
- ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
- ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
- ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
- ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
Recent Pastes