thezxtreme

Conky facebook widget

Apr 15th, 2016
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Use Xft?
  2. use_xft yes
  3. xftfont ubuntu:size=9
  4. xftalpha 0.8
  5. text_buffer_size 2048
  6.  
  7. # Update interval in seconds
  8. update_interval 1
  9.  
  10. # This is the number of times Conky will update before quitting.
  11. # Set to zero to run forever.
  12. total_run_times 0
  13.  
  14. own_window yes
  15. own_window_transparent yes
  16. #own_window_type override
  17. own_window_type normal
  18. #own_window_type normal #use this if you want a nice shadow to appear around conky
  19.  
  20. # If own_window is yes, these window manager hints may be used
  21. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  22.  
  23. # Use double buffering (reduces flicker, may not work for everyone)
  24. double_buffer yes
  25.  
  26. # Minimum size of text area
  27. minimum_size 170 0
  28. #maximum_width 0
  29.  
  30. # Draw shades?
  31. draw_shades no
  32.  
  33. # Draw outlines?
  34. draw_outline no
  35.  
  36. # Draw borders around text
  37. draw_borders no
  38.  
  39. # Stippled borders?
  40. stippled_borders 0
  41.  
  42. # border margins
  43. border_margin 5
  44.  
  45. # border width
  46. border_width 1
  47.  
  48. # Default colors and also border colors
  49. default_color white
  50. #default_shade_color black
  51. #default_outline_color grey
  52. own_window_colour 000000
  53. color0 steelblue
  54.  
  55. # Text alignment, other possible values are commented
  56. #alignment top_left
  57. alignment top_left
  58. #alignment bottom_left
  59. #alignment bottom_right
  60.  
  61. # Gap between borders of screen and text
  62. # same thing as passing -x at command line
  63. gap_x 0
  64. gap_y 0
  65.  
  66. # Subtract file system buffers from used memory?
  67. no_buffers yes
  68.  
  69. # set to yes if you want all text to be in uppercase
  70. uppercase no
  71.  
  72. # number of cpu samples to average
  73. # set to 1 to disable averaging
  74. cpu_avg_samples 6
  75.  
  76. # number of net samples to average
  77. # set to 1 to disable averaging
  78. net_avg_samples 2
  79.  
  80. # Force UTF8? note that UTF8 support required XFT
  81. override_utf8_locale yes
  82.  
  83. # Add spaces to keep things from moving about? This only affects certain objects.
  84. use_spacer none
  85.  
  86. own_window_argb_value 0
  87. own_window_argb_visual yes
  88.  
  89. TEXT
  90. ${font Ubuntu:size=7}Facebook Notifications:
  91. ${font Ubuntu:size=8}${color0}${execi 20 /home/thezxtreme/.conky/scripts/facebook}
  92.  
  93.  
  94. facebook script:
  95.  
  96. #!/bin/bash
  97. numberoflines=3
  98. address="Facebook RSS link goes here..."
  99.  
  100. wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4" -q $address -O - | grep title | sed 's/<title>//g' | sed 's/<\/title>//g' | sed 's/<!\[CDATA\[//g' | sed 's/]]>//g' | tail -n +2 | head -n $numberoflines
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×