forked from mmhobi7/conky-spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conkyrc
95 lines (80 loc) · 4.01 KB
/
conkyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
--[[
#=====================================================================================
# conky-spotify based on Word Clock
# Date : package-date
# Author : Aaahh at https://github.com/Aaahh/conky-spotify/
# Version : package-version
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : https://github.com/Aaahh/conky-spotify/
#======================================================================================
# CONKY
# For commands in conky.config section:
# http://conky.sourceforge.net/config_settings.html
#
# For commands in conky.text section:
# http://conky.sourceforge.net/variables.html
#=====================================================================================
# FONTS
# To avoid copyright infringements you will have to download
# and install the fonts yourself sometimes.
#=====================================================================================
# GENERAL INFO ABOUT FONTS
# Go and look for a nice font on sites like http://www.dafont.com/ https://www.fontsquirrel.com/
# Download and unzip - double click the font to install it (font-manager must be installed)
# No font-manager then put fonts in ~/.fonts
# Change the font name in the conky
# The name can be known with a command in the terminal: fc-list | grep "part of name"
# Change width and height of the conky according to font
# Reboot your system or fc-cache -fv in terminal
# Enjoy
#=====================================================================================
# FONTS FOR THIS CONKY
# https://www.dafont.com/ll-record.font
# https://www.dafont.com/roboto.font
#======================================================================================
]]
conky.config = {
--Various settings
update_interval = 1, -- update interval
total_run_times = 0, -- total run times
double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
--Placement
alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
-- middle_left,middle_middle,middle_right,none
gap_x = 70, -- pixels between right or left border
gap_y = 75, -- pixels between bottom or left border
minimum_height = 90, -- minimum height of window
minimum_width = 300, -- minimum width of window
maximum_width = 400, -- maximum height of window
--Graphical
draw_borders = false, -- draw borders around text
draw_graph_borders = false, -- draw borders around graphs
draw_shades = false, -- draw shades
draw_outline = false, -- draw outline
-- Textual
use_xft = true, -- xft font - anti-aliased font
xftalpha = 1, -- alpha of the xft font - between 0-1
font = 'Roboto:size=10', -- font for complete conky unless in code defined
-- Window
own_window = true, -- create your own window to draw.
own_window_argb_value = 0, -- real transparency - composite manager required 0-255
own_window_argb_visual = true, -- use ARGB - composite manager required
own_window_transparent = true, -- if own_window_argb_visual is true sets background opacity 0%
own_window_class = 'desktop ', -- manually set the WM_CLASS name for use with xprop
own_window_type = 'desktop', -- if own_window true options are: normal/override/dock/desktop/panel
own_window_colour = '000000', -- set colour if own_window_transparent no
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
--Colours
color0 = 'FFFFFF',
color1 = 'E6E6E6',
color2 = '1A1A1A',
color3 = '000000',
};
conky.text = [[
${if_running spotify}
${image $HOME/.config/conky/latest.jpg -p 210/0,0 -s 90x90}
${voffset 0}${execpi 2 python $HOME/.conky/spotify-display/spotify_getinfo.py}
${endif}
]];