2. 設定
設定ファイルを編集します。
vi ~/.config/awesome/system-overview
maximum_width = 280, -- maximum height of window
カスタマイズしたら、幅が足りなくなるので、幅を広く。
maximum_width = 380, -- maximum height of window
font = 'Noto Mono:size=11:regular', -- font for complete conky unless in code defined
日本語フォントへ変更して、小さく
font = 'MigMix 1M:size=10:regular', -- font for complete conky unless in code defined
conky.text = [[
${color1}${alignc}S Y S T E M I N F O${color}
${color1}${hr}${color}
${color1}Host:${alignr}${color2}${nodename}${color}
#${color1}Kernel:${color2}${alignr}$kernel${color}
#${color1}Uptime:${color2}${alignr}${uptime}${color}
#${color1}UTC:${color2}${alignr}${utime %H:%M}${color}
${color1}${goto 60}Used${alignr}Size${color}
${color1}Root${goto 60}${color2}${fs_used /}${alignr}${fs_size /}${color}
#${color1}Home${goto 60}${color2}${fs_used /home}${alignr}${fs_size /home}${color}
${color1}${goto 60}Mem${alignr}Max${color}
${color1}RAM${goto 60}${color2}${mem}${alignr}${memmax}${color}
${color1}Swap${goto 60}${color2}${swap}${alignr}${swapmax}${color}
${color1}CPU:${goto 60}Used${alignr}GHz${color}
${color1}Avg${goto 60}${color2}${if_match ${cpu cpu0}<50} ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<=100}${color9} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr}${freq_g}${color}
ショートカットキー表示の前に、「システム情報」「ディストリビューション」「デスクトップ」「Conky バージョン情報」を複数行で表示。
conky.text = [[
${color1}${alignc}S Y S T E M I N F O${color}
${color1}${hr}${color}
${color1}Host:${alignr}${color2}${nodename}${color}
#${color1}Kernel:${color2}${alignr}$kernel${color}
#${color1}Uptime:${color2}${alignr}${uptime}${color}
#${color1}UTC:${color2}${alignr}${utime %H:%M}${color}
${color1}${goto 60}Used${alignr}Size${color}
${color1}Root${goto 60}${color2}${fs_used /}${alignr}${fs_size /}${color}
#${color1}Home${goto 60}${color2}${fs_used /home}${alignr}${fs_size /home}${color}
${color1}${goto 60}Mem${alignr}Max${color}
${color1}RAM${goto 60}${color2}${mem}${alignr}${memmax}${color}
${color1}Swap${goto 60}${color2}${swap}${alignr}${swapmax}${color}
${color1}CPU:${goto 60}Used${alignr}GHz${color}
${color1}Avg${goto 60}${color2}${if_match ${cpu cpu0}<50} ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<=100}${color9} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr}${freq_g}${color}
${color1}System :$color2 $sysname $kernel on $machine
${color1}Description:$color2 ${execi 999999 lsb_release -ds | sed "s/\"//g"}
${color1}Release :$color2 ${execi 999999 lsb_release -rs}
${color1}Desktop :$color2 ${execi 999999 echo $DESKTOP_SESSION}
${color1}Conky :$color2 $conky_version
${color1}${alignc}S H O R T C U T K E Y S${color}
${color1}${hr}${color}
${color1}[S]+[Shift]+D${alignr}${color2}Main Menu${color}
${color1}[Alt]+F2${alignr}${color2}Alt Menu${color}
${color1}[Alt]+F3${alignr}${color2}Alt Menu${color}
${color1}${hr}${color}
${color1}[S]+Enter${alignr}${color2}Terminal${color}
${color1}[S]+[Shift]+Enter${alignr}${color2}File Manager${color}
${color1}[Ctrl]+[Alt]+V${alignr}${color2}Vivaldi${color}
${color1}[S]+F2${alignr}${color2}Editor${color}
${color1}[S]+F6${alignr}${color2}Media Player${color}
${color1}[S]+[Space]${alignr}${color2}Change Layout${color}
${color1}[Ctrl]+[Shift]+Esc${alignr}${color2}Task Manager${color}
${color1}[Ctrl]+[Alt]+U${alignr}${color2}Volume Control${color}
${color1}[PrtSc]${alignr}${color2}Screenshot${color}
${color1}[S]+[Shift]+R${alignr}${color2}Restart${color}
${color1}${hr}${color}
${color1}[S]+[Shift]+Q${alignr}${color2}Stop application${color}
${color1}[S]+x${alignr}${color2}Exit${color}
${color1}${hr}${color}
${color1}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}${color}
]];
キー操作に関する記述は、不要なものを削除して、カスタマイズした通りに記述します。
${color1}${alignc}S H O R T C U T K E Y S${color}
${color1}${hr}${color}
${color1}Win+Enter ${goto 100}端末を開く
${color1}Win+q ${goto 100}閉じる
${color1}Win+x ${goto 100}終了メニュー
${color1}${hr}${color}
${color1}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}${color}
]];
3. 表示
編集後の表示です。