Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

FIGURE 16.1 You can configure Conky to give up-to-the-moment
information about anything.


it, you will find that the IP address is being used by someone else now.) That
is a lot of information in a small space. This setup is not as pretty as some you
will see at the previous links, nearly all of which have their setup details made
freely available by the person who wrote the configurations.


In this example, Matthew is using two files to run Conky. The first one, called
conkyrc, is a text file that includes the configuration details for what you
see in Figure 16.1:


Click here to view code image
conky.config = {
-- Use Xft?
use_xft = true,
-- Xft font when Xft is enabled
--font = 'HackBold:size=9',
font = 'Ubuntu:size=8',
-- Text alignment, other possible values are commented
--minimum_size 10 10
gap_x = 13,
gap_y = 45,
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
-- Add spaces to keep things from moving about? This only affects
certain objects.
use_spacer = 'right',
-- Subtract file system buffers from used memory?
no_buffers = true,
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- Allows icons to appear, window to be moved, and transparency
own_window = true,
own_window_class = 'Conky',--new
--own_window_type override
own_window_transparent = true,
--own_window_hints undecorated,below,skip_taskbar
own_window_type = 'normal',--new
own_window_hints = 'undecorated,below,sticky,skip_taskbar',--new
own_window_argb_visual = true,--new
own_window_argb_value = 0,--new
-- set temperature units, either "farenheit" or "celsius"
temperature_unit = "fahrenheit",
-- set to yes if you want Conky to be forked in the background
background = true,
-- Update interval in seconds

Free download pdf