月曜日, 3月 23, 2020

[解決] i3wmの古そうなテーマを直す

せっかくスリムできれいなデスクトップになったのにテーマがWindows98みたいだよねってなったのをどうにかしたいの話。
あとダークテーマがいいなあ。

それと、なぜかStretchにしてから一部メニューのテキストが背景と同化して見えないなんてこともあるので困った。(※これについては完全に直っていません)
(20.03.23)治ったので追記。大事なところは最後らへんを見てください。

そもそも

いわゆるこういうのはGTK+というので描画している?んだそうな。i3そのものが関与できることじゃないというか……(激曖昧な表現)。


XXX-settings-daemon を使う

wikiにある通り、i3以前にもMATEとかを使ってた場合 mate-settings-daemon などを起動してやるとテーマが適用される。
…けど、そうするとMATEで設定したキーボードショートカットなども起動してしまい、たとえばPrintキーを押すと2重でスクショが撮られてしまう、逆にキーが競合するのか何なのかで押した回数だけ撮られていない、みたいな問題があったりなかったり。

いっそのことそういったdaemonを予め起動しておくことを前提に、i3のキーバインドからウィンドウ関連以外(スクショや音量上下など)の操作をなくすという手もアリ。

お留守になっているgtk-2.0と3.0のフォルダ

ただし上のやり方だとMATEやGNOMEなどのi3以外のマネージャがあること前提なので、今後もi3しか使わないとなるとお荷物になってしまいます。

rootで起動したものはユーザーフォルダにあるテーマ設定を見に行かないそうなので(というかrootでなくともテーマが効かないあたりi3自体が見に行かない気もする)、/etcの中にあるやつをホニャホニャします。

色んな解説には/etc/gtk-2(3).0 の中のファイルをうんたらとあったりするけど、そもそも中身がスカスカで編集できそうなファイルも何もなかったので、
$ sudo cp -r .themes/AdwaitaDark/gtk-2.0 /etc/
をして、好きなテーマフォルダ(ここではAdwaita Dark)の中にあるgtk-2.0フォルダを/etc内にコピったら上手くいったっぽい。

やったぜ。

たぶん3.0も同じようにコピってやれば適用されるはずなんですけどAdwaitaDarkに3.0のフォルダがございませんでした。なので別の3.0に対応したテーマから持ってくるか、両対応のテーマを取るかをすると良いのかな?

rootログインして/root以下にある設定ファイルらしきものをうんたら…というのもやってはみたけど、特に変わらなかったのでダメです(編集が悪かっただけかもしれん)。

20.03.23 GTK3で文字が背景と同化するテーマを直す

MyPaint
諸事情でDebian StretchからBusterに変えたも問題は直りませんでした。

←これみたいに選択してハイライトさせればギリギリ見える程度で、奥のピンクでハイライトされてるところなんかも本当は上下に項目があるはずなのに全く見えず。







で、あまりにもひどいので、パッケージ gtk-theme-configgtk-chtheme を使ったり各種テーマのCSSファイルなどを見て文字色っぽいところを変えたところ(何やったか忘れたので曖昧な書き方でほんとごめんなさい)、なんとか文字だけは見えるようになりました↓

今思えば最初に書いた古そうなGTK2テーマもややこしいことしないで上記パッケージで修正できたかもしれない……

ブラウザでファイル選択をしたり
Zenity --file-selectionしたりした時のやつ
が、なんだか白くてあまりにもダサい……!
元々ダークテーマ愛好家なのもありますが、MyPaintのようにおおよそGTK2と混合で使われているかもしれないアプリケーションでは特にキツい。

ArchのGTK+記事によれば、環境変数 GTK_THEME にテーマ名を入れるといいらしいです。(何で今まで試さなかったんだろう…)
使っているシェルのProfileファイル(zshなら.zprofile)に export GTK_THEME=[テーマ名] を追加。

Trollwut-pink-dark - Gnome-look.org

ログアウト等をせず一時的に試したい時はコマンドラインで GTK_THEME=[テーマ名] zenity --file-selection を実行すると(Geditなんかでも可)名前ミスなどをチェックできます。
最高!(中が黄色いのはSolarizedLightテーマのやつなので問題なし)


ちなみに、/usr/share/themes や $HOME/.themes 下のDefaultフォルダになってほしいテーマをコピったりしたような気がしなくもないですが効果がありませんでした。(書き方が曖昧でほんとry

20.03.29追記 アイコンテーマを直す ついでにi3まわりの設定を晒す

GTK3ではアイコンテーマとしてBreeze-pink-darkを使って適用されていたっぽいものの(↑のGeditスクショがそれ)、PCManFM等GTK2アプリではHicolorらしきアイコンとGnomeアイコンテーマがぐっちゃになっていた(1,2番目のスクショ)ので、直します。


上記のgtk-theme-configやgtk-chthemeの恩恵か何かでホーム以下の.gtkrc-2.0が綺麗に書かれていたので、 gtk-icon-theme-name = "アイコンテーマ名" を追加してPCManFMを再起動。
Breeze-dark-red - Store.kde.org

で、今のところこんなデスクトップになりましたとさ。
ピンクが好きかと言われるとそうでもないんですけどイカンセンDebianがピンクなロゴなのでそのまま合わせていたらまっピンピンクになっちゃいましたね。

もちろんこんな詰め込み状態で作業しているわけではありません
i3 Window manager
GTK(2&3)  Trollwut-pink-dark

$HOME/.conkyrc (左側のシステム監視Conky)

# 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/>.
#
color0 c41360
color1 666666
color2 467379
alignment top_left
border_width 10
border_inner_margin 16
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color black
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont URW Gothic L:style=Book:size=12
gap_x 20
gap_y 10
minimum_size 200 1080
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 override
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_transparent no
background 000000
stippled_borders 2
update_interval 1.0
uppercase yes
use_spacer none
show_graph_scale yes
show_graph_range no
TEXT
$sysname $kernel
${color grey}Uptime:$color $uptime
${color1}${tztime Japan %Y/%m/%d - %H:%M:%S - %s}
${color grey}File systems: /
$color${fs_bar 8,320 /}
${color gray}used: $color${fs_used /} ${color gray}free:${color}${fs_free /} ${color grey}total: $color${fs_size /}
${color grey}Read: ${color0}${diskio_read}${color grey} - Write: ${color0}${diskio_write}
${color2}${diskiograph_read 50,100}  ${diskiograph_write 50,100}
${color grey}RAM Usage:$color $mem/$memmax         
${color0}${membar 16,200} 
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc%
${color}${swapbar 16,200}
${color grey}CPU Usage:$color0 $cpu%
${color1}${cpugauge cpu0 48,96}   ${cpugauge cpu1 48,96}
${color}${cpugraph cpu1 32,100} ${cpugraph cpu2 32,100}
${cpugraph cpu3 32,100} ${cpugraph cpu4 32,100}
${color1}${cpugauge cpu2 48,96}   ${cpugauge cpu3 48,96}$color
$hr
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color grey}Frequency:$color0 $freq_g $color GHz
${color}Name                     ${color2}PID   ${color}CPU%   ${color0}MEM ${color gray}
${top name 1} ${color2}${top pid 1} ${color}${top cpu 1} ${color0}${top mem 1}${color gray}
${top name 2} ${color2}${top pid 2} ${color}${top cpu 2} ${color0}${top mem 2}${color gray}
${top name 3} ${color2}${top pid 3} ${color}${top cpu 3} ${color0}${top mem 3}${color gray}
${top name 4} ${color2}${top pid 4} ${color}${top cpu 4} ${color0}${top mem 4}${color gray}
${top name 5} ${color2}${top pid 5} ${color}${top cpu 5} ${color0}${top mem 5}${color gray}
${top name 6} ${color2}${top pid 6} ${color}${top cpu 6} ${color0}${top mem 6}${color gray}
${top name 7} ${color2}${top pid 7} ${color}${top cpu 7} ${color0}${top mem 7}${color gray}
${top name 8} ${color2}${top pid 8} ${color}${top cpu 8} ${color0}${top mem 8}${color gray}
${top name 9} ${color2}${top pid 9} ${color}${top cpu 9} ${color0}${top mem 9}${color gray}
$color
${color grey}Networking:
Up:$color ${upspeed wlp2s0}${color grey} - Down:$color ${downspeed wlp2s0}
${color2}${upspeedgraph wlp2s0 50,100}  ${downspeedgraph wlp2s0 50,100}
${color grey}Wireless info:
${color}${wireless_essid} - ${color0}${wireless_link_qual_perc wlp2s0}%${color}

i3bar&Conkyスクリプト(タスクバー)

$HOME/.i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# UNIQUE SETTING ======================================
exec --no-startup-id mpg321 /home/fahrenheit/0/Sounds/WindowsXP/WindowsXP-Startup.mp3
exec --no-startup-id fcitx
exec --no-startup-id dropbox start
exec --no-startup-id conky
exec --no-startup-id guake -e mocp
# exec --no-startup-id compton -cbm 0.8
exec --no-startup-id xinput.sh
exec --no-startup-id "feh --bg-fill ~/Pictures/wallpaper/wp.png"
# exec --no-startup-id mate-settings-daemon
exec --no-startup-id pcmanfm -d
# exec --no-startup-id xscreensaver -no-splash
exec --no-startup-id steam -silent
# exec --no-startup-id discord
#exec --no-startup-id chimeset
bindsym $mod+z workspace 4; exec azpainter
bindsym $mod+b exec azpainterb
bindsym $mod+f exec pcmanfm
bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
bindsym XF86AudioPlay exec mocp --toggle-pause
bindsym XF86AudioPrev exec mocp --previous
bindsym XF86AudioNext exec mocp --next
bindsym $mod+Prior workspace prev
bindsym $mod+Next workspace next
#bindsym XF86HomePage exec google-chrome
bindsym XF86Mail workspace 1; exec vivaldi
bindsym Ctrl+Mod1+l exec xscreensaver-command --activate
bindsym $mod+Shift+l exec leafpad
bindsym Print exec scrot '%Y-%m-%d_%H-%M-%S.png' -e 'mv $f Pictures/ss/'
bindsym Ctrl+Print exec scrot -u '%Y-%m-%d_%H-%M-%S.png' -e 'mv $f Pictures/ss/'
bindsym Ctrl+Shift+Print exec scrot '%Y-%m-%d_%H-%M-%S.png' -e 'echo $f'> tmp && mv $(cat tmp) ~/Pictures/ss/ && azpainterb ~/Pictures/ss/$(cat tmp)
#bindsym Ctrl+Mod1+Print exec scrot -s '%Y-%m-%d_%H-%M-%S.png' -e 'mv $f Pictures/screenshot/'
bindsym $mod+Scroll_Lock exec lxterminal --geometry=80x18 -e ~/bin/at-notify.sh
bindsym $mod+Ctrl+Left resize shrink width 5 px or 5 ppt
bindsym $mod+Ctrl+Right resize grow width 5 px or 5 ppt
bindsym $mod+Ctrl+Up resize shrink height 5 px or 5 ppt
bindsym $mod+Ctrl+Down resize grow height 5 px or 5 ppt
bindsym Ctrl+Mod1+Left workspace prev
bindsym Ctrl+Mod1+Right workspace next
# bindsym button2 kill
bindsym button3 floating toggle
for_window [class="Eom"] floating enable
for_window [class="Guake"] floating enable, move absolute position 0 px 0 px
for_window [title="^Palette editor$"] splitv
for_window [title="^World editor$"] splitv, tabbed
for_window [title="^World nodes$"] floating disable
for_window [title="^Node editor$"] floating disable
for_window [class="Pavucontrol"] floating enable, resize set 600 450
for_window [class="Vivaldi"] border none
for_window [class="Lxterminal"] floating enable, border pixel 2
for_window [class="^st-256color$"] floating enable, resize set 800 600
for_window [class="MyPaint"] border none
for_window [class="Terminator"] floating enable, border pixel 2, move position center, resize set 800 480
for_window [class="^Pcmanfm$"] floating enable, resize set 1020 680
for_window [class="Leafpad"] floating enable, resize set 800 920
for_window [class="Gedit"] border pixel 2, floating enable, resize set 1020 720
for_window [class="^feh$"] floating enable, resize set 800 600, move position center
for_window [class="^SimpleScreenRecorder$"] floating enable, resize set 520 600, move position center
for_window [class="^Devil Daggers$"] floating enable, resize set 1920 1080, move position center
for_window [class="^XCalc$"] floating enable, move position center
for_window [title="- AzPainterB$"] floating enable, resize set 1600 900, move position center
for_window [class="^Chaotica$"] floating enable
for_window [title="^Transform browser$"] floating enable, resize set 800 600, move position center
 for_window [title="- AzPainter$"] border none
 for_window [title="^Canvas control$"] border none
 for_window [title="^Layer$"] border none
 for_window [title="^Option$"] border pixel 1
 for_window [title="^Color$"] border none
 for_window [title="^Color Palette$"] border none
 for_window [title="^Color wheel$"] border pixel 1
 for_window [title="^Tool$"] border none
#for_window [title="AzPainter$"] floating disable,move right
 for_window [title="^Filter list$"] border none
 for_window [title="^Brush$"] border none
 for_window [title="^Image viewer$"] border none
 for_window [title="^Gradient edit$"] move position center
for_window [window_role="^GtkFileChooserDialog$"] border pixel 2
# ======================================================
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
font pango:URW Gothic L 9
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
 bindsym $mod+Return exec lxterminal -e screen
#bindsym $mod+Return exec st -t "st - simple terminal" -e screen
# kill focused window
#bindsym $mod+Shift+q kill
bindsym $mod+F4 kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id rofi -show run
# dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
#bindsym $mod+Shift+j move left
#bindsym $mod+Shift+k move down
#bindsym $mod+Shift+l move up
#bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
#bindsym $mod+f fullscreen
bindsym $mod+F11 fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
# bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
#bindsym $mod+Shift+r restart
bindsym $mod+Shift+BackSpace restart
# exit i3 (logs you out of your X session)
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
#bindsym $mod+Shift+Delete exec "i3-nagbar -t warning -m 'Exit i3?' -b 'Shutdown' 'systemctl poweroff' -b 'Reboot' 'systemctl reboot' -b 'Hibernate' 'systemctl hibernate' -b 'Logout' 'i3-msg exit'"
set $mode system Operation (Shift+s) SHUTDOWN, (s) SUSPEND, (r) REBOOT, (h) HIBERNATE, (l) logout
mode "$mode system" {
bindsym Shift+s exec --no-startup-id mpg123 ~/Sounds/WindowsXP/WindowsXP-Shutdown.mp3, exec sleep 2s, exec systemctl poweroff -i, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
bindsym l exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id systemctl suspend, mode "default"
# bindsym s exec --no-startup-id xscreensaver-command --activate, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+Delete mode "$mode system"

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode
        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 ppt
        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt
        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#ウィンドウ編集
mode "edit" {
bindsym Left move left
bindsym Right move right
bindsym Down move down
bindsym Up move up
bindsym v splitv
bindsym h splith
bindsym w resize grow height 10 px or 10 ppt
bindsym s resize shrink height 10 px or 10 ppt
bindsym d resize grow width 10 px or 10 ppt
bindsym a resize shrink width 10 px or 10 ppt
bindsym Shift+w resize grow height 5 px or 5 ppt
bindsym Shift+s resize shrink height 5 px or 5 ppt
bindsym Shift+d resize grow width 5 px or 5 ppt
bindsym Shift+a resize shrink width 5 px or 5 ppt
bindsym space floating toggle
bindsym Return mode "select"
bindsym Escape mode "default"
}
mode "select" {
bindsym Left focus left
bindsym Right focus right
bindsym Down focus down
bindsym Up focus up
bindsym space focus floating
bindsym Escape mode "default"
bindsym Return mode "edit"
}
bindsym $mod+e mode "select"
# Moc操作モード
set $MocControl [s]top - [p]lay - [space]toggle-pause - [n]ext - [b]ack - [,]vol-5 - [.]vol+5
mode "MocControl $MocControl"{
bindsym s exec mocp --stop
bindsym p exec mocp --play
bindsym space exec mocp --toggle-pause
#bindsym Return exec mocp --toggle-pause
bindsym n exec mocp --next
bindsym b exec mocp --previous
bindsym period exec mocp -v +5
bindsym comma exec mocp -v -5
bindsym Escape mode "default"
}
bindsym $mod+m mode "MocControl $MocControl"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        #status_command i3status
        tray_output primary
        position bottom
        status_command $HOME/.i3/i3conky.sh
       colors {
       focused_workspace #000000 #800d36 #CCCCCC
       inactive_workspace #000000 #333333 #999999
       }
}
# class border bg text indicator
client.focused #4c7899 #285577 #ffffff #2e9ef4
client.focused_inactive #333333 #5f676a #ffffff #484e50
client.unfocused #333333 #222222 #ffffff #292d2e
client.urgent #2f343a #900000 #ffffff #900000
# <clientclass> <border> <bg> <text> <indicator>
client.focused          #da2263 #d70a53 #ffffff #eb709b
client.focused_inactive #565656 #444444 #ffffff #666666
client.unfocused #373737 #222222 #888888 #444444
client.urgent           #ec7ea4 #eb709b #ffffff #eb709b
# $i3-background
exec_always --no-startup-id xsetroot -solid '#000000'
$HOME/.i3/i3conky.sh
#!/bin/sh
echo '{"version":1}'
echo '['
echo '[],'
exec conky -c ~/.i3/i3conkyrc

$HOME/.i3/i3conkyrc
conky.config ={
out_to_x = false,
own_window = false,
background = no,
out_to_console = true,
max_text_width = 0,
update_interval = 1,
total_run_times = 0,
use_spacer = left,
net_avg_samples = 2,
cpu_avg_samples = 2,
};
conky.text = [[
[
  { "full_text" : "CPU", "color" : "\#b02050", "min_width" : 80, "max_width" : 90 , "align": "right", "separator": false  },
  { "full_text" : "${cpu cpu0}%", "color" : "\#a0a0a0", "min_width" : 20, "max_width" : 20 , "align": "right", "separator": false  },
  { "full_text" : "[${cpubar cpu0 5,10}]", "color" : "\#507080", "min_width" : 80, "max_width" : 100 , "align": "left", "separator": false  },
  { "full_text" : "${cpu cpu1}%", "color" : "\#a0a0a0", "min_width" : 20, "max_width" : 20 , "align": "right", "separator": false  },
  { "full_text" : "[${cpubar cpu1 5,10}]", "color" : "\#507080", "min_width" : 80, "max_width" : 100 , "align": "left", "separator": false  },
  { "full_text" : "${cpu cpu2}%", "color" : "\#a0a0a0", "min_width" : 20, "max_width" : 20 , "align": "right", "separator": false  },
  { "full_text" : "[${cpubar cpu2 5,10}]", "color" : "\#507080", "min_width" : 80, "max_width" : 100 , "align": "left", "separator": false  },
  { "full_text" : "${cpu cpu3}%", "color" : "\#a0a0a0", "min_width" : 20, "max_width" : 20 , "align": "right", "separator": false  },
  { "full_text" : "[${cpubar cpu3 5,10}]", "color" : "\#507080", "min_width" : 80, "max_width" : 100 , "align": "left", "separator": false  },
 
  { "full_text" : "RAM", "color" : "\#b02050" , "align": "right", "separator": false  },
  { "full_text" : "[${membar 5,10}]",  "color" : "\#a0a0a0", "min_width" : 30, "max_width" : 90 , "align": "right", "separator": false  },
  { "full_text" : "${memperc}%",  "color" : "\#a0a0a0", "min_width" : 30, "max_width" : 30 , "align": "right", "separator": false  },
  { "full_text" : " - ",  "color" : "\#a0a0a0", "min_width" : 10, "max_width" : 90 , "align": "center", "separator": false  },
  { "full_text" : "${mem} used",  "color" : "\#a0a0a0", "min_width" : 30, "max_width" : 90 , "align": "right", "separator": false  },
  { "full_text" : "${memfree} free",  "color" : "\#a0a0a0", "min_width" : 30, "max_width" : 90 , "align": "right", "separator": false  },
  { "full_text" : "${memmax} Total",  "color" : "\#a0a0a0", "min_width" : 30, "max_width" : 90 , "align": "right", "separator": false  },
 
  { "full_text" : "NETWORK", "color" : "\#b02050",  "align": "right", "separator": false  },
  { "full_text" : "${wireless_essid} ${wireless_link_qual_perc wlp2s0}%", "color" : "\#999999", "min_width" : 90, "max_width" : 90 , "align": "right", "separator": false  },
 
  { "full_text" : "🐧${sysname} $kernel", "color" : "\#999999", "align": "right", "separator": false  },
  { "full_text": "${time %Y/%m/%d %a }", "color" : "\#b02050", "align": "right", "separator": false  }
],
]]

0 件のコメント:

コメントを投稿