답변1
올바른 뒤집기는 아니지만 "모방"해 볼 수 있습니다.
# cat ~/.conkyrc
total_run_times 0
alignment top_middle
border_width 0
border_inner_margin 0
border_outer_margin 0
default_color white
own_window_colour black
draw_borders no
draw_outline no
draw_shades no
use_xft yes
minimum_size 500 50
maximum_width 500
extra_newline no
double_buffer yes
own_window yes
own_window_class Conky
own_window_type desktop
default_bar_size 0 51
default_graph_size 0 24
update_interval 1.0
TEXT
${color green}other content
${color blue}${voffset 0}${execibar 3600 echo 61.8%}
${color blue}${voffset -52}${alignc}${offset -1}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color green}${voffset -25}${alignc}${offset 0}${font DejaVu Sans:size=12}vanilla conky bar given 61.8%
${color green}${voffset 15}other content
${color green}${voffset 12}${hr 50}
${color blue}${voffset -44}${execibar 3600 echo 61.8%}
${color blue}${voffset -52}${alignc}${offset -1}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color green}${voffset -25}${alignc}${offset 0}${font DejaVu Sans:size=12}custom color for 38.2% on the right
${color green}${voffset 15}other content
${color green}${voffset 12}${hr 50}
${color blue}${voffset -44}${execibar 3600 echo 61.8%}
${color black}${voffset -81}${hr 1}
${color black}${voffset 27}${hr 1}
${color blue}${voffset -48}${alignc}${offset -1}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}no bar border
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}no bar border
${color green}${voffset -25}${alignc}${offset 0}${font DejaVu Sans:size=12}no bar border
${color green}${voffset 15}other content
${color green}${voffset 12}${hr 50}
${color black}${voffset -44}${execibar 3600 echo 61.8%}
${color green}${voffset -81}${hr 1}
${color green}${voffset 27}${hr 1}
${color blue}${voffset -48}${alignc}${offset -1}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -23}${alignc}${offset -1}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -24}${alignc}${offset 0}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color blue}${voffset -24}${alignc}${offset 1}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color green}${voffset -25}${alignc}${offset 0}${font DejaVu Sans:size=12}conky-style bar right-to-left
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
${color green}${voffset 15}other content
여기서는 ${hr 50}
z축의 막대 아래에 직사각형을 배치했습니다. 우리가 그것들을 놓는 곳. 위로 올라가는 것들은 그곳의 모든 것을 다룰 것입니다.default_bar_size 0 51
${execibar 3600 echo 61.8%}
${voffset -...}
이 접근 방식을 사용하면 오른쪽이 강조 표시되지만 실제로 막대가 뒤집히지는 않습니다. 내장의 경우 fs_bar
이것은 fs_bar_free
잘 작동합니다. 다른 사람들에게는 그렇지 않습니다 battery_bar
.
왜냐하면 친구와 대화하여 가치를 얻을 때 execbar
다음과 같이 100에서 백분율을 빼야 하기 때문입니다.
$(( 100 - 62 )) # integers, not floats
echo '100 - 61.8' | bc
bc -e "100 - $(echo 61.8)" -e quit
echo 61.8 | awk '{print 100 - $1}'
awk 'BEGIN { while ("echo 61.8" | getline var) print 100 - var }'
echo 61.8 | perl -nE 'say 100 - $_'
perl -E 'say 100 - `echo 61.8`'
가로 막대 테두리는 다음과 같습니다.
- 예약됨(두 번째 열)
- 마스크됨(섹션 3)
- 오른쪽에서 왼쪽으로 봅니다(섹션 4).
${hr 1}
세 번째 및 네 번째 조항의 국경은 다음을 통해 운영됩니다.${voffset -...}
텍스트를 두 가지 색상으로 모두 표시하려면 직선 4개와 대각선 4개 픽셀에 각각 1개씩, 8개의 동일한 텍스트 문자열을 추가로 배치하여 윤곽선을 그립니다.
xcolor(1)
유틸리티(내부에 "ent"가 있는 원)를 사용하여 세부 사항을 확대할 수 있습니다.
바 오른쪽에 원치 않는 남은 음식이 있어서 어떻게 해야 할지 몰랐습니다. 공유해주세요.
conky를 사용하면 ${voffset -...}
창이 수직으로 줄어들지 않고 창이 너무 길어지게 됩니다. 그냥 화면 하단에 놓거나 다른 콘키 창이나 패널 등으로 덮으세요. 올바른 해결책이 있다면 공유해 주세요.