Skip to content

Instantly share code, notes, and snippets.

@wolfg1969
Created October 4, 2012 08:44
Show Gist options
  • Select an option

  • Save wolfg1969/3832302 to your computer and use it in GitHub Desktop.

Select an option

Save wolfg1969/3832302 to your computer and use it in GitHub Desktop.
my conky, idesk, xmodmap
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
alignment top_left
background yes
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=8
gap_x 5
gap_y 5
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
#own_window_type desktop
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_paper
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
TEXT
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
#${color grey}Frequency:$color $freq_g GHz
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color green}CPU Usage:$color ${cpu cpu0}% ${cpubar 4}
${color blue}CPU Usage:$color ${cpu cpu1}% ${cpubar 4}
${color orange}CPU Usage:$color ${cpu cpu2}% ${cpubar 4}
${color cray}CPU Usage:$color ${cpu cpu3}% ${cpubar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
/home $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /home}
${color grey}Networking:
Eth0 Up:${color green} ${upspeed eth0} ${color grey} - Down:${color green} ${downspeed eth0}
${color grey}Wlan0 Up:${color green} ${upspeed wlan0} ${color grey} - Down:${color green} ${downspeed wlan0}
${color grey}$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
<?xml version="1.0"?>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif 14</family>
<family>AR PL UMing CN 14</family>
<family>WenQuanYi ZenHei 14</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans 14</family>
<family>AR PL UMing CN 14</family>
<family>WenQuanYi Zen Hei 14</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono 14</family>
<family>AR PL UMing CN 14</family>
<family>WenQuanYi Zen Hei 14</family>
</prefer>
</alias>
<!-- 下面是为了防止程序字体过小,设置8到14号的字体都改成14号 -->
<match target="font" >
<test compare="more_eq" name="pixelsize" qual="any" >
<double>8</double>
</test>
<test compare="less_eq" name="pixelsize" qual="any" >
<double>14</double>
</test>
<edit compare="eq" name="pixelsize" >
<double>14</double>
</edit>
</match>
</fontconfig>
table Config
FontName: gothic
FontSize: 11
FontColor: #37CFA6
ToolTip.FontSize: 11
ToolTip.FontName: gothic
ToolTip.ForeColor: #0000FF
ToolTip.BackColor: #FFFFFF
ToolTip.CaptionOnHover: true
ToolTip.CaptionPlacement: Right
Locked: false
Transparency: 100
Shadow: true
ShadowColor: #000000
ShadowX: 1
ShadowY: 1
Bold: true
ClickDelay: 300
IconSnap: true
SnapWidth: 10
SnapHeight: 10
SnapOrigin: BottomRight
SnapShadow: false
SnapShadowTrans: 200
CaptionOnHover: false
CaptionPlacement: bottom
FillStyle: fillinvert
Background.Delay: 0
Background.Source: None
Background.File: None
Background.Mode: Center
Background.Color: #C2CCFF
end
table Actions
Lock: control right doubleClk
Reload: middle doubleClk
Drag: left hold
EndDrag: left singleClk
Execute[0]: left doubleClk
Execute[1]: right doubleClk
end
keycode 156 = XF86Launch1
table Icon
Caption: Firefox
Command: firefox
Icon: /usr/share/icons/hicolor/128x128/apps/firefox.png
Width: 48
Height: 48
X: 29
Y: 29
end
table Icon
Caption: Terminal
Command: urxvt
Icon: /usr/share/icons/hicolor/48x48/apps/Terminal.png
Width: 48
Height: 48
X: 229
Y: 29
end
table Icon
Caption: File Manager
Command: thunar $HOME
Icon: /usr/share/icons/gnome/48x48/apps/xfce-filemanager.png
Width: 48
Height: 48
X: 129
Y: 29
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment