Advertisement
Dobbie03

now playing conky

Sep 11th, 2021
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. conky.config = {
  2. --## Begin Window Settings #####################
  3. own_window = true,
  4. own_window_type = 'override',
  5. own_window_transparent = true,
  6. own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
  7. own_window_colour = '000000',
  8. own_window_class = 'conky',
  9. own_window_title = 'Now Playing Conky',
  10. --## ARGB can be used for real transparency
  11. --## NOTE that a composite manager is required for real transparency.
  12. --## This option will not work as desired (in most cases) in conjunction with
  13. --## own_window_type normal
  14. -- own_window_argb_visual true # Options: yes or no
  15.  
  16. --## When ARGB visuals are enabled, this use this to modify the alpha value
  17. --## Use: own_window_type normal
  18. --## Use: own_window_transparent no
  19. --## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
  20. -- own_window_argb_value 0
  21.  
  22. alignment = 'bottom_left',
  23. minimum_width = 2683,
  24. maximum_width = 8683,
  25. minimum_height = 300,
  26.  
  27. gap_x = 50,--## left | right
  28. gap_y = -50,--## up | down
  29. --###################### End Window Settings ###
  30. --## Font Settings #############################
  31. -- Use Xft (anti-aliased font and stuff)
  32. use_xft = true,
  33. font = 'SF Pro Text:size=8',
  34.  
  35.  
  36. -- Alpha of Xft font. Must be a value at or between 1 and 0 ###
  37. xftalpha = 1,
  38. -- Force UTF8? requires XFT ###
  39. override_utf8_locale = true,
  40.  
  41. uppercase = false,
  42. --######################## End Font Settings ###
  43. --## Colour Settings ###########################
  44. draw_shades = false,--yes
  45. default_shade_color = 'black',
  46.  
  47. draw_outline = false,-- amplifies text if yes
  48. default_outline_color = 'black',
  49.  
  50. --default_color = '#fffefe',-- Black
  51. default_color = '#c6c6c6',
  52. --default_color = '#212121',
  53. color0 = '#7a7a7a',-- Grey
  54. color1 = '#bf616a',-- Red
  55. color2 = '#a3be8c',-- Green
  56. color3 = '#ebcb8b',-- Yellow
  57. color4 = '#81a1c1',-- Blue
  58. --###################### End Colour Settings ###
  59. --## Borders Section ###########################
  60. draw_borders = false,
  61. -- Stippled borders?
  62. stippled_borders = 0,
  63. -- border margins
  64. border_inner_margin = 0,
  65. border_outer_margin = 0,
  66. -- border width
  67. border_width = 0,
  68. -- graph borders
  69. draw_graph_borders = true,--no
  70. --default_graph_size 15 40
  71. --####################### End Borders Secton ###
  72. --## Miscellaneous Section #####################
  73. -- Boolean value, if true, Conky will be forked to background when started.
  74. background = true,
  75. -- Adds spaces around certain objects to stop them from moving other things
  76. -- around, this only helps if you are using a mono font
  77. -- Options: right, left or none
  78. use_spacer = 'none',
  79.  
  80. -- Default and Minimum size is 256 - needs more for single commands that
  81. -- "call" a lot of text IE: bash scripts
  82. --text_buffer_size 6144
  83.  
  84. -- Subtract (file system) buffers from used memory?
  85. no_buffers = true,
  86.  
  87. -- change GiB to G and MiB to M
  88. short_units = true,
  89.  
  90. -- Like it says, ot pads the decimals on % values
  91. -- doesn't seem to work since v1.7.1
  92. pad_percents = 2,
  93.  
  94. -- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
  95. -- $image lots. Set to 0 to disable the image cache.
  96. imlib_cache_size = 0,
  97.  
  98. -- Use the Xdbe extension? (eliminates flicker)
  99. -- It is highly recommended to use own window with this one
  100. -- so double buffer won't be so big.
  101. double_buffer = true,
  102.  
  103. -- Maximum size of user text buffer, i.e. layout below TEXT line in config file
  104. -- (default is 16384 bytes)
  105. -- max_user_text 16384
  106.  
  107. -- Desired output unit of all objects displaying a temperature. Parameters are
  108. -- either "fahrenheit" or "celsius". The default unit is degree Celsius.
  109. -- temperature_unit Fahrenheit
  110. --################ End Miscellaneous Section ###
  111.  
  112. update_interval = 1,
  113.  
  114. };
  115.  
  116. conky.text = [[
  117. #${image ~/.conky/res/bg.png -p 0,0}
  118. ${voffset 20}\
  119. ${offset 180}${font SF Pro Text:size=10.5}${if_running mpd}${mpd_title}${else}MPD${endif}\
  120. ${voffset 12}
  121. ${offset 180}${font SF Pro Text:size=10.5}${if_running mpd}${mpd_artist}${else}Is not playing${endif}\
  122. ${voffset 4}
  123. ${offset 180}${font SF Pro Text:Bold:size=10.5}${if_running mpd}${mpd_album}${else}...${endif}\
  124. ${voffset -4}
  125.  
  126. ${offset 180}${font SF Pro Text:size=7:regular}${if_running mpd}$mpd_elapsed - $mpd_length${else}Is not playing${endif}\
  127.  
  128.  
  129. ${if_running mpd}${execi 4 ~/.conky/res/albumart}\
  130. ${image /tmp/cover2.png -p 20,-00 -s 140x140}\
  131. ${else}${image ~/.conky/res/mpd-off.png -p 20,20 -s 120x120}${endif} \
  132. ]];
  133.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement