« Linux MintへConkyを導入 | トップページ | Conkyのカスタマイズ その2 »

2021年5月12日 (水)

Conkyのカスタマイズ その1

Conkyでは、専用の設定ファイルを作成して編集します。

まず、端末から

$ conky -h

と打ってみましょう。

hogehoge@MS-7B86:~$ conky -h
Usage: conky [OPTION]...
conky is a system monitor that renders text on desktop or to own transparent
window. Command line options will override configurations defined in config
file.
-v, --version version
-q, --quiet quiet mode
-D, --debug increase debugging output, ie. -DD for more debugging
-c, --config=FILE config file to load
-C, --print-config print the builtin default config to stdout
e.g. 'conky -C > ~/.conkyrc' will create a new default config
-d, --daemonize daemonize, fork to background
-h, --help help
-a, --alignment=ALIGNMENT text alignment on screen, {top,bottom,middle}_{left,right,middle}
-f, --font=FONT font to use
-X, --display=DISPLAY X11 display to use
-o, --own-window create own window to draw
-b, --double-buffer double buffer (prevents flickering)
-w, --window-id=WIN_ID window id to draw
-x X x position
-y Y y position
-t, --text=TEXT text to render, remember single quotes, like -t '$uptime'
-u, --interval=SECS update interval
-i COUNT number of times to update conky (and quit)
-p, --pause=SECS pause for SECS seconds at startup before doing anything

次に、バージョン情報を得るために、

conky -v

と打ちます。

すると、以下の情報が得られます。

 

conky 1.10.8 compiled Mon Mar 23 06:55:27 UTC 2020 for Linux 4.4.0-176-generic x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky


General:
* math
* hddtemp
* portmon
* IPv6
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* eve-online
* builtin default configuration
* old configuration syntax
* Imlib2
* apcupsd
* iostats
* ncurses
* Internationalization support
* PulseAudio

Lua bindings:
* Cairo
* Imlib2
* RSVG
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window

Music detection:
* Audacious
* MPD
* MOC
* XMMS2

Default values:
* Netdevice: eth0
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 64
* Maximum text size: 16384
* Size text buffer: 256

最後のグループの、

Default values のところに、

Local configfile: $HOME/.conkyrc

とあります。

標準では、このファイルを個人用の設定ファイルとして使うようです。

ちなみに、ドット(.)で始まるファイルは、隠しファイルです。

どうして隠しファイルにする必要があるのでしょうか。

このあたりが、まだ私にはよくわかりません。

デフォルトの.conkyrcファイルを作るには、Helpに書いてあったように、

conky -C > ~/.conkyrc

と入力します。

次からは、このファイルを編集します。

 

« Linux MintへConkyを導入 | トップページ | Conkyのカスタマイズ その2 »

Linux」カテゴリの記事

コメント

この記事へのコメントは終了しました。

2023年6月
        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  
無料ブログはココログ