summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.i3/conkyrc66
1 files changed, 34 insertions, 32 deletions
diff --git a/.i3/conkyrc b/.i3/conkyrc
index f7e4a3c..b955ae8 100644
--- a/.i3/conkyrc
+++ b/.i3/conkyrc
@@ -1,45 +1,44 @@
-out_to_x no
-own_window no
-out_to_console yes
-background no
-max_text_width 0
-double_buffer no
+conky.config = {
+ out_to_x = false,
+ own_window = false,
+ out_to_console = true,
+ background = false,
+ max_text_width = 0,
+ double_buffer = false,
-# Update interval in seconds
-update_interval 2.5
+-- Update interval in seconds
+ update_interval = 2.5,
-# This is the number of times Conky will update before quitting.
-# Set to zero to run forever.
-total_run_times 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
+-- Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
+ short_units = true,
-# 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
+-- 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
+-- 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 yes
+-- Force UTF8? note that UTF8 support required XFT
+ override_utf8_locale = true,
-# number of cpu samples to average
-# set to 1 to disable averaging
-cpu_avg_samples 2
+-- number of cpu samples to average
+-- set to 1 to disable averaging
+ cpu_avg_samples = 2,
-lua_load $HOME/.i3/scripts/conky_helpers.lua
+ lua_load = '$HOME/.i3/scripts/conky_helpers.lua',
-template0 "$HOME/.i3/icons/\1.xbm"
+ template0 = [["$HOME/.i3/icons/\1.xbm"]],
+};
-# Stuff after 'TEXT' will be formatted on screen
-TEXT
-
-# JSON for i3bar
+conky.text = [[
[ \
${if_mpd_playing}{
"full_text" : "${lua json ${mpd_smart}}",\
@@ -71,3 +70,6 @@ TEXT
"color" : "\#40B5D6"\
} \
],
+]];
+
+-- vim:ft=lua