Overclock.net banner

Do you feel happy giving your config code to less knowledgeable users?

  • Yes, anything to help.

    Votes: 2 100.0%
  • No, they should work it out for themselves.

    Votes: 0 0.0%

Share your Config files!!!

3504 Views 10 Replies 7 Participants Last post by  enorbet2
This is a thread for the sharing and asking-questions-about config files. For the desktop. So things like conky files.

How to edit your desktop using "conky."


Some cool desktops:






Share your config

Please:


  • Post a picture of your desktop

  • Use "code" BBcode tags to place your code

  • Help improve Linux desktops around the world!


I just installed Arch so will post something when I feel proud of it.
1 - 11 of 11 Posts

· Premium Member
Joined
·
10,264 Posts
Not flashy, and hardly ever changes.

338

.xinitrc
Code:

Code:
# Sync Xresources
 xrdb -merge ~/.Xresources &

# Start xCompMgr
 xcompmgr -c -t-5 -l-5 -r4.2 -o1 &

# Set pointer for XMonad
# xsetroot -cursor_name left_ptr &

# Start Rxvt-Unicode Daemon
 urxvtd -q -o -f &

# Set Background
 sh ~/.fehbg &

# Start MPD 
 mpd ~/.mpd/mpd.conf &

# Start Conky
# conky -c ~/documents/conky/conkyrc &

# Start DWM/WMFS Status Bar
  while true;
    do 
    source /home/sarge/documents/scripts/dwm-status.sh
    sleep 1s
  done &

# Start Window Manager
# exec wmfs
# exec xmonad
 exec dwm
# exec scrotwm

.Xresources
Code:

Code:
! URxvt 
!-----------------------------------------------------------------

URxvt*buffered:         true
URxvt*transparent:      false
URxvt*shading:          80
URxvt*depth:            32
URxvt*tint:                     true
URxvt*background:       rgba:0000/0000/0000/5555
URxvt*scrollBar:        false

URxvt.font:                      xft:DejaVuSansMono:pixelsize=10

URxvt.perl-ext: 
URxvt.perl-ext-common:

! Xft
!-----------------------------------------------------------------

Xft.antialias:          true
Xft.hinting:            true
Xft.rgba:                       rga
Xft.hintstyle:          hintslight
Xft.dpi:                        96

! Colours
!-----------------------------------------------------------------
!#include           "/home/sarge/documents/colours/hund"
!#include           "/home/sarge/documents/colours/milomouse"
!#include           "/home/sarge/documents/colours/light"
#include            "/home/sarge/documents/colours/washed"
!#include           "/home/sarge/documents/colours/zenburn"
!#include           "/home/sarge/documents/colours/default"

documents/colours/washed
Code:

Code:
!Theme Twenty
*foreground: rgb:aa/aa/aa
*background: rgb:aa/aa/aa
*color0:     rgb:30/34/30
*color1:     rgb:bf/79/79
*color2:     rgb:97/b2/6b
*color3:     rgb:cd/cd/c1
*color4:     rgb:86/a2/be
*color5:     rgb:d9/b7/98
*color6:     rgb:a1/b5/cd
*color7:     rgb:ff/ff/ff
*color8:     rgb:cd/b5/cd
*color9:     rgb:f4/a4/5f
*color10:    rgb:c5/f7/79
*color11:    rgb:ff/ff/ef
*color12:    rgb:98/af/d9
*color13:    rgb:d7/d9/98
*color14:    rgb:a1/b5/cd
*color15:    rgb:de/de/de

documents/scripts/dwm-status.sh
Code:

Code:
#!/bin/bash
# Status script for dwm

mem(){
     mem="$(free -m | sed -n 's|^-.*:[ \t]*\([0-9]*\) .*|\1|gp')"
     echo -e "$mem"
     }

vol(){
     vol="$(amixer get Master | sed -n 's|.*\[\([0-9]*\)\%.*|\1%|pg')"
     echo -e "$vol"
     }

pac(){
     pac="$(pacman -Qu | wc -l)"
     if [ $pac == 1 ]; then
     echo -e "0" 
     else
     echo -en "$pac"
     fi
     }

dte(){
     dte="$(date "+ %a     %m/%d/%Y    %I:%M")"
     echo -e "$dte"
     }

xsetroot -name "[ Mpd. `mpc current` ] [ Vol. $(vol) ] [ Mem. $(mem) ] [ Updates. $(pac) ] [ $(dte) ] "

DWM/config.h
Code:

Code:
/* See LICENSE file for copyright and license details. */

/* appearance */
#define NUMCOLORS 4 // need at least 3
static const char colors[NUMCOLORS][ColLast][8] = {
   // border   foreground  background
   { "#111111", "#FFFFFF", "#111111" },  // 0 = normal
   { "#203A63", "#FFFFFF", "#203A63" },  // 1 = selected 
   { "#E67373", "#FFFFFF", "#D78787" },  // 2 = urgent/warning
   { "#303030", "#FFFFFF", "#303030" },  // 3 = unselected monitor/dmenu highlight
   // add more here
};
static const char font[]            = "Anka/Coder Condensed, 8";
static const char dmenufont[]       = "Anka/Coder Condensed-8";
static const unsigned int borderpx  = 1;        /* border pixel of windows */
static const unsigned int snap      = 10;       /* snap pixel */
static const Bool showbar           = True;     /* False means no bar */
static const Bool topbar            = False;     /* False means bottom bar */
static const int marginbottom       = 0;       /* Bottom padding for conky */

/* layout(s) */
static const float mfact        = 0.75; /* factor of master area size [0.05..0.95] */
static const int nmaster        = 2;    /* default number of clients in the master area */
static const unsigned int gappx = 4;    /* gap pixel between windows */
static const unsigned int shade = 100;   /* opacity of unfocused windows */
static const Bool resizehints   = False;/* True means respect size hints in tiled resizals */

#include "nbstack.c"
#include "pidgin_ggrid.c"
#include "gaplessgrid.c"

static const Layout layouts[] = {
  /* symbol add gaps  arrange function */
  { "=2]",  True,     ntile        },    /* first entry is default */
  { "T2T",  True,     nbstack      },
  { "[+]",  True,     gaplessgrid  },
  { "[M]",  False,    monocle      },
  { ":++",  True,     pidgin_ggrid },
  { "><>",  False,    NULL         },    /* no layout function means floating behavior */
};

/* tagging */
static const Tag tags[] = {
  /* name       layout        mfact   nmaster */
  { "Main",    &layouts[0],  -1,     -1 },
  { "Term",    &layouts[2],  -1,     -1 },
  { "Web",     &layouts[2],  -1,     -1 },
  { "IRC",     &layouts[0],  -1,     -1 },
  { "IM",      &layouts[4],   0.15,  -1 },
  { "Other",   &layouts[0],  -1,     -1 },
  { "Torrent", &layouts[0],  -1,     -1 },
  { "Media",   &layouts[2],  -1,     -1 },
  { "Misc",    &layouts[0],  -1,     -1 },
};

/* rules */
static const char ncmpcpp[]      = "ncmpc++ ver. 0.5.7";
static const Rule rules[] = {
  /* class              instance    title       tags mask     isfloating   monitor opacity */
  { "Firefox",          NULL,       NULL,       1 << 2,       False,        1,     -1 },
  { "Namoroka",         NULL,       NULL,       1 << 2,       False,        1,     -1 },
  { "Chromium",         NULL,       NULL,       1 << 2,       False,        1,     -1 },
  { "Pidgin",           NULL,       NULL,       1 << 4,       False,        0,     -1 },
  { "Pidgin",           NULL,       "Pidgin",   1 << 4,       False,        0,     -1 },
  { "URxvt",            NULL,       ncmpcpp,    1 << 7,       False,       -1,     -1 },
};

/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
        { MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
        { MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
        { MODKEY|ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
        { MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },

/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }

/* commands */
static const char spadname[]  = "Scratchpad";
static const char *dmenucmd[] = { "dmenu_run", 
                                  "-fn",        dmenufont, 
                                  "-nb",        colors[0][ColBG], 
                                  "-nf",        colors[0][ColFG], 
                                  "-sb",        colors[3][ColBG], 
                                  "-sf",        colors[3][ColFG], NULL };
static const char *termcmd[]  = { "urxvtc",                       NULL };
static const char *webcmd[]   = { "firefox",                      NULL };
static const char *webcmd2[]  = { "firefox", "-private",          NULL };
static const char *imcmd[]    = { "pidgin",                       NULL };
static const char *spadcmd[]  = { "urxvtc", 
                                  "-name",      spadname, 
                                  "-geometry",  "100x25",         NULL };

#include "push.c"

static Key keys[] = {
        /* modifier                     key        function        argument */
        { MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
        { MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
  { MODKEY,                       XK_w,      spawn,          {.v = webcmd } },
  { MODKEY|ShiftMask,             XK_w,      spawn,          {.v = webcmd2 } },
  { MODKEY,                       XK_d,      spawn,          {.v = devcmd } },
  { MODKEY,                       XK_i,      spawn,          {.v = imcmd } },
  { MODKEY,                       XK_c,      togglespad,     {.v = spadcmd } },
  { MODKEY,                       XK_m,      spawn,          {.v = mailcmd } },
        { MODKEY,                       XK_b,      togglebar,      {0} },
        { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
        { MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
  { MODKEY|ShiftMask,             XK_j,      pushdown,       {0} },
  { MODKEY|ShiftMask,             XK_k,      pushup,         {0} },
        { MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
        { MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
        { MODKEY,                       XK_Return, zoom,           {0} },
/*{ MODKEY,                       XK_Tab,    view,           {0} },*/
  { MODKEY,                       XK_Tab,    focusstack,     {.i = +1 } },
        { MODKEY|ShiftMask,             XK_c,      killclient,     {0} },
        { MODKEY|ControlMask,           XK_t,      setlayout,      {.v = &layouts[0]} },
  { MODKEY|ControlMask,           XK_s,      setlayout,      {.v = &layouts[1]} },
  { MODKEY|ControlMask,           XK_g,      setlayout,      {.v = &layouts[2]} },
        { MODKEY|ControlMask,           XK_m,      setlayout,      {.v = &layouts[3]} },
  { MODKEY|ControlMask,           XK_p,      setlayout,      {.v = &layouts[4]} },
        { MODKEY|ControlMask,           XK_f,      setlayout,      {.v = &layouts[5]} },
        { MODKEY,                       XK_space,  setlayout,      {0} },
        { MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
/*{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },*/
        { MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
        { MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },
        { MODKEY,                       XK_period, focusmon,       {.i = +1 } },
        { MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
        { MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
        TAGKEYS(                        XK_1,                      0)
        TAGKEYS(                        XK_2,                      1)
        TAGKEYS(                        XK_3,                      2)
        TAGKEYS(                        XK_4,                      3)
        TAGKEYS(                        XK_5,                      4)
        TAGKEYS(                        XK_6,                      5)
        TAGKEYS(                        XK_7,                      6)
        TAGKEYS(                        XK_8,                      7)
        TAGKEYS(                        XK_9,                      8)
        { MODKEY|ShiftMask,             XK_q,      quit,           {0} },
};

/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
        /* click                event mask      button          function        argument */
        { ClkLtSymbol,          0,              Button1,        setlayout,      {0} },
        { ClkLtSymbol,          0,              Button3,        setlayout,      {.v = &layouts[2]} },
        { ClkWinTitle,          0,              Button2,        zoom,           {0} },
        { ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
        { ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },
        { ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
        { ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
        { ClkTagBar,            0,              Button1,        view,           {0} },
        { ClkTagBar,            0,              Button3,        toggleview,     {0} },
        { ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
        { ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
};

.ncmpcpp/config
Code:

Code:
#=================================#
#||                             ||#
#||  N C M P C P P  C O N F I G ||#
#||                             ||#
#=================================#
##
##### connection settings #####
## set it in order to make tag editor and renaming files work properly
mpd_host = "localhost"
mpd_port = "6600"
mpd_music_dir = "/media/Data/Music"
mpd_connection_timeout = "5"
mpd_crossfade_time = "1"
mpd_communication_mode = "notifications" (polling/notifications)
##### music visualizer #####
##
## Note: In order to make music visualizer work you'll
## need to use mpd fifo output, whose format parameter
## has to be set to 44100:16:1. Example configuration:
## (it has to be put into mpd.conf)
##
## audio_output {
##        type            "fifo"
##        name            "My FIFO"
##        path            "/tmp/mpd.fifo"
##        format          "44100:16:1"
## }
##
visualizer_fifo_path = "/tmp/mpd.fifo"
##
## Note: Below parameter is needed for ncmpcpp
## to determine which output provides data for
## visualizer and thus allow syncing between
## visualization and sound as currently there
## are some problems with it.
##
visualizer_output_name = "FIFO"
##
## Note: Below parameter defines how often ncmpcpp
## has to "synchronize" visualizer and audio outputs.
## 30 seconds is optimal value, but if you experience
## synchronization problems, set it to lower value.
## Keep in mind that sane values start with >=10.
##
visualizer_sync_interval = "25"
##
## Note: To enable spectrum frequency visualization
## you need to compile ncmpcpp with fftw3 support.
##
visualizer_type = "wave" (spectrum/wave)
##### system encoding #####
##
## ncmpcpp should detect your charset encoding
## but if it failed to do so, you can specify
## charset encoding you are using here.
##
## Note: You can see whether your ncmpcpp build
## supports charset detection by checking output
## of `ncmpcpp --version`.
##
## Note: Since MPD uses utf8 by default, setting
## this option makes sense only if your encoding
## is different.
##
system_encoding = ""
##### delays #####
## delay after playlist highlighting will be disabled (0 = don't disable)
playlist_disable_highlight_delay = "5"
## defines how long various messages are supposed to be visible
message_delay_time = "4"
##### song format #####
## for song format you can use:
##
## %l - length
## %f - filename
## %D - directory
## %a - artist
## %A - album artist
## %t - title
## %b - album
## %y - year
## %n - track number (01/12 -> 01)
## %N - full track info (01/12 -> 01/12)
## %g - genre
## %c - composer
## %p - performer
## %d - disc
## %C - comment
## $R - begin right alignment
##
## you can also put them in { } and then it will be displayed
## only if all requested values are available and/or define alternate
## value with { }|{ } eg. {%a - %t}|{%f}
##
## Note: Format that is similar to "%a - %t" (i.e. without any additional
## braces) is equal to "{%a - %t}", so if one of the tags is missing,
## you'll get nothing.
##
## text can also have different color than the main window has,
## eg. if you want length to be green, write $3%l$9
##
## available values:
##
## - 0 - default window color (discards all other colors)
## - 1 - black
## - 2 - red
## - 3 - green
## - 4 - yellow
## - 5 - blue
## - 6 - magenta
## - 7 - cyan
## - 8 - white
## - 9 - end of current color
##
## Note: colors can be nested.
##
song_list_format = "{%a - }{%t}|{$8%f$9}$R{$3(%l)$9}"
song_status_format = "{{%a{ \"%b\"{ (%y)}} - }{%t}}|{%f}"
song_library_format = "{%n - }{%t}|{%f}"
tag_editor_album_format = "{(%y) }%b"
##
## Note: Below variables are for alternative version of user's interface.
## Their syntax supports all tags and colors listed above plus some extra
## markers used for text attributes. They are followed by character '$'.
## After that you can put:
##
## - b - bold text
## - u - underline text
## - r - reverse colors
## - a - use alternative character set
##
## If you don't want to use an attribute anymore, just put it again, but
## this time insert character '/' between '$' and attribute character,
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename
## with reversed colors.
##
#
alternative_header_first_line_format = "$b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b"
#
alternative_header_second_line_format = "{{$4%a$9}{ - $7%b$9}}|{%D}"
#
##
## Note: Below variables also supports
## text attributes listed above.
##
#
now_playing_prefix = "$b$u"
now_playing_suffix = "$/b$/u"
browser_playlist_prefix = "$2playlist$9 "
selected_item_prefix = "$6"
selected_item_suffix = "$9"
## colors are not supported for below variable
song_window_title_format = "{%a - }{%t}|{%f}"
##### columns settings #####
##
## syntax of song columns list format is "column column etc."
##
## - syntax for each column is:
##
## (width of column)[column's color]{displayed tag}
##
## Note: Width is by default in %, if you want a column to
## have fixed size, add 'f' after the value, e.g. (10)[white]{a}
## will be the column that take 10% of screen (so the real column's
## width will depend on actual screen size), whereas (10f)[white]{a}
## will take 10 terminal cells, no matter how wide the screen is.
##
## - color is optional (if you want the default one, type [])
##
## Note: You can give a column additional attributes by putting appropriate
## character after displayed tag character. Available attributes are:
##
## - r - column will be right aligned
## - E - if tag is empty, empty tag marker won't be displayed
##
## You can also:
##
## - give a column custom name by putting it after attributes,
##   separated with character ':', e.g. {lr:Length} gives you
##   right aligned column of lengths named "Length".
##
## - define sequence of tags, that have to be displayed in case
##   predecessor is empty in a way similar to the one in classic
##   song format, i.e. using '|' character, e.g. {a|c|p:Owner}
##   creates column named "Owner" that tries to display artist
##   tag and then composer and performter if previous ones are
##   not available.
##
song_columns_list_format = "(7f)[green]{l} (40)[cyan]{t|f} (25)[blue]{a} (30)[green]{b}"
##### various settings #####
#
##
## Note: Custom command that will be executed each
## time song changes. Useful for notifications etc.
##
## Attention: It doesn't support song format anymore.
## Use `ncmpcpp --now-playing SONG_FORMAT` instead.
##
execute_on_song_change = ""
playlist_show_remaining_time = "no"
playlist_shorten_total_times = "yes"
playlist_separate_albums = "no"
playlist_display_mode = "columns" (classic/columns)
browser_display_mode = "columns" (classic/columns)
search_engine_display_mode = "classic" (classic/columns)
discard_colors_if_item_is_selected = "yes"
incremental_seeking = "yes"
seek_time = "1"
autocenter_mode = "yes"
centered_cursor = "yes"
progressbar_look = "//"
default_place_to_search_in = "database" (database/playlist)
user_interface = "alternative" (classic/alternative)
media_library_left_column = "a" (possible values: a,y,g,c,p, legend above)
default_find_mode = "wrapped" (wrapped/normal)
default_space_mode = "add" (add/select)
default_tag_editor_left_col = "albums" (albums/dirs)
default_tag_editor_pattern = "%n - %t"
header_visibility = "yes"
statusbar_visibility = "yes"
header_text_scrolling = "yes"
fancy_scrolling = "yes"
cyclic_scrolling = "no"
lines_scrolled = "2"
follow_now_playing_lyrics = "no"
ncmpc_like_songs_adding = "yes" (enabled - add/remove, disabled - always add)
show_hidden_files_in_local_browser = "no"
display_screens_numbers_on_start = "yes"
##
## How shall key_screen_switcher work?
##
## - "previous" - switch between current and last used screen
## - "sequence: 2 -> 9 -> 5" - switch between given sequence of screens.
##
## Screen numbers you can use after 'sequence' keyword are:
##
## - 1 - help
## - 2 - playlist
## - 3 - browser
## - 4 - search engine
## - 5 - media library
## - 6 - playlist editor
## - 7 - tag editor
## - 8 - outputs
## - 9 - visualizer
## - 10 - clock
##
## As you can see, above example will switch between
## playlist, visualizer and media library screens.
##
screen_switcher_mode = "sequence: 2 -> 3"
##
## Note: You can define startup screen for ncmpcpp
## by choosing screen number from the list above.
##
startup_screen = "2"
jump_to_now_playing_song_at_start = "yes"
ask_before_clearing_main_playlist = "no"
clock_display_seconds = "yes"
display_volume_level = "yes"
display_bitrate = "no"
display_remaining_time = "no"
regular_expressions = "basic" (basic/extended)
##
## Note: If below is enabled, ncmpcpp will ignore leading
## "The" word while sorting items in browser, tags in
## media library, etc.
##
ignore_leading_the = "no"
block_search_constraints_change_if_items_found = "yes"
mouse_support = "yes"
mouse_list_scroll_whole_page = "yes"
empty_tag_marker = "<empty>"
tag_editor_extended_numeration = "no"
media_library_display_date = "yes"
media_library_disable_two_column_mode = "no"
enable_window_title = "yes"
##
## Note: You can choose default search mode for search
## engine. Available modes are:
##
## - 1 - use mpd built-in searching (no regexes, pattern matching)
## - 2 - use ncmpcpp searching (pattern matching with support for regexes,
##       but if your mpd is on a remote machine, downloading big database
##       to process it can take a while
## - 3 - match only exact values (this mode uses mpd function for searching
##       in database and local one for searching in current playlist)
##
#
#search_engine_default_search_mode = "1"
#
##
## Note: Below variables can allow you to physically
## remove files and directories from your hdd using
## ncmpcpp's browser screen.
##
allow_physical_files_deletion = "no"
allow_physical_directories_deletion = "no"
##### lyrics support #####
##
## supported lyrics databases:
##
## - 1 - lyricsplugin.com
##
lyrics_database = "1"
external_editor = "vim"
use_console_editor = "yes" (set to yes, if your editor is console app)
##### colors definitions #####
colors_enabled = "yes"
empty_tag_color = "black"
header_window_color = "blue"
volume_color = "blue"
state_line_color = "black"
state_flags_color = "cyan"
main_window_color = "blue"
color1 = "blue"
color2 = "cyan"
main_window_highlight_color = "cyan"
progressbar_color = "cyan"
statusbar_color = "blue"
alternative_ui_separator_color = "blue"
active_column_color = "red"
window_border_color = "green"
active_window_border = "red"

.vimrc
Code:

Code:
set number
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
colorscheme github
 

· Premium Member
Joined
·
10,264 Posts
Quote:
Originally Posted by Plan9 View Post

why are you starting mpd this way rather than via init.rc / rc.conf as all daemons should?
I rather have it locallized than daemonized
tongue.gif


Also makes it easier for multiple users on this machine. Each user here has different music folders on the network, and they don't exactly want to log in to have mpd blasting my music on them. (which used to happen quite often when it was set up as a daemon)
 

· Premium Member
Joined
·
7,864 Posts
Quote:
Originally Posted by Shrak View Post

I rather have it locallized than daemonized
tongue.gif

Also makes it easier for multiple users on this machine. Each user here has different music folders on the network, and they don't exactly want to log in to have mpd blasting my music on them. (which used to happen quite often when it was set up as a daemon)
Fair enough then
smile.gif
 

· Premium Member
Joined
·
10,264 Posts
Quote:
Originally Posted by Plan9 View Post

I'm liking some of your configs there Shrak (just got round to using some of the console ones on my box)
thumb.gif


Spent a lot of time at the Arch/#! forums looking at other screens/configs to figure out what I wanted mine to look like. Most of those I think are older though (grabbed them from my old github account). I've got completely different ones for my Gentoo install that are newer and I could upload sometime.
 

· Registered
Joined
·
1,111 Posts
375

Ultimate Edition 2.6.3 (10.04 Lucid Lynx)

CONKY
Code:

Code:
background no
font Sans:size=8
#xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color 42C0FB
default_shade_color black
default_outline_color green
alignment top_right
gap_x 30
gap_y 60
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
uppercase yes # set to yes if you want all text to be in uppercase

TEXT
${color 36DBCA}SYSTEM ${hr 1} ${color}

Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp}C

CPU: ${alignr}${freq} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

CPU1 ${alignr}${cpu cpu1}%
${color A9ACB6}${cpubar 4}${color}
CPU2 ${alignr}${cpu cpu2}%
${color A9ACB6}${cpubar 4 cpu2}${color}

Ram ${alignr}$mem / $memmax ($memperc%)
${color A9ACB6}${membar 4}${color}
swap ${alignr}$swap / $swapmax ($swapperc%)
${color A9ACB6}${swapbar 4}${color}

Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}

Highest MEM $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}

${color 36DBCA}Filesystem ${hr 1} ${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${color A9ACB6}${fs_bar 4 /}${color}

${color 36DBCA}NETWORK ${hr 1}${color}

Ethernet${hr 1}
Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107 ffffff e87525} ${alignr}${upspeedgraph eth0 25,107 ffffff e87525 }
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

Wireless${hr 1}
Down ${downspeed eth1} k/s ${alignr}Up ${upspeed eth1} k/s
${downspeedgraph eth1 25,107 ffffff e87525} ${alignr}${upspeedgraph eth1 25,107 ffffff e87525 }
Total ${totaldown eth1} ${alignr}Total ${totalup eth1}
 

· Registered
Joined
·
67 Posts
Just bought a 120GB Patriot Pyro SE and reinstalled everything, so here's my new setup:

338

First is the script for my battery info:
Code:

Code:
#!/bin/bash
function get_color {
        if [ "$1" -gt 39 ]; then
                echo '${color Forestgreen}'
        elif [ "$1" -gt 25 ]; then
                echo '${color Yellow}'
        elif [ "$1" -gt 9 ]; then
                echo '${color Firebrick}'
        else
                echo '${color Red3}'
        fi
}

BAT=$(acpi)
BAT=${BAT:11}
count=0
notfull=false
for i in $BAT; do
        if [ "$count" == 0 ]
        then
                status=$i
        elif [ "$count" == 1 ]
        then
                perc=$i
        else
                timestat=$timestat" "$i
                notfull=true
        fi
        count=$(expr $count + 1)
done
status=${status:0: (-1)}
if [ "$notfull" == "true" ]; then
        perc=${perc:0: (-2)}
else
        perc=${perc:0: (-1)}
fi
case $1 in
        "status")
                echo $status
                ;;
        "percent")
                echo $perc
                ;;
        "timestat")
                echo $timestat
                ;;
        "color")
                echo $(get_color $perc)
                ;;
        *)
                ;;
esac

Next script loops through all my git repositories and returns their status.
Code:

Code:
#!/bin/bash
function file_to_array()
{
        old_IFS=$IFS
        IFS=$'\n'
        lines=($(cat $1)) # array
        IFS=$old_IFS
        echo ${lines[@]}
}
function get_length()
{
        echo $1 > ~/.conky/logs/word.tmp
        count=0
        while IFS= read -r -n1 char; do
                count=$(expr $count + 1)
        done < ~/.conky/logs/word.tmp
        echo $count
}

cd ~/workspaces/
FILES=$(pwd)/*
NUM=0
for i in $FILES; do
        cd $i
        if [ -d .git ]; then
                STAT=$(git status)
                name[$NUM]=$(basename $i)
                status[$NUM]=${STAT}
        fi
        NUM=$(expr $NUM + 1)
done
LAST=$(cat ~/.conky/logs/curgit.log)
CUR=$(expr $LAST + 1)
if [ "$CUR" == "$NUM" ]; then
        CUR=1
fi
status[$CUR]=${status[$CUR]:1}
cd ~/.conky/logs
echo ${status[$CUR]} > tmpstat1.tmp
sed 's/#/\\n\\# newline/g' tmpstat1.tmp > tmpstat2.tmp
sed 's/nothing added to commit but/\\n\\# newline nothing added to commit but/g' tmpstat2.tmp >tmpstat3.tmp

numlets=0
for i in $(cat tmpstat3.tmp); do
        if [ "$i" != "newline" ]; then
                finstats=$finstats$(echo " ")$i
        fi
        if [ "$numlets" -gt 25 ]; then
                finstats=$finstats$(echo "\n\\#\t")
                numlets=8
        elif [ "$i" != "newline" ]; then
                        numlets=$(expr $numlets + $(get_length $i))
        fi
done
echo $finstats > tmpstat4.tmp

sed 's/\\n\\#\\n\\#\\t \\n\\#/\\n\\#\\n\\#\\t/g' tmpstat4.tmp > tmpstat5.tmp

echo $CUR > ~/.conky/logs/curgit.log
echo '${font Arial:bold:size=8}''${color Tan3}'${name[$CUR]}
echo -e '$font${color Gray80}'$(cat tmpstat5.tmp)

This one just returns my external IP if I'm connected to the internet.
Code:

Code:
#!/bin/bash

#IP=$(wget -O - http://whatismyip.org/ | tail)
#IP=$(wget -O - -q icanhazip.com)
IP=$(curl headdetect.com)
if [ "$IP" ]; then
        echo $IP
else
        echo NA
fi

Next is the script to track my torrents in transmission. Credit for the original version of this script goes to 987poiuytrewq on the Ubuntu Forums. I just changed it around to make it easier to get individual variables from within the .conkyrc rather than parsing the script.
Code:

Code:
#! /bin/bash

#trim torrent name to this many characters
trim=20

#more settings further down marked with ========================

#get listing of all torrent info from transmission
# NOTE: you need to install transmission-cli AND UNINSTALL transmission-daemon
alltorrents=$(transmission-remote -l | sed -n -e '$b' -e '2,$p')

n=$(echo "$alltorrents" | wc -l)

#parse output to get data
#DO NOT EDIT THIS BIT
TOT=0
for i in `seq $n`
do
        torrent[$i]=$(echo "$alltorrents" | sed -n ''$i'p' | sed 's/   */\//g')

        progress[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $3}' | sed 's/%//')
        percent[$i]=$(echo 'scale=2; '${progress[$i]}'/100' | bc)
        have[$i]=$(echo  ${torrent[$i]} | awk -F/ '{print $4}')
        eta[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $5}')
        up[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $6}')
        down[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $7}')
        ratio[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $8}')
        status[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $9}')
        name[$i]=$(echo ${torrent[$i]} | awk -F/ '{print $10}' )
        #trim and add ellipsis if too long
        if [ `echo ${name[$i]} | wc -m` -gt $trim ]
        then

                name[$i]=$(echo ${name[$i]} | cut -c -$trim)...
        fi
        TOT=$(expr $TOT + 1)
done

#convert status to symbols

#output data to conky, using standard conky formating

#some more settings=====================================================
#=======================================================================

#limit output to a certain number of torrents, all is a=$n first four is a=4 etc
a=$n

#progress bar length from right edge of conky
barlength=80

#change colours of listing depending on status and/or add icons
# icons are webding fonts eg pause symbol, down arrow etc
#CHANGE COLORS TO DESIRED OR COMMENT OUT IF NO COLORS WANTED
#movedown=$(echo '14*'$n | bc)
#echo '${voffset -'$movedown'}'
for i in `seq $a`
do
        case ${status[$i]} in
        "Idle")
                icon[$i]='${font Webdings};${font}' 
                color[$i]="B7B7B7"    
                ;;
        "Stopped")
                icon[$i]='${font Webdings}<${font}' 
                color[$i]="B7B7B7"    
                ;;
        "Up & Down")
                icon[$i]='${font Webdings}6${font}' 
                #color[$i]= 
                ;;
        "Downloading")
                icon[$i]='${font Webdings}6${font}' 
                #color[$i]=
                ;;
        "Seeding")
                icon[$i]='${font Webdings}5${font}'
                color[$i]='FFFFFF'
                ;;
        *)
                ;;
        esac
        #test to check we actually got some data back
        if [ -z "$alltorrents" ] 
        then
                #if not, print error message if you like, and exit
                #echo "Can't connect to transmission"
                exit
        fi
done
#===================================================================

        #EDIT THE FOLLOWING BIT TO CONTROL DATA SEEN IN CONKY
        #enclose conky commands with ' '
        #enclose variables from this script with " " or nothing
        #in form ${name[$i]} where $i refers to the torrent number
        #possible variables are:
        #       progress        number 1-100 how much downloaded eg "45"
        #       percent         same but 0-1 eg "0.45"
        #       have            amount downloaded as string  eg "4.1 GB"
        #       eta             estimated time of arrival as string eg "4 hrs"
        #       up              transfer rate up in KB/s eg "21.1"
        #       down            transfer rate down in KB/s eg "21.1"
        #       ratio           transfer ratio for torrent eg "0.88"
        #       status          eg "Downloading"
        #       icon            a small icon indicating status (see above 
        #                       section)
        #       color           color depending on status (see above section)
        #                       eg "FF88AA" NB: must use exactly the format:
        #                       '${color '${color[$i]}'}' to apply the color to 
        #                       a stretch of text, and remember to end it with
        #                       '${color}'
        #       to draw the progress bar, use the exact command (incl single
        #       quotes) '${execbar echo '${percent[%i]'}' and control the
        #       length with '${alignr '$barlength'}' where barlength defined above

if [ $2 ]; then
        NUM=$2
else
        NUM=1   
fi
if [ "$TOT" -lt  "$NUM" ]; then
        exists=false
else
        exists=true
fi
        case $1 in
                "name")
                        echo ${name[$NUM]}
                        ;;
                "progress")
                        echo ${progress[$NUM]}
                        ;;
                "percent")
                        echo ${percent[$NUM]}
                        ;;
                "have")
                        echo ${have[$NUM]}
                        ;;
                "eta")
                        echo ${eta[$NUM]}
                        ;;
                "up")
                        echo ${up[$NUM]}
                        ;;
                "down")
                        echo ${down[$NUM]}
                        ;;
                "ratio")
                        echo ${ratio[$NUM]}
                        ;;
                "status")
                        echo ${status[$NUM]}
                        ;;
                "icon")
                        echo ${icon[$NUM]}
                        ;;
                "color")
                        echo ${color[$NUM]}
                        ;;
                "exists")
                        echo ${exists}          
                        ;;
                *)
                        ;;
        esac

And finally the .conkyrc's
First is the bar on the left:
Code:

Code:
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.7
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 0
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment tl
gap_x 0
gap_y 0
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer none
text_buffer_size 1024

TEXT
#                                               ###HEADER###
${font openlogos:size=25}${color Lightblue}B${font Sega Logo Font:size=20}${color Darkorange1}$alignc${exec echo $USER}${color Lightblue}${font openlogos:size=30}${color gray80}$alignr t
${voffset -65}
#                                               ###SYSTEM###
${font Arial:bold:size=10}${color mintcream}$alignc SYSTEM 
$font${color gray80}$sysname $kernel $alignr $machine
Intel Core i7-2630QM$alignr${freq_g cpu0}Ghz
Uptime $alignr${uptime}
File System $alignr${fs_type}

#                                               ###GRAPHICS###
${font Arial:bold:size=10}${color mintcream}$alignc GRAPHICS
$font${color gray80}Temperature${if_match ${nvidia temp} < 95}${color Forestgreen}${else}${color red3}${endif}${alignr}${nvidia temp}°C / ${nvidia threshold}°C
$font${color gray80}Frequency ${alignr}${nvidia gpufreq}MHz
Memory Frequency ${alignr}${nvidia memfreq}MHz

#                                               ###SSD/HDD###
${font Arial:bold:size=10}${color mintcream}$alignc SSD/HDD
#                                                       #root#
${font Arial:bold:size=8}${color Tan3}/root
$font${color gray80}Read / Write${alignr}${diskio_read /dev/sda5} / ${diskio_write /dev/sda5}
$font${fs_used /root} / ${fs_size /root} ${if_match "${fs_used_perc /root}" > "75"}${color Firebrick}${else}${color ForestGreen}${endif}$alignr ${fs_free_perc /root}% free
${fs_bar /root}
#                                                       #home#
${font Arial:bold:size=8}${color Tan3}/home
$font${color gray80}Read / Write${alignr}${diskio_read /dev/sda6} / ${diskio_write /dev/sda6}
$font${fs_used /home} / ${fs_size /home} ${if_match ${fs_used_perc /home} > 75}${color Firebrick}${else}${color ForestGreen}${endif} $alignr ${fs_free_perc /home}% free
${fs_bar /home}
#                                                       #data#
${font Arial:bold:size=8}${color Tan3}/data
$font${color gray80}Read / Write${alignr}${diskio_read /dev/sdb5} / ${diskio_write /dev/sdb5}
$font${fs_used /data} / ${fs_size /data} ${if_match "${fs_used_perc /data}" > "75"}${color Firebrick}${else}${color ForestGreen}${endif}$alignr ${fs_free_perc /data}% free
${fs_bar /data}

#                                               ###GIT REPOS###
${font Arial:bold:size=10}${color mintcream}$alignc GIT REPOSITORIES$font${color gray80}
${execpi 3 ~/.conky/checkgit | fold -w60}

#                                               ###TRANSMISSION###
#                                                       #Torrent 1#
${if_match "${exec ~/.conky/transmission exists}" == "true"}${font Arial:bold:size=10}${color mintcream}$alignc Transmission$font${color gray80}
${font Arial:bold:size=8}${color Tan3}${exec ~/.conky/transmission name}$font${color gray80}${alignr}${exec ~/.conky/transmission progress}% 
${exec ~/.conky/transmission status}${alignr}${exec ~/.conky/transmission eta}
${if_match "${exec ~/.conky/transmission status}" == "Downloading"}${color Forestgreen}${endif}${execbar ~/.conky/transmission progress}
${color gray80}Down${alignr}${exec ~/.conky/transmission down}
Up${alignr}${exec ~/.conky/transmission up}
${endif}
#                                                       #Torrent 2#
${if_match "${exec ~/.conky/transmission exists 2}" == "true"}${font Arial:bold:size=8}${color Tan3}${exec ~/.conky/transmission name 2}$font${color gray80}${alignr}${exec ~/.conky/transmission progress 2}% 
${exec ~/.conky/transmission status 2}${alignr}${exec ~/.conky/transmission eta 2}
${if_match "${exec ~/.conky/transmission status 2}" == "Downloading"}${color Forestgreen}${endif}${execbar ~/.conky/transmission progress 2}
${color gray80}Down${alignr}${exec ~/.conky/transmission down 2}
Up${alignr}${exec ~/.conky/transmission up 2}
${endif}
#                                                       #Torrent 3#
${if_match "${exec ~/.conky/transmission exists 3}" == "true"}${font Arial:bold:size=8}${color Tan3}${exec ~/.conky/transmission name 3}$font${color gray80}${alignr}${exec ~/.conky/transmission progress 3}% 
${exec ~/.conky/transmission status 3}${alignr}${exec ~/.conky/transmission eta 3}
${if_match "${exec ~/.conky/transmission status 3}" == "Downloading"}${color Forestgreen}${endif}${execbar ~/.conky/transmission progress 3}
${color gray80}Down${alignr}${exec ~/.conky/transmission down 3}
Up${alignr}${exec ~/.conky/transmission up 3}
${endif}

Then the bar on the right:
Code:

Code:
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.7
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 0
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment tr
gap_x 00
gap_y 0
no_buffers no
uppercase no
cpu_avg_samples 3
net_avg_samples 2
diskio_avg_samples 3
override_utf8_locale yes
use_spacer none
text_buffer_size 1024
extra_newline
if_up_strictness address

TEXT
#                                               ###CLOCK###
${color Tan2} ${font :size=30}$alignc${time %H:%M}
${voffset -30}${font :bold:size=10}$alignc${time %d %b. %Y}
${font :bold:size=8}$alignc${time %A}

#                                               ###CPU BARS###
${font Arial:bold:size=10}${color mintcream}${alignc}PROCESSORS 
$font${color Red3}CPU1  ${cpu cpu1}% ${if_match ${cpu cpu1} < 10}  ${endif}${cpubar cpu1}
$font${color Red3}CPU2  ${cpu cpu2}% ${if_match ${cpu cpu2} < 10}  ${endif}${cpubar cpu2}
$font${color Orangered3}CPU3  ${cpu cpu3}% ${if_match ${cpu cpu3} < 10}  ${endif}${cpubar cpu3}
$font${color Orangered3}CPU4  ${cpu cpu4}% ${if_match ${cpu cpu4} < 10}  ${endif}${cpubar cpu4}
$font${color Darkorange3}CPU5  ${cpu cpu5}% ${if_match ${cpu cpu5} < 10}  ${endif}${cpubar cpu5}
$font${color Darkorange3}CPU6  ${cpu cpu6}% ${if_match ${cpu cpu6} < 10}  ${endif}${cpubar cpur6}
$font${color Goldenrod3}CPU7  ${cpu cpu7}% ${if_match ${cpu cpu7} < 10}  ${endif}${cpubar cpu7}
$font${color Goldenrod3}CPU8  ${cpu cpu8}% ${if_match ${cpu cpu8} < 10}  ${endif}${cpubar cpu8}

#                                               ###MEMORY BARS###
${font Arial:bold:size=10}${color mintcream}${alignc}MEMORY 
$font${if_match $memperc > 74}${color Firebrick}${else}${color Forestgreen}${endif}MEM $alignc $mem / $memmax $alignr $memperc%
$membar
$font${if_match $swapperc > 74}${color Firebrick}${else}${color Forestgreen}${endif}SWAP $alignc $swap / $swapmax $alignr $swapperc%
$swapbar

#                                               ###TOP PROCESSESS###
${font Arial:bold:size=10}${color mintcream}${alignc}TOP PROCESSES 
#                                                       #by CPU#
${font Arial:bold:size=8}${color snow3}CPU
$font${color Red3}${top name 1}${alignr}${top cpu 1} %
$font${color Orangered3}${top name 2}${alignr}${top cpu 2} %
$font${color Darkorange3}${top name 3}${alignr}${top cpu 3} %
$font${color Goldenrod3}${top name 4}${alignr}${top cpu 4} %
$font${color Yellow3}${top name 5}${alignr}${top cpu 5} %

#                                                       #by memory#
${font Arial:bold:size=8}${color snow3}MEMORY
$font${color Red3}${top_mem name 1}${alignr}${top mem 1} %
$font${color Orangered3}${top_mem name 2}${alignr}${top mem 2} %
$font${color DarkOrange3}${top_mem name 3}${alignr}${top mem 3} %
$font${color Goldenrod3}${top_mem name 4}${alignr}${top mem 4} %
$font${color Yellow3}${top_mem name 5}${alignr}${top mem 5} %

#                                               ###NETWORK###
${font Arial:bold:size=10}${color mintcream}${alignc}NETWORK 
#                                                       #Wireless#
${font Arial:bold:size=8}${color snow3}WIRELESS
${if_match "${addr wlan0}" == "No Address"}$font${color antiquewhite4}${else}$font${color Forestgreen}${endif}Connectivity ${wireless_link_bar wlan0}
SSID${alignr}${wireless_essid wlan0}
IP on wlan0 $alignr ${addr wlan0}
Mac Address${alignr}${wireless_ap wlan0}
External IP$alignr${if_up wlan0}${execi 600 ~/.conky/exip}${else}NA${endif}
Bitrate${alignr}${wireless_bitrate wlan0}
Down $alignr ${downspeed wlan0}
Up $alignr ${upspeed wlan0}
Downloaded: $alignr  ${totaldown wlan0}
Uploaded: $alignr  ${totalup wlan0}

#                                                       #Wired#
${font Arial:bold:size=8}${color snow3}WIRED
${if_match "${addr eth0}" == "No Address"}$font${color antiquewhite4}${else}$font${color Forestgreen}${endif}IP on eth0 $alignr ${addr eth0}
External IP$alignr${if_up eth0}${execi 600 ~/.conky/exip}${else}NA${endif}
Down $alignr ${downspeed eth0}
Up $alignr ${upspeed eth0}
Downloaded: $alignr  ${totaldown eth0}
Uploaded: $alignr  ${totalup eth0}

#                                               ###BATTERY###
${if_match "${exec acpi}" != ""}${font Arial:bold:size=10}${color mintcream}${alignc}Battery
$font${execp ~/.conky/batstat color}${exec ~/.conky/batstat status} ${exec ~/.conky/batstat percent}%${alignr}${execi 10 ~/.conky/batstat timestat}
${battery_bar BAT0}${else}$alignc${font Arial:bold:size=9}${color antiquewhite2}No Battery Present
${endif}

Lastly the startup script that runs on startup:
Code:

Code:
#!/bin/bash
conky -d -c ~/.conky/.conkyrcl
conky -d -c ~/.conky/.conkyrcr

Note: All the scripts should be made executable and placed in a .conky folder in the home directory along with the .conkyrc's.
 

· Registered
Joined
·
5 Posts

Attachments

· 10 year OCN Vet
Joined
·
3,445 Posts
If you hear a little fuss, it ain't nuthin but us Happy Holidays All

2470863


____
conky.config = {
-- Based on conky-jc and the default .conkyrc.
-- INCLUDES:
-- - tail of /var/log/messages
-- - netstat connections to your computer

-- -- Pengo ([email protected])

-- Create own window instead of using desktop (required in nautilus)
background = false,
own_window = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_transparent = true,
--own_window_class = 'override',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_value = 85,--#decrease for darker
maximum_width = 680,
--added Dec 5
update_interval = 0.3,
total_run_times = 0,

-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,

-- fiddle with window
--use_spacer true
use_xft = true,

-- Update interval in seconds
update_interval = 1.0,

-- Minimum size of text area
minimum_width = 120, minimum_height = 5,

-- Draw shades?
draw_shades = false,

-- Text stuff
draw_outline = false,-- amplifies text if yes
draw_borders = false,

uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
stippled_borders = 8,

-- border margins
--border_margin 4

-- border width
border_width = 1,

-- Default colors and also border colors, grey90 == #e5e5e5
default_color = 'white',
default_shade_color = 'black',
default_outline_color = 'white',

-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
gap_x = 10,
gap_y = 10,

-- stuff after 'TEXT' will be formatted on screen

override_utf8_locale = false,
font = 'Terminus:size=14',
xftalpha = 0.8,
color0 = 'orange',
color2 = '#FFA300',
};

conky.text = [[

${offset 380}${color steel blue}${image ~/Downloads/slackware_tux_logo.png -p 260,20 -s 100x100}$color
${offset 380}${color steel blue}${hr 2}$color
${offset 380}${color lightgrey} Asus ROG Maximus XII Hero
${offset 380}${color steel blue}${hr 2}$color
${offset 380}${color slate grey}UpTime: ${color }$uptime
${offset 380}${color slate grey}$sysname ${color }$kernel $machine
${offset 380}${color slate grey}${execi 1000 cat /proc/cpuinfo | grep 'model name' | cut -d " " -f "3-13" | sort -u}
${offset 380}${color red} CPU Frequency:${color white} $freq ${color yellow} Maximum:${color lightgreen} $freq_g
${offset 360}${color cyan}CPU:${color } $cpu% ${color steel blue}${execi 30 sensors |grep "CPU Temperature" |cut -d " " -f6}${hr 2}$color
${offset 380}${color slate grey}${cpugraph 20,200}
${offset 400}${color red}${exec sensors | grep 'Core 0' | awk '{print $0,$1,$2,$3}'| cut -c1-24}
${offset 410}${color red}${exec sensors | grep 'Core 1' | awk '{print $0,$1,$2,$3}'| cut -c1-24}
${offset 420}${color red}${exec sensors | grep 'Core 2' | awk '{print $0,$1,$2,$3}'| cut -c1-24}
${offset 430}${color red}${exec sensors | grep 'Core 3' | awk '{print $0,$1,$2,$3}'| cut -c1-24}
${offset 440}${color red}${exec sensors | grep 'Core 4' | awk '{print $0,$1,$2,$3}'| cut -c1-24}
${offset 450}${color red}${exec sensors | grep 'Core 5' | awk '{print $0,$1,$2,$3}'| cut -c1-24}
${offset 350}${color orange}Highest CPU:${hr 2}$color
${offset 380}${color yellow} ${top name 1}${top_mem cpu 1}
${offset 380}${color lightgrey} ${top name 2}${top cpu 2}
${offset 380}${color lightgrey} ${top name 3}${top cpu 3}
${offset 380}${color lightgrey} ${top name 4}${top cpu 4}

### GPU Temps
###${offset 380}${color cyan}GPU Temp: ${execi 7 nvidia-settings -query gpucoretemp -t}

${offset 320}${color red}NVIDIA:${hr 2}$color
${offset 340}${color2}GPU Temp ${alignr}${color0}${nvidia temp} °C
${offset 340}${color2}Fan Speed ${alignr}${color0}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${offset 340}${color2}GPU Clock ${alignr}${color0}${nvidia gpufreq} MHz
${offset 340}${color2}Mem Used ${alignr}${color0}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB
${offset 340}${image ~/NvidiaGF.png -p 450,370 -s 76x76}

${offset 340}${color cyan}RAM Usage: ${hr 2}$color
${offset 380}${color } $memperc% $mem/$memmax
${offset 380}${color slate grey}${memgraph 20,200}

${offset 340}${color orange}Highest MEM:${hr 2}$color
${offset 380}${color yellow} ${top_mem name 1}${top_mem mem 1}
${offset 380}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 380}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 380}${color lightgrey} ${top_mem name 4}${top_mem mem 4}
${offset 355}${color cyan}Disks: ${hr 2}$color
${offset 380}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 380}${color lightgrey}${swapbar 2,100}
${offset 380}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /}
${offset 380}${color lightgrey}${fs_bar 2,100 /}
${offset 340}${color red}NETWORK: ${hr 2}$color
${offset 340}${color orange} ${addr wlan0} ${wireless_essid wlan0} ${wireless_link_qual wlan0}%
#${offset 380}${color slate grey}IP: ${addr wlan0}
${offset 380}${color}Up: ${color }${upspeed wlan0} k/s
${offset 380}${color slate grey}${upspeedgraph wlan0 20,200}
${offset 380}${color}Down: ${color }${downspeed wlan0}k/s${color}
${offset 380}${color slate grey}${downspeedgraph wlan0 20,200}
${offset 280}${color steel blue}${hr 2}$color
${offset 280}${color lightblue}Port(s)${offset 240}Connections:
${offset 280}${color lightgrey} ALL: ${offset 280}${tcp_portmon 1 65535 count}
${offset 280}${color lightgrey} mpd: ${offset 275}${tcp_portmon 6600 6600 count}
${offset 280}${color lightgrey} del 1 - 1024: ${offset 236}${tcp_portmon 1 1024 count}
${offset 280}${color lightgrey} del 1025 - 65535: ${offset 208}${tcp_portmon 1024 65535 count}
${offset 280}${color steel blue}${hr 2}$color

### Logins Monitor
${offset 380}${color orange}LOGINS:${hr 2}$color
${offset 280}${color yellow}${user_names}${hr 2}$color
]];
EOF
 
1 - 11 of 11 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top