chimico
(usa Debian)
Enviado em 24/02/2012 - 12:11h
Olá pessoal, há muito tempo tenho tentado um comando que trocasse as fontes do IceWM, mas não tenho tido sucesso. Já usei o sed, tr, awk, grep. As fontes do IceWM ficam em ~/.icewm/preferences e em ~/.icewm/themes/tema/default.theme. Estou tentando trocar as fontes do tema Nano-Blu (~/.icewm/themes/Nano Blu- 1.1).
estas são suas fontes:
~$ grep "*" default.theme
MinimizedWindowFontName="-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*"
QuickSwitchFontName="-*-sans-medium-r-normal-*-*-120-*-*-p-*--*-*"
NormalButtonFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
ActiveButtonFontName="-*-sans-medium-r-normal-*-*-120-*-*-p-*--*-*"
ListBoxFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
LabelFontName="-*-sans-medium-r-normal-*-*-120-*-*-p-*--*-*"
MenuFontName="-*-sans-medium-r-normal-*-*-90-*-*-p-*--*-*"
NormalTaskBarFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
ActiveTaskBarFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
ToolButtonFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
ClockFontName="-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*"
ApmFontName="-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*"
ToolTipFontName="-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*"
TitleFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
InputFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
NormalWorkspaceFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
ActiveWorkspaceFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
StatusFontName="-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*"
Pretendo trocar por -*-denmark-*-r-normal-*-*-80-*-*-p-*--*-* em cada uma das ocorrências. O comando que tenho rodado é este:
for Font in `grep "*" default.theme | awk -F "=" '{print $2}' | tr -d '"'` ; do sed -i "s/"$Font"/-*-denmark-*-r-normal-*-*-80-*-*-p-*--*-*/g" default.theme ; done ; sync
Parte deste comando:
~$ grep "*" default.theme | awk -F "=" '{print $2}' | tr -d '"'
-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-120-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-120-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-120-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-90-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-100-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
-*-sans-medium-r-normal-*-*-110-*-*-p-*--*-*
Alguém pode me ajudar?